Difference between revisions of "Template:Cleanup"

m
m
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Message_box|id=Usrcvtext|backgroundcolor=#FF7F7F|heading=Clean-up|image=Broom icon.svg|message=To meet the BattleTechWiki's [[BattleTechWiki: Manual of Style|quality standards]], this article may require [[Help:Cleanup|cleanup]].<br/>Please discuss this issue on the [[Talk:{{PAGENAME}}|talk page]].}}
+
{{ {{{|safesubst:}}}#invoke:Unsubst||date=__DATE__ |$B=
<includeonly>[[Category:Cleanup]]</includeonly><noinclude>
+
{{#ifexpr:{{#expr:{{#iferror:{{#time:U|{{{date}}}}}|2000000000}}>=1341100800}}*{{#if:{{{reason|<noinclude>x</noinclude>}}}|0|1}}*{{#ifeq:{{{nocat}}}|true|0|1}}
 
+
|{{error|1=You must add a {{para|reason}} parameter to this Cleanup template – replace it with <code><nowiki>{{Cleanup|</nowiki>{{#if:{{{1|}}}|{{{1|}}}{{!}}|}}{{#if:{{{date|}}}|<nowiki>date=</nowiki>{{{date|}}}{{!}}}}<nowiki>reason=<Fill reason here>}}</nowiki></code>, or remove the Cleanup template.<br style="clear:both;">
<noinclude>
+
}}{{Category handler
 
+
  |nocat    = {{{nocat|}}}
----
+
  |main    = Cleanup tagged articles without a reason field
 
+
}}
==Purpose==
+
|{{main other
The '''Clean up''' template should be used in the leading section of a page as a informative message of that page's perceived current state of needing additional [[Help:Cleanup|cleanup]] to meet the BattleTechWiki's [[BattleTechWiki: Manual of Style|quality standards]].
+
  |{{ambox
 
+
  | name  = Cleanup
==Usage==
+
  | subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
Cut and paste '''<nowiki>{{cleanup}}</nowiki>''' into the top of the article.  
+
  | type  = style
 
+
  | class = ambox-Cleanup
[[Category:Templates|Cleanup]]
+
  | small = {{{small|}}}
 +
  | sect  = {{{1|}}}
 +
  | issue = may '''require [[BattleTechWiki:cleanup|cleanup]]''' to meet BattleTechWiki's [[BattleTechWiki:Manual of Style|quality standards]]. {{#if:{{{reason|}}}
 +
    |The specific problem is: '''{{Terminate sentence|{{{reason}}}}}'''
 +
  }}
 +
  | talk  = {{{talk|{{{talksection|}}}}}}
 +
  | fix  = {{#if:{{{reason|}}}|
 +
    |No [[Template:Cleanup/doc|cleanup reason]] has been specified.
 +
  }} Please help [{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this {{{1|{{SUBJECTSPACE formatted}}}}}] if you can.
 +
  | removalnotice = yes
 +
  | cat  = Articles needing cleanup
 +
  }}
 +
  |{{mbox
 +
  | demospace = {{{demospace|}}}
 +
  | type      = style
 +
  | text      = This {{{1|{{SUBJECTSPACE formatted}}}}} '''may require [[BattleTechWiki:Cleanup|cleanup]] to meet BattleTechWiki's [[BattleTechWiki:Manual of Style|quality standards]]'''. {{#if:{{{reason|}}}
 +
    |The specific problem is: '''{{Terminate sentence|{{{reason}}}}}'''
 +
    |No [[Template:Cleanup/doc|cleanup reason]] has been specified.
 +
  }} Please help [{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this {{{1|{{SUBJECTSPACE formatted}}}}}] if you can{{#ifeq:{{SUBJECTSPACE}}|{{NAMESPACE}}
 +
    |&#59; the [[{{TALKPAGENAME}}{{#if:{{{talksection|}}}|&#35;{{{talksection}}}}}|talk page]] may contain suggestions.
 +
    |.
 +
  }}
 +
  }}
 +
| demospace = {{{demospace|<noinclude>main</noinclude>}}}
 +
}}{{Category handler
 +
  |page    = {{SUBJECTPAGENAME}}
 +
  |nocat    = {{{nocat|}}}
 +
  |category = [[Category:Categories needing cleanup]]
 +
  |template = {{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}|Template:Cleanup||Templates needing cleanup}}
 +
  |other    = [[Category:Articles needing cleanup]]
 +
}}
 +
}}
 +
}}<noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 19:37, 6 April 2024