Template:Fix: Difference between revisions

From All Skies Encyclopaedia
imported>Fram
(Undid revision 390626762 by Rich Farmbrough (talk) Why? These are useful...)
imported>Pppery
(Per edit request)
 
(19 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{#switch:{{{subst|¬}}}
{{cat handler
|¬={{category handler
|main={{{cat|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}
|template=[[Category:Templates needing substitution checking]]
|[[{{{cat-date}}} {{#if:{{{date|}}}
|nocat={{{nocat|<noinclude>true</noinclude>}}}
|from {{{date}}}
}}]]{{#if:{{{date|}}}
|{{#ifexist:{{{cat-date}}} from {{{date}}}|
|[[Category:Articles with invalid date parameter in template]]
}}
}}
}}
}}
|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
|subpage=no
}}{{#if:{{{text|}}}
}}{{#if:{{{text|}}}
|<sup class="{{{class|noprint Inline-Template}}}" title="{{{title|}}}{{#if:{{{date|}}}
|<sup class="noprint Inline-Template {{{class|}}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
|<nowiki/> from {{{date}}}
}}" 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|}}}
}}{{#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! -->

Latest revision as of 02:00, 9 July 2024