Template:Fix: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
few uncontroversial changes: use Template:cat handler, automatically populate Category:Inline cleanup templates, adjust whitespace
m 1 revision imported
 
(27 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{#if:{{{text|}}}
{{#switch:{{{subst|¬}}}
  |<sup class="{{{class|noprint Inline-Template}}}" title="{{{title|}}}{{#if:{{{date|}}}
  |¬={{category handler
  |<nowiki/> from {{{date}}}
  |template=[[Category:Templates needing substitution checking]]
  }}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
  |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}}}|{{{text|}}}]]{{#if:{{{post-text|}}}
  }}[[{{{link|Wikipedia:Cleanup}}}|<span title="{{#invoke:string|replace|source={{delink|1={{{title|{{{link|Wikipedia:Cleanup}}}}}}{{#if:{{{date|}}}|&#32;({{{date}}})}}}}|pattern=" |replace=&quot; |plain=true}}">{{{text|}}}</span>]]{{#if:{{{post-text|}}}
   |&#32;{{{post-text}}}
   |&#32;{{{post-text}}}
  }}</i>&#93;</sup>|{{{special|}}}
  }}</i>&#93;</sup>|{{{special|}}}
}}{{cat handler
|main={{{cat|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}
  |[[{{{cat-date}}} {{#if:{{{date|}}}
  |from {{{date}}}
  }}]]{{#if:{{{date|}}}
  |{{#ifexist:{{{cat-date}}} from {{{date}}}|
    |[[Category:Articles with invalid date parameter in template]]
  }}
  }}
}}
|template=[[Category:Inline cleanup templates]]
}}<noinclude>
}}<noinclude>
{{Documentation}}
{{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:03, 28 November 2023