Difference between revisions of "Template:Cleanup"

(Imported from wikipedia)
m (updating)
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div class="messagebox cleanup metadata">'''To meet the BattleTechWiki's [[:Category:BattleTechWiki style guidelines|quality standards]], this article may require [[Help:Cleanup|cleanup]].'''<br/><span style="font-size: 90%">Please discuss this issue on the [[Talk:{{PAGENAME}}|talk page]].{{#if:{{{1|}}}|<br/>This article has been tagged since '''{{{1}}}'''.}}</span></div><includeonly>{{#if:{{{1|}}}|[[Category:Cleanup from {{{1}}}]]|[[Category:Cleanup]]}}</includeonly><noinclude>
+
{{ {{{|safesubst:}}}#invoke:Unsubst||date=__DATE__ |$B=
 
+
{{#ifexpr:{{#expr:{{#iferror:{{#time:U|{{{date}}}}}|2000000000}}>=1341100800}}*{{#if:{{{reason|<noinclude>x</noinclude>}}}|0|1}}*{{#ifeq:{{{nocat}}}|true|0|1}}
*Please do not [[BattleTechWiki:Subst|subst:]] this template.
+
|{{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;">
*The simplest way to add this template to an article is to copy and paste '''<nowiki>{{Cleanup|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}</nowiki>''' at the top of the article.
+
}}{{Category handler
 
+
  |nocat    = {{{nocat|}}}
'''Admins & Editors''': Do not actually clean-up ''this'' template!
+
  |main    = Cleanup tagged articles without a reason field
[[Category:Cleanup templates|Cleanup]]</noinclude>
+
}}
 +
|{{main other
 +
  |{{ambox
 +
  | name  = Cleanup
 +
  | subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
 +
  | type  = style
 +
  | class = ambox-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
 +
  | date  = {{{date|}}}
 +
  | all  = 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>

Revision as of 19:06, 7 February 2024