Difference between revisions of "Template:Cleanup"

m (Text replacement - "{{/doc}}" to "{{Documentation}}")
m (Updating)
Line 1: Line 1:
{{Message box|id=cleanup|image=Notice icon red.svg|image_size=upright=0.2|backgroundcolor=#ccccff|bordercolor=#c0c0c0|heading=Clean-up|message=To meet the BattleTechWiki's [[Policy: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>{{CatMainOther |[[Category:Cleanup]]}}</includeonly>
+
{{#ifexpr:{{#expr:{{#iferror:{{#time:U|{{{date}}}}}|2000000000}}>=1341100800}}*{{#if:{{{reason|<noinclude>x</noinclude>}}}|0|1}}*{{#ifeq:{{{nocat}}}|true|0|1}}
<noinclude>
+
|{{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;">
 +
}}{{Category handler
 +
  |nocat    = {{{nocat|}}}
 +
  |main    = {{DMC|Cleanup tagged articles without a reason field|from|{{{date|}}}}}
 +
}}
 +
|{{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|}}}
 +
  | cat  = Articles needing cleanup
 +
  | all  = All pages needing cleanup
 +
  | cat2  = Cleanup tagged articles with{{#if:{{{reason|}}}||out}} a reason field
 +
  }}
 +
  |{{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 = {{DMC|BattleTechWiki categories needing cleanup|from|{{{date|}}}}}
 +
  |template = {{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}|Template:Cleanup||{{DMC|BattleTechWiki templates needing cleanup|from|{{{date|}}}}}}}
 +
  |other    = {{DMCA|BattleTechWiki pages needing cleanup|from|{{{date|}}}}}
 +
}}
 +
}}
 +
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Revision as of 14:49, 26 August 2023