Difference between revisions of "Template:Fix"

From Self-sufficiency
Jump to: navigation, search
m (9 revisions from wikipedia:Template:Fix)
m (delink tooltip to prevent rendering errors, suggested by User:SMcCandlish)
Line 1: Line 1:
{{#switch:{{{substcheck|¬}}}
+
{{#switch:{{{subst|¬}}}
 
  |¬={{category handler
 
  |¬={{category handler
 
   |template=[[Category:Templates needing substitution checking]]
 
   |template=[[Category:Templates needing substitution checking]]
Line 5: Line 5:
 
  }}
 
  }}
 
  |SUBST=[[Category:Pages with incorrectly substituted templates]]
 
  |SUBST=[[Category:Pages with incorrectly substituted templates]]
}}{{category handler
+
}}{{Category handler
  |main={{{cat|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}
+
  |main={{Fix/category
   |[[{{{cat-date}}} {{#if:{{{date|}}}
+
  |cat-date={{{cat-date|}}}  
  |from {{{date}}}
+
   |cat={{{cat|}}}  
   }}]]{{#if:{{{date|}}}
+
  |cat-date2={{{cat-date2|}}}  
  |{{#ifexist:{{{cat-date}}} from {{{date}}}|
+
   |cat2={{{cat2|}}}  
    |[[Category:Articles with invalid date parameter in template]]
+
  |cat-date3={{{cat-date3|}}}  
  }}
+
  |cat3={{{cat3|}}}  
  }}
+
  |date={{{date|}}}
 
  }}
 
  }}
 
  |template={{#if:{{{name|}}}|{{#ifeq:{{{name}}}|{{ROOTPAGENAME}}||{{#if:{{{date|}}}||[[Category:Templates including undated clean-up tags]]}}}}}}  
 
  |template={{#if:{{{name|}}}|{{#ifeq:{{{name}}}|{{ROOTPAGENAME}}||{{#if:{{{date|}}}||[[Category:Templates including undated clean-up tags]]}}}}}}  
 
  |subpage=no
 
  |subpage=no
 
}}{{#if:{{{text|}}}
 
}}{{#if:{{{text|}}}
  |<sup class="{{{class|noprint Inline-Template}}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
+
  |<sup class="noprint Inline-Template {{{class|}}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
 
   |{{{pre-text}}}&#32;
 
   |{{{pre-text}}}&#32;
  }}[[{{{link|Wikipedia:Cleanup}}}|<span title="{{{title|{{{link|Wikipedia:Cleanup}}}}}}{{#if:{{{date|}}}|<nowiki/> from {{{date}}}}}">{{{text|}}}</span>]]{{#if:{{{post-text|}}}
+
  }}[[{{{link|Wikipedia:Cleanup}}}|<span title="{{delink|1={{{title|{{{link|Wikipedia:Cleanup}}}}}}{{#if:{{{date|}}}|<nowiki /> ({{{date}}})}}}}">{{{text|}}}</span>]]{{#if:{{{post-text|}}}
 
   |&#32;{{{post-text}}}
 
   |&#32;{{{post-text}}}
 
  }}</i>&#93;</sup>|{{{special|}}}
 
  }}</i>&#93;</sup>|{{{special|}}}

Revision as of 09:42, 5 April 2016