Difference between revisions of "Template:Cleanup"

From MafiaMatrix
Jump to: navigation, search
(Created page with "{{#ifeq:{{{subst}}}|SUBST |{{#if:{{{name|}}} |{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}} }}[[Category:Pages with incorrectly substituted template...")
 
 
Line 1: Line 1:
{{#ifeq:{{{subst}}}|SUBST
+
<!--{{Cleanup}} begin-->{{#ifeq:{{NAMESPACE}}|{{<includeonly>subst:</includeonly>NAMESPACE}}|<includeonly>[[Category:Pages with incorrectly substituted templates|{{PAGENAME}}]]</includeonly>|}}{{<noinclude>a</noinclude>mbox
|{{#if:{{{name|}}}
+
| demospace = {{{demospace|}}}
  |{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
+
| type     = style
}}[[Category:Pages with incorrectly substituted templates]]
+
| small    = {{{small|}}}
}}{{#ifeq:{{{small}}}|left
+
| text      = This {{{1|{{SUBJECTSPACE formatted}}}}} '''may require [[Wikipedia:cleanup|cleanup]] to meet Wikipedia's [[Wikipedia:Manual of Style|quality standards]].''' {{#if:{{{2|{{{reason|}}}}}}|The specific problem is: '''{{{2|{{{reason|}}}}}}'''.}} Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this {{{1|{{SUBJECTSPACE formatted}}}}}] if you can. {{#ifeq:{{SUBJECTSPACE}}|{{NAMESPACE}}|The [[{{TALKPAGENAME}}|talk page]] may contain suggestions.}} {{#if:{{{date|}}}|<small>''({{{date}}})''</small>}}
|{{Ambox/core
+
}}<includeonly>{{#switch:{{SUBJECTSPACE}}
  |small      = left
+
| {{ns:0}}={{DMC|Wikipedia articles needing cleanup|from|{{{date|}}}|All articles needing cleanup}}
  |type      = {{{type|}}}
+
| Category={{DMC|Wikipedia categories needing cleanup|from|{{{date|}}}}}
  |image     = {{#if:{{{smallimage|}}}
+
| Template={{DMC|Wikipedia templates needing cleanup|from|{{{date|}}}}}
  |{{{smallimage}}}
+
| {{DMC|Wikipedia pages needing cleanup|from|{{{date|}}}}}
  |{{{image|}}}
+
}}</includeonly><!--{{Cleanup}} end--><noinclude>
  }}
+
{{documentation}}
  |imageright = {{#if:{{{smallimageright|}}}
 
  |{{{smallimageright}}}
 
  |{{{imageright|}}}
 
  }}
 
  |style      = {{{style|}}}
 
  |textstyle  = {{{textstyle|}}}
 
  |text      = {{#if:{{{smalltext|}}}
 
  |{{{smalltext}}}  
 
  |{{{text}}}
 
  }}
 
}}
 
|{{Ambox/core
 
  |type      = {{{type|}}}
 
  |image      = {{{image|}}}
 
  |imageright = {{{imageright|}}}
 
  |style      = {{{style|}}}
 
  |textstyle  = {{{textstyle|}}}
 
  |text      = {{{text}}}
 
  |date      = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 
  |{{#ifeq:{{{date|¬}}}|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
 
  {{{date|}}}
 
  }}
 
}}
 
}}{{cat handler
 
|main={{#if:{{{cat|}}}
 
  |{{#if:{{{date|}}}
 
  |[[Category:{{{cat}}} {{{preposition|from}}} {{{date}}}]]{{#ifexist:Category:{{{cat}}} {{{preposition|from}}} {{{date}}}|
 
    |[[Category:Articles with invalid date parameter in template]]
 
  }}
 
  |[[Category:{{#if:{{{undated|}}}
 
    |{{{undated}}}
 
    |{{{cat}}}
 
  }}]]
 
  }}
 
}}{{#if:{{{all|}}}
 
  |[[Category:{{{all}}}]]
 
}}
 
|template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message boxes]]}}
 
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 
|{{documentation}}<!-- Transclude documentation on template page -->
 
}}<noinclude>
 
 
 
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 07:22, 1 March 2011

Template:Cat handler

Template:Template otherTemplate:Documentation/start box2

Template:Documentation/end box2