Template:Dated maintenance category

From skaldsong companion

{{#ifeq:{{ safesubst:#if: Script error: No such module "Ns has subpages".

 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Dated maintenance category}}|1}}
 | {{ safesubst:#if:|{{{1}}}|Template:Dated maintenance category}}

}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Template|0|1}}+{{#ifeq:no|yes|0|1}}

|{{#if:
 |[[Category:{{{1}}} {{{2}}} {{{3}}}]]{{#ifexist:Category:{{{1}}} {{{2}}} {{{3}}}
   ||}}
 |[[Category:{{#if:
              |{{{5}}}|{{{1}}}}}]]}}{{#if:
     |[[Category:{{{4}}}]]}}}}}}

{{#switch:<translate></translate> | = Lua error: Internal error: The interpreter has terminated with signal "11". | #default = Script error: No such module "Template translation". }}