Difference between revisions of "Template:Dated maintenance category"
Jump to navigation
Jump to search
en>John of Reading (If not categorising, output a space instead of nothing to prevent unwanted blank lines; see edit request on talk page) |
en>John of Reading (Second attempt. Those spaces upset inline templates such as {{As of}}. Instead, try an unconditional <nowiki/>) |
||
| Line 1: | Line 1: | ||
| − | {{#ifeq:{{FULLROOTPAGENAME}}|Wikipedia:Template messages| | + | <nowiki/><!--This nowiki helps to prevent whitespace at the top of articles-->{{#ifeq:{{FULLROOTPAGENAME}}|Wikipedia:Template messages|<!--Do not categorize-->|<!-- |
-->{{#ifexpr:{{#if:{{NAMESPACE}}|0|1}}+{{#ifeq:{{{onlyarticles|no}}}|yes|0|1}} | -->{{#ifexpr:{{#if:{{NAMESPACE}}|0|1}}+{{#ifeq:{{{onlyarticles|no}}}|yes|0|1}} | ||
|{{#if:{{{3|}}} | |{{#if:{{{3|}}} | ||
| Line 13: | Line 13: | ||
-->}}{{#if:{{{4|}}} | -->}}{{#if:{{{4|}}} | ||
|[[Category:{{{4}}}]]}}<!-- | |[[Category:{{{4}}}]]}}<!-- | ||
| − | + | -->}}<!-- | |
-->}}<noinclude> | -->}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 08:14, 8 January 2014
{{#ifeq:{{ safesubst:#if:
| {{ 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}}}]]}}}}}}
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |