Template:Cleanup: Difference between revisions

From electowiki
Content added Content deleted
(fix interwiki links)
(Adding examples, and nagging when "reason=" parameter isn't given)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{ambox
{{ {{{|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}}
|{{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
| name = Cleanup
| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
| type = style
| type = style
| class = ambox-Cleanup
| class = ambox-Cleanup
| issue = This article may require cleanup to meet electowiki's quality standards.
| small = {{{small|}}}
| fix = Why? {{{reason|(no reason given. Please add '''reason=''' parameter to "<code><nowiki>{{cleanup}}</nowiki></code>" template.)}}}
| sect = {{{1|}}}
}}[[Category:All pages needing cleanup]]</includeonly>
| issue = may '''require [[w:Wikipedia:cleanup|cleanup]]''' to meet Wikipedia's [[w:Wikipedia:Manual of Style|quality standards]]. {{#if:{{{2|{{{reason|}}}}}}
<noinclude>
|The specific problem is: '''{{{2|{{{reason}}}}}}'''
<templatedata>
}}
{
| talk = {{{talk|{{{talksection|}}}}}}
"params": {
| fix = {{#if:{{{2|{{{reason|}}}}}}|
"reason": {
|No [[Template:Cleanup/doc|cleanup reason]] has been specified.
"label": "Reason",
}} Please help [{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this {{{1|{{SUBJECTSPACE formatted}}}}}] if you can.
"description": "Reason why the article needs cleanup"
| removalnotice = yes
}
| date = {{{date|}}}
},
| cat = Articles needing cleanup
"description": "Add this to pages that need cleanup. See also: [[w:Template:Cleanup]]."
| all = All pages needing cleanup
}
| cat2 = Cleanup tagged articles with{{#if:{{{2|{{{reason|}}}}}}||out}} a reason field
</templatedata>
}}
== Examples ==
|{{mbox
=== Example 1 ===
| demospace = {{{demospace|}}}
==== Markup ====
| type = style
<code><nowiki>{{cleanup}}</nowiki></code>
| text = This {{{1|{{SUBJECTSPACE formatted}}}}} '''may require [[w:Wikipedia:cleanup|cleanup]] to meet Wikipedia's [[w:Wikipedia:Manual of Style|quality standards]]'''. {{#if:{{{2|{{{reason|}}}}}}
==== Result ====
|The specific problem is: '''{{{2|{{{reason}}}}}}'''
{{cleanup}}
|No [[Template:Cleanup/doc|cleanup reason]] has been specified.
=== Example 2 ===
}} Please help [{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this {{{1|{{SUBJECTSPACE formatted}}}}}] if you can{{#ifeq:{{SUBJECTSPACE}}|{{NAMESPACE}}
==== Markup ====
|&#59; the [[{{TALKPAGENAME}}{{#if:{{{talksection|}}}|&#35;{{{talksection}}}}}|talk page]] may contain suggestions.
<code><nowiki>{{cleanup|reason=This article sucks.}}</nowiki></code>
|.
==== Result ====
}}
{{cleanup|reason=This article sucks.}}
}}
| demospace = {{{demospace|<noinclude>main</noinclude>}}}
}}{{Category handler
|page = {{SUBJECTPAGENAME}}
|nocat = {{{nocat|}}}
|category = {{DMC|Wikipedia categories needing cleanup|from|{{{date|}}}}}
|template = {{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}|Template:Cleanup||{{DMC|Wikipedia templates needing cleanup|from|{{{date|}}}}}}}
|other = {{DMCA|Wikipedia pages needing cleanup|from|{{{date|}}}}}
}}
}}
}}<noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 21:43, 30 March 2022


Add this to pages that need cleanup. See also: [[w:Template:Cleanup]].

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Reasonreason

Reason why the article needs cleanup

Unknownoptional

Examples

Example 1

Markup

{{cleanup}}

Result

Example 2

Markup

{{cleanup|reason=This article sucks.}}

Result