Difference between revisions of "Template:Fix"

From Postfurry Wiki
Jump to: navigation, search
(if the noprint and inline-template classes need to be preserved, according to the docs, then why not enforcing in the code rather than asking people to do it (and relying on them reading the docs attentively enough not to miss that)?)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#switch:{{{subst|¬}}}
+
{{#if:{{{text|}}}
|¬={{category handler
+
  |<sup class="{{{class|noprint Inline-Template}}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
  |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;
 
   |{{{pre-text}}}&#32;
 
  }}[[{{{link|Wikipedia:Cleanup}}}|<span title="{{{title|{{{link|Wikipedia:Cleanup}}}}}}{{#if:{{{date|}}}|<nowiki/> ({{{date}}})}}">{{{text|}}}</span>]]{{#if:{{{post-text|}}}
 
  }}[[{{{link|Wikipedia:Cleanup}}}|<span title="{{{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|}}}
}}<noinclude>
+
}}
{{Documentation}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 

Latest revision as of 13:50, 5 September 2024