Jump to content

Template:Cleanup: Difference between revisions

From Wikiquote, the free quote compendium
Content deleted Content added
Ilovemydoodle (talk | contribs)
m Wording
Tag: Reverted
Revert back to wikiquote specific version, per discussion at the village pump. There are many many problems with the new version of the template, mostly due to it havving copied and pasted from another project without being localised properly. It sorts pages into inappropriate/unnecessary categories, has a different style to all the other cleanup templates in use, has a load of unnecessary features that don't make sense here, has a different use case to the original template etc.
Tag: Manual revert
Line 1: Line 1:
<div class="boilerplate metadata" id="cleanup" style="text-align: justify; background: #efefff; margin: .5em 2.5%; padding: 0 1em; border: 1px solid #79b; text-align:center;">
{{ {{{|safesubst:}}}#invoke:Unsubst||date=__DATE__ |$B=
'''This article needs cleanup.''' <br /><small>Please review [[Wikiquote:Templates]] to determine [[Wikiquote:How to edit a page|how to edit]] this article to conform to a [[Wikiquote:Manual of Style|higher standard]] of article quality. {{#if: {{{1|}}} | This page has been listed as needing cleanup since {{{1}}}.}}</small></div>
{{#ifexpr:{{#expr:{{#iferror:{{#time:U|{{{date}}}}}|2000000000}}>=1341100800}}*{{#if:{{{reason}}}|0|1}}*{{#ifeq:{{{nocat}}}|true|0|1}}
<includeonly>{{#ifeq:{{{categories}}}|no||[[Category:Uncategorized article cleanup]]}}</includeonly><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
;Documentation:
|nocat = {{{nocat|}}}
*This template accepts an optional parameter to indicate when the page was marked for cleanup. It should be in YYYY-MM-DD format.
|main = {{DMC|Cleanup tagged articles without a reason field|from|{{{date|}}}}}
*This template automatically adds the page to [[:Category:Uncategorized article cleanup]]. To display a sample of the template ''without'' adding the page to the category, use <code><nowiki>{{cleanup|categories=no}}</nowiki></code>.
}}

|{{main other
;See also:
|{{ambox
{{cleanup template see also}}
| name = Cleanup

| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
[[Category:Cleanup templates|{{PAGENAME}}]]
| type = style
[[Category:Templates that support category suppression]]
| class = ambox-Cleanup

| small = {{{small|}}}
| sect = {{{1|}}}
| issue = may need clean up. Please review [[Wikiquote:Templates]] to determine [[Wikiquote:How to edit a page|how to edit]] this article to conform to a [[Wikiquote:Manual of Style|higher standard]] of article quality. {{#if:{{{2|{{{reason|}}}}}}
|The specific problem is: '''{{Terminate sentence|{{{2|{{{reason}}}}}}}}'''
}}
| talk = {{{talk|{{{talksection|}}}}}}
| fix = {{#if:{{{2|{{{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:{{{2|{{{reason|}}}}}}||out}} a reason field
}}
|{{mbox
| demospace = {{{demospace|}}}
| type = style
| text = This {{{1|{{SUBJECTSPACE formatted}}}}} '''may require [[Wikiquote:cleanup|cleanup]] to meet Wikiquote's [[Wikiquote:Manual of Style|quality standards]]'''. {{#if:{{{2|{{{reason|}}}}}}
|The specific problem is: '''{{Terminate sentence|{{{2|{{{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|Wikiquote categories needing cleanup|from|{{{date|}}}}}
|template = {{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}|Template:Cleanup||{{DMC|Wikiquote templates needing cleanup|from|{{{date|}}}}}}}
|other = {{DMCA|Wikiquote pages needing cleanup|from|{{{date|}}}}}
}}
}}
}}<noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 12:45, 6 August 2022


Documentation
  • This template accepts an optional parameter to indicate when the page was marked for cleanup. It should be in YYYY-MM-DD format.
  • This template automatically adds the page to Category:Uncategorized article cleanup. To display a sample of the template without adding the page to the category, use {{cleanup|categories=no}}.
See also
Cleanup templates: {{cleanup}}, {{character-cleanup}}, {{comics-cleanup}}, {{film-cleanup}}, {{game-cleanup}}, {{lit-cleanup}}, {{people-cleanup}}, {{theatre-cleanup}}, {{theme-cleanup}}, {{tv-cleanup}}