Difference between revisions of "Template:Fix"

From KGB Wiki
Jump to: navigation, search
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]]
 
}}{{#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="{{#invoke:string|replace|source={{delink|1={{{title|{{{link|Wikipedia:Cleanup}}}}}}{{#if:{{{date|}}}|&#32;({{{date}}})}}}}|pattern=" |replace=&quot; |plain=true}}">{{{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|}}}
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Template:Fix with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Fix]] with unknown parameter "_VALUE_"|ignoreblank=y| cat | cat-date | cat-date2 | cat-date3 | cat2 | cat3 | class | date | link | name | nocat | post-text | pre-text | special | subst | text | title }}<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>

Revision as of 12:42, 4 February 2025

{{#if:

|[{{#if:
 |{{{pre-text}}} 
}}{{#if:
 | {{{post-text}}}
}}]|

}} Template:Documentation