Difference between revisions of "Template:Dated maintenance category"

From Betting Wiki
Jump to navigation Jump to search
en>Callanecc
m (Changed protection level of Template:Dated maintenance category: Highly visible template: allowing template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indef)
en>John of Reading
(If not categorising, output a space instead of nothing to prevent unwanted blank lines; see edit request on talk page)
Line 1: Line 1:
{{#ifeq:{{FULLROOTPAGENAME}}|Wikipedia:Template messages|<!--Do not categorize-->|<!--
+
{{#ifeq:{{FULLROOTPAGENAME}}|Wikipedia:Template messages|&#32;<!--Do not categorize; &#32; prevents blank line if template is only thing on the line-->|<!--
 
-->{{#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}}}]]}}<!--
   -->}}<!--
+
   -->|&#32;<!--&#32; prevents blank line if template is only thing on the line-->}}<!--
 
-->}}<noinclude>
 
-->}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 08:38, 3 December 2013

{{#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}}}]]}}| }}}}
50px Template documentation[create]