Template:Cleanup: Difference between revisions

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
(translations - please help improve)
m (remove (optional), US dates)
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ {{{|safesubst:}}}#invoke:Unsubst||$N=Cleanup |date=__DATE__ |$B=
{{ {{{|safesubst:}}}#invoke:Unsubst||$N=Cleanup |date=__DATE__ |$B=
{{#ifexpr:{{#expr:{{#iferror:{{#time:U|{{{date}}}}}|2000000000}}>=1341100800}}*{{#if:{{{reason|<noinclude>x</noinclude>}}}|0|1}}*{{#ifeq:{{{nocat}}}|true|0|1}}
{{#ifexpr:{{#expr:{{#iferror:{{#time:U|{{{date}}}}}|2000000000}}>=1341100800}}*{{#if:{{{reason|<noinclude>x</noinclude>}}}|0|1}}*{{#ifeq:{{{nocat}}}|true|0|1}}
  |{{error|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.
  |{{error|{{int:Moodbar-action-reason-required}} <code><nowiki>{{Cleanup|</nowiki>{{#if:{{{1|}}}|{{{1|}}}{{!}}|}}{{#if:{{{date|}}}|<nowiki>date=</nowiki>{{{date|}}}{{!}}}}<nowiki>reason=}}</nowiki></code>.
{{clear}}
{{clear}}
}}{{Category handler
}}{{Category handler
   |nocat    = {{{nocat|}}}
   |nocat    = {{{nocat|}}}
   |main    = {{DMC|Cleanup tagged articles without a reason field|from|{{year|{{{date|{{REVISIONYEAR}}}}}}}
   |main    = {{DMC|Cleanup tagged articles without a reason field|from|{{#if: {{{date|}}}|{{year|{{{date|}}}}}|unknown year}}
  }}}}
  }}}}
  |{{main other
  |{{main other
   |{{ambox
   |{{ambox
   | name  = Cleanup
   | name  = {{{name|Cleanup}}}
   | subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
   | subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
   | type  = style
  | style =  {{#ifeq:{{{color|}}}|orange|border-color:#f28500|{{{style|}}}}}
   | class = ambox-Cleanup
  | image = {{{image|}}}
   | type  = {{{type|style}}}
   | class = {{{class|ambox-Cleanup}}}
   | small = {{{small|}}}
   | small = {{{small|}}}
   | sect  = {{{1|}}}
   | sect  = {{{1|}}}
   | issue = may '''require [[MEpedia:cleanup|cleanup]]''' to meet MEpedia's [[MEpedia:Guidelines|guidelines]]. {{#if:{{{2|{{{reason|}}}}}}
   | issue = {{{issue|{{int:pagetriage-tags-cleanup-desc}}}}}<br>{{cleanup reason text|lang={{int:lang}}|reason={{{reason|}}}|name={{{name|}}}}}
    |The specific problem is: '''{{{2|{{{reason}}}}}}'''.
  }}
   | talk  = {{{talk|{{{talksection|}}}}}}
   | talk  = {{{talk|{{{talksection|}}}}}}
   | fix  = {{#if:{{{2|{{{reason|}}}}}}|
   | fix  = <br />{{Help improve text}} {{{fix|}}}
    |&nbsp;No [[Template:Cleanup/doc|cleanup reason]] has been specified.
   | date  = {{{date|unknown date}}}
  }}&nbsp;{{Help improve text}}
   | cat  = {{{cat|Articles needing cleanup}}}
   | date  = {{year|{{{date|}}}}}
   | cat  = All articles needing cleanup
   | all  = All articles needing cleanup
   | all  = All articles needing cleanup
   | cat2  = Cleanup tagged articles with{{#if:{{{2|{{{reason|}}}}}}||out}} a reason field
   | cat2  = Cleanup tagged articles with{{#if:{{{2|{{{reason|}}}}}}||out}} a reason field
   }}
   }}
   |{{mbox
   |{{ambox
  | name = {{{name|Cleanup}}}
   | demospace = {{{demospace|}}}
   | demospace = {{{demospace|}}}
   | type      = {{{style|}}}
   | class = {{{class|ambox-Cleanup}}}
   | text      = This {{{1|{{SUBJECTSPACE formatted}}}}} '''may require [[MEpedia:cleanup|cleanup]] to meet MEpedia's [[MEpedia:Guidelines|guidelines]]'''. {{#if:{{{2|{{{reason|}}}}}}
   | style = {{#ifeq:{{{color|}}}|orange|border-color:#f28500|{{{style|}}}}}
    |The specific problem is: '''{{{2|{{{reason}}}}}}'''.
|image =
    |No [[Template:Cleanup/doc|cleanup reason]] has been specified.
{{#switch:{{{class}}}
  }} &nbsp;{{Help improve text}}{{#ifeq:{{SUBJECTSPACE}}|{{NAMESPACE}}&nbsp;
|Ambox-POV = [[File:Unbalanced scales.svg|50x40px|link=|alt=unbalanced scales|class=transparent]]
| {{#ifexist: {{TALKPAGENAME}}|&nbsp;{{talkpage text}}}}
|Ambox-rewrite = [[File:Crystal Clear app kedit.svg|50x40px|alt=notepad|class=transparent]]
}}}}
|Ambox-addimage = [[File:Add-image.jpg|40px|left|alt=Add an image|class=transparent]]
|#default =[[File:Crystal Clear app kedit.svg|50x40px|alt=notepad|class=transparent]]
}}
  | type  = {{{type|style}}}
  | issue = {{{issue|{{int:pagetriage-tags-cleanup-desc}}}}}<br>{{cleanup reason text|lang={{int:lang}}|reason={{{reason|}}}|name={{{name|}}}}}
  | talk  = {{{talk|{{{talksection|}}}}}}
  | fix  = <br />{{Help improve text}} {{{fix|}}}
  | date  = {{{date|unknown date}}}
}}
  | demospace = {{{demospace|<noinclude>main</noinclude>}}}
  | demospace = {{{demospace|<noinclude>main</noinclude>}}}
  }}{{Category handler
  }}{{Category handler
   |page    = {{SUBJECTPAGENAME}}
   |page    = {{SUBJECTPAGENAME}}
   |nocat    = {{{nocat|}}}
   |nocat    = {{{nocat|}}}
   |category = {{DMC|Categories needing cleanup}}
   |category = {{{category|{{DMC|Categories needing cleanup}}}}}
   |template = {{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}|Template:Cleanup||{{DMC|Templates needing cleanup}}}}
   |template = {{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}|Template:Cleanup||{{DMC|Templates needing cleanup}}}}
   |other    = {{DMCA|All articles needing cleanup|from|{{year|{{{date|{{REVISIONYEAR}}}}}}}}}
   |other    = {{DMCA|All articles needing cleanup|from|{{#if: {{{date|}}}|{{year|{{{date|}}}}}|unknown year}}}}}}
}}
}}
}}
}}
<noinclude>
}}<noinclude>
<templatedata>
<templatedata>
{
{
"description":
{
"en": "This template tag adds a \"Cleanup\" notice to a page, indicating that the page needs a significant clean-up.  Please explain below why the page needs a clean-up.  You do not need to enter the date.",
"ar": "يشير هذا إلى أن الصفحة تحتاج إلى تصحيح مهم ، وشرح أدناه سبب الحاجة إلى تصحيح الصفحة",
"da": "Dette indikerer, at siden kræver en betydelig korrektion. Forklar nedenfor, hvorfor siden kræver korrektion.",
"de": "Dies weist darauf hin, dass die Seite einer erheblichen Korrektur bedarf.  Bitte erläutern Sie unten, warum die Seite korrigiert werden muss.",
"es": "Esto indica que la página necesita una corrección significativa.  Explica a continuación por qué la página necesita una corrección.",
"fi": "Tämä osoittaa, että sivu tarvitsee merkittävän korjauksen. Selitä alla miksi sivu tarvitsee korjauksen.",
"fr": "Cela indique que la page nécessite une correction significative.  Veuillez expliquer ci-dessous pourquoi la page nécessite une correction.",
"it": "Ciò indica che la pagina richiede una correzione significativa. Spiegare di seguito perché la pagina richiede correzione.",
"ja": "これは、ページを大幅に修正する必要があることを示しています。ページを修正する必要がある理由を以下に説明してください。",
"nl": "Dit geeft aan dat de pagina een significante correctie vereist. Leg hieronder uit waarom de pagina moet worden gecorrigeerd.",
"no": "Dette indikerer at siden krever en betydelig korreksjon. Forklar nedenfor hvorfor siden krever rettelse.",
"pl": "Oznacza to, że strona wymaga znacznej korekty. Wyjaśnij poniżej, dlaczego strona wymaga korekty.",
"pt": "Isso indica que a página requer uma correção significativa. Explique abaixo por que a página requer correção.",
"ru": "Это указывает на то, что страница требует значительного исправления. Пожалуйста, объясните ниже, почему страница требует исправления.",
"sv": "Detta indikerar att sidan kräver en betydande korrigering. Förklara nedan varför sidan kräver korrigering.",
"vi": "Điều này chỉ ra rằng trang yêu cầu một sự điều chỉnh đáng kể. Vui lòng giải thích bên dưới tại sao trang yêu cầu chỉnh sửa.",
"zh-hans": "这表明该页面需要进行重大更正。请在下面解释为什么页面需要更正。",
"zh-hant": "這表明該頁面需要進行重大更正。請在下面解釋為什麼頁面需要更正。"
},
"params": {
"params": {
"reason": {
"reason": {
Line 56: Line 82:
"suggested": true,
"suggested": true,
"example": "This page needs references added and needs to be re-formatted.",
"example": "This page needs references added and needs to be re-formatted.",
"label": "Please explain.  See description for suggested reasons."
"label":
{
"en": "Please explain.  See description for suggested reasons.",
"ar": "اشرح لماذا تحتاج الصفحة إلى تصحيح",
"da": "Forklar, hvorfor siden kræver en korrektion.",
"de": "Bitte erläutern Sie, warum die Seite korrigiert werden muss.",
"es": "Explica por qué la página necesita una corrección.",
"fi": "Selitä miksi sivu tarvitsee korjauksen.",
"fr": "Veuillez expliquer pourquoi la page nécessite une correction.",
"it": "Spiega perché la pagina richiede una correzione.",
"ja": "ページを修正する必要がある理由を説明してください。",
"nl": "Leg uit waarom de pagina moet worden gecorrigeerd.",
"no": "Vennligst forklar hvorfor siden krever en korreksjon.",
"pl": "Wyjaśnij, dlaczego strona wymaga korekty.",
"pt": "Explique por que a página requer uma correção.",
"ru": "Пожалуйста, объясните, почему страница требует исправления.",
"sv": "Förklara varför sidan kräver en korrigering.",
"vi": "Vui lòng giải thích lý do tại sao trang yêu cầu chỉnh sửa.",
"zh-hans": "请解释为什么页面需要更正。",
"zh-hant": "請解釋為什麼頁面需要更正。"
}
},
},
"date": {
"date":  
"label": "Year",
{
"description": "By default, this tag will be marked with the current year. You can also correct it here if you need to.",
"label":
"example": "2019",
{
"type": "string",
"en": "Current date",
"autovalue": "{{subst:CURRENTYEAR}}",
"de": "Aktuelles Datum",
"suggested": true
"es": "Fecha actual",
"fr": "Date actuelle"
},
"description":
{
"en": "The current date will be automatically specified. If you wish, you can specify another date.",
"de": "Das aktuelle Datum wird automatisch angegeben. Wenn Sie möchten, können Sie ein anderes Datum wählen.",
"es": "La fecha actual se especificará automáticamente. Si lo desea, puede elegir otra fecha.",
"fr": "La date du jour sera automatiquement spécifiée. Si vous le souhaitez, vous pouvez choisir une autre date."
},
"example": "Aug 12, 2019",
"type": "string",
"autovalue": "{{subst:Date}}",
"suggested": true
}
}
},
}
"description": "This template tag adds a \"Cleanup\" notice to a page, indicating that the page needs a significant clean-up.  Please explain below why the page needs a clean-up.  You do not need to enter the year."
}
}
</templatedata>
</templatedata>

Latest revision as of 13:23, December 13, 2021

This template tag adds a "Cleanup" notice to a page, indicating that the page needs a significant clean-up. Please explain below why the page needs a clean-up. You do not need to enter the date.

Template parameters

ParameterDescriptionTypeStatus
Please explain. See description for suggested reasons.reason

Please describe why the page needs a clean-up. You may use the talk page for long descriptions.

Suggested reasons - 
•'''accuracy''' is disputed
•'''bias''' eg promotional content, misleading or lacks neutrality disputed
•'''citations needed'''
•'''editorial''' guidelines not met
•'''image copyright''' missing or images may not be licensed for reuse
•'''image essential'''
•'''layout''' is poor or article is cluttered
•'''multiple issues'''
•'''spelling or grammar'''
•'''rewrite''' to meet quality standards
•'''sources unscientific''', may not meet science guidelines eg citing of Wikipedia, unreferenced articles, blogs
•'''tidy citations''' eg link to authors •'''too long'''
•'''too technical'''

Example
This page needs references added and needs to be re-formatted.
Auto value
Stringsuggested
Current datedate

The current date will be automatically specified. If you wish, you can specify another date.

Example
Aug 12, 2019
Auto value
{{subst:Date}}
Stringsuggested
template icon Template documentation[view] [edit] [history] [purge]

Example[edit source]

{{Cleanup|reason=incorrect capitalization }}
{{Cleanup|reason=incorrect capitalization|date=2019}}
{{Cleanup|reason =incorrect capitalization|date={{year}}

Sandbox testing[edit source]

content hidden
{{Cleanup/sandbox|reason=incorrect capitalization no date }}


{{Cleanup/sandbox|reason=incorrect capitalization|date=2019}}


{{Cleanup/sandbox|reason =incorrect capitalization|date={{year}}


{{Cleanup/sandbox|date=2019}}

You must add a |reason= parameter to this Cleanup template - replace it with {{Cleanup|date=2019|reason=<Fill reason here>}}, or remove the Cleanup template.

Usage[edit source]

{{Cleanup}} should be used with the following parameter:

  • reason: the reason for requesting cleanup. This is useful for editors in case the reason for requesting a cleanup is not immediately obvious. The first character of the reason (immediately after the equals sign) should be lowercase, in order to preserve the sentence flow when rendered.

date: the date is automatically completed; this helps to figure out how long an article has been tagged for cleanup.

Optional parameters include:

  • talksection: the section of the talk page explaining what needs to be done. Add a new section to the talk page explaining the type and extent of clean-up required so editors will know what to address, and when to remove this template.

The template should be placed at the top of the article requiring a cleanup. Because {{Cleanup}} is vague, specific problems should be identified in the reason field; a more detailed explanation of what needs to be done can be provided on the article's talk page. An article's {{Cleanup}} template may be removed without the problem(s) being fixed if it is not possible to identify what needs to be cleaned up.

Do not substitute this template.

When to use[edit source]

This tag is intended to identify pages that need wikification or the correction of spelling, grammar, typographical errors, tone, and other similar, non-content-focused changes. Use this tag when the article needs improvement.

Articles that violate policy need more direct action. Other templates, such as {{POV}}

{{POV}}, are better suited to content disputes.

Examples[edit source]

For example, {{Cleanup|reason=the article is full of incorrect capitalization}} would display as:

The template detects which namespace it is used in and changes accordingly:
Article
Category
Template

The descriptor (on the preceding example "template") can be changed from its default using the first parameter, for instance {{Cleanup|section}} or {{Cleanup|disambiguation page}}.

Categorization[edit source]

This template will add pages on which it is used to a specific category Category:All articles needing cleanup containing pages needing cleanup or a dated subcategory thereof.

For tracking purposes it also categorises the page according to whether a reason code has been given.

Alternative[edit source]

If the problem is correctable with the skills you already possess, consider being bold and fixing it yourself, rather than applying this template and leaving it for someone else to clean up.

See also[edit source]

Redirects[edit source]