Difference between revisions of "Template:Fix"

From Self-sufficiency
Jump to: navigation, search
(make spaces conditional, per editprotected)
m (1 revision imported)
 
(24 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{NAMESPACE}}||{{{cat|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}|[[{{{cat-date}}} {{#if:{{{date|}}}|{{#if:{{{from|}}}|from|since}} {{{date}}}}}]]{{#if:{{{date|}}}|{{#ifexist:{{{cat-date}}} {{#if:{{{from|}}}|from|since}} {{{date}}}||[[Category:Articles with invalid date parameter in template]]}}}}}}}}{{#if:{{{text|}}}|<sup class="{{{class|noprint Inline-Template}}}"><span title="{{{title|}}}{{#if:{{{date|}}}|&nbsp;{{#if:{{{from|}}}|from|since}} {{{date}}}}}" style="white-space: nowrap;">&#91;<i>{{#if:{{{pre-text|}}}|{{{pre-text}}}&#32;}}[[{{{link|Wikipedia:Cleanup}}}|{{{text|}}}]]{{#if:{{{post-text|}}}|&#32;{{{post-text}}}}}</i>&#93;</span></sup>|{{{special|}}}}}</includeonly><noinclude>
+
{{#switch:{{{subst|¬}}}
{{pp-template|small=yes}}
+
|¬={{category handler
{{template doc}}
+
  |template=[[Category:Templates needing substitution checking]]
 +
  |nocat={{{nocat|<noinclude>true</noinclude>}}}
 +
}}
 +
|SUBST=[[Category:Pages with incorrectly substituted templates]]
 +
}}{{Category handler
 +
|main={{Fix/category
 +
  |cat-date={{{cat-date|}}}  
 +
  |cat={{{cat|}}}  
 +
  |cat-date2={{{cat-date2|}}}  
 +
  |cat2={{{cat2|}}}
 +
  |cat-date3={{{cat-date3|}}}  
 +
  |cat3={{{cat3|}}}
 +
  |date={{{date|}}}
 +
}}
 +
|template={{#if:{{{name|}}}|{{#ifeq:{{{name}}}|{{ROOTPAGENAME}}||{{#if:{{{date|}}}||[[Category:Templates including undated clean-up tags]]}}}}}}  
 +
|subpage=no
 +
}}{{#if:{{{text|}}}
 +
|<sup class="noprint Inline-Template {{{class|}}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
 +
  |{{{pre-text}}}&#32;
 +
}}[[{{{link|Wikipedia:Cleanup}}}|<span title="{{delink|1={{{title|{{{link|Wikipedia:Cleanup}}}}}}{{#if:{{{date|}}}|&#32;({{{date}}})}}}}">{{{text|}}}</span>]]{{#if:{{{post-text|}}}
 +
  |&#32;{{{post-text}}}
 +
}}</i>&#93;</sup>|{{{special|}}}
 +
}}<noinclude>
 +
{{Documentation}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 20:55, 17 February 2018