Template:Documentation/template page and Template:Fix: Difference between pages

From nonlocal pde
(Difference between pages)
Jump to navigation Jump to search
imported>Plastikspork
m (Protected Template:Documentation/template page: Highly visible template: Will be used by Template:Documentation ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
imported>MSGJ
(add detection for template substitution and populate Category:Pages with incorrectly substituted templates)
 
Line 1: Line 1:
{{#switch: {{SUBPAGENAME}}
{{#ifeq:{{{substcheck|¬}}}|SUBST
| sandbox
|[[Category:Pages with incorrectly substituted templates]]
| testcases = {{BASEPAGENAME}}
}}{{cat handler
| #default = {{PAGENAME}}
|main={{{cat|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}
}}<noinclude>{{documentation|content=
  |[[{{{cat-date}}} {{#if:{{{date|}}}
This subtemplate of {{tl|documentation}} is used to determine the template page name.
  |from {{{date}}}
}}</noinclude>
  }}]]{{#if:{{{date|}}}
  |{{#ifexist:{{{cat-date}}} from {{{date}}}|
    |[[Category:Articles with invalid date parameter in template]]
  }}
  }}
}}
|subpage=no
}}{{#if:{{{text|}}}
|<sup class="{{{class|noprint Inline-Template}}}" title="{{{title|}}}{{#if:{{{date|}}}
  |<nowiki/> from {{{date}}}
}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
  |{{{pre-text}}}&#32;
}}[[{{{link|Wikipedia:Cleanup}}}|{{{text|}}}]]{{#if:{{{post-text|}}}
  |&#32;{{{post-text}}}
}}</i>&#93;</sup>|{{{special|}}}
}}<noinclude>
{{Documentation}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
</noinclude>

Revision as of 13:17, 6 February 2011

[create] File:Template-info.svg Template documentation