Difference between revisions of "Template:Cleanup"

(repoint of link)
m
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="messagebox cleanup metadata">'''To meet the BattleTechWiki's [[BattleTechWiki: Manual of Style|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=
{{/doc}}
+
{{#ifexpr:{{#expr:{{#iferror:{{#time:U|{{{date}}}}}|2000000000}}>=1341100800}}*{{#if:{{{reason|<noinclude>x</noinclude>}}}|0|1}}*{{#ifeq:{{{nocat}}}|true|0|1}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
+
|{{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    = Cleanup tagged articles without a reason field
 +
}}
 +
|{{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
 +
  | 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>
 
</noinclude>

Latest revision as of 19:37, 6 April 2024