“模板:Cleanup”的版本间的差异

wikilife>WOSlinker
(use br instead of clear template)
 
Ph9讨论 | 贡献
(导入1个版本)
 
(没有差异)

2020年12月27日 (日) 14:47的最新版本

{{#ifexpr:{{#expr:{{#iferror:{{#time:U|{{{date}}}}}|2000000000}}>=1341100800}}*{{#if:x|0|1}}*{{#ifeq:{{{nocat}}}|true|0|1}}

|模板:Error
|{{#switch:
 {{#if:main 
 | main    
 | {{#ifeq:模板|
   | main
   | other
   }} 
 }}

| main =

{{#ifeq:|left|}}

| other

| #default =

}}{{#ifeq:{{#titleparts:模板:Cleanup|1}}|Template:Cleanup||{{#ifeq:{{ safesubst:#if:

 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Cleanup}}|1}}
 | {{ safesubst:#if:|{{{1}}}|模板:Cleanup}}

}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:no|yes|0|1}}

|{{#if:
 |{{#ifexist:Category:Wikipedia templates needing cleanup from 
   ||}}
 |[[Category:{{#if:
              |{{{5}}}|Wikipedia templates needing cleanup}}]]}}{{#if:
     |[[Category:{{{4}}}]]}}}}}}}}

}}

50px Template documentation[view] [edit] [history] [purge]

{{#ifeq:cleanup |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:模板:Cleanup
                  | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}
{{#if:||{{#ifeq:Cleanup|Cleanup|}}}}

Post articles on WikiProject Cleanup编辑

If you feel that your article needs a significant amount of cleanup, you can post articles on WP:CLEAN (Project Cleanup) to have them cleaned by users. It is more effective than tagging as there is a backlog for the tags. Editors will give your submitted article a cleanup and fix any problems associated with it. Please submit at WP:CLEAN.

Usage编辑

{{Cleanup}} should be used with the following two parameters:

  • |{{SAFESUBST:#if:date|date=}}: the month and year (e.g. 11月 2024) when the Cleanup template was added to the article; this helps to figure out how long an article has been tagged for cleanup.
  • |{{SAFESUBST:#if:reason|reason=}}: the reason for requesting cleanup. This is useful for editors in case the reason for requesting a cleanup is not immediately obvious.

Optional parameters include:

  • |{{SAFESUBST:#if:talk|talk=}} or |{{SAFESUBST:#if:talksection|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.
  • |{{SAFESUBST:#if:1|1=}} (or an empty parameter): changes the default descriptor (i.e., "article"). For example, {{Cleanup|section}} changes it to "section".
  • |{{SAFESUBST:#if:small|small=}}: enter 'left' here to turn the template into a small box on the left side of the screen.
  • |{{SAFESUBST:#if:nocat|nocat=}}: enter 'true' here to prevent the template from adding cleanup categories to the article.

The template should be placed at the top of the article requiring a cleanup. If practicable, please use a more specific cleanup template. 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 problems being fixed if it is not possible to identify what needs to be cleaned up.

If this template is substituted, the end result consists of an unsubstituted form including an automatically filled date= parameter with the current date.

When to use编辑

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 per WP:BETTER.

Articles that violate policy need more direct action. Other templates, such as {{POV}}, are better suited to content disputes.

Alternative编辑

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.

Examples编辑

For example, {{Cleanup|reason=the article is full of incorrect capitalization.|date=11月 2024}} would display as: {{#ifexpr:{{#expr:{{#iferror:{{#time:U|11月 2024}}|2000000000}}>=1341100800}}*{{#if:the article is full of incorrect capitalization.|0|1}}*{{#ifeq:true|true|0|1}}

|模板:Error
|{{#switch:
 {{#if:main 
 | main    
 | {{#ifeq:模板|
   | main
   | other
   }} 
 }}
| main = {{#ifeq:|left|}}

| other

| #default =

}} }}

The template detects which namespace it is used in and changes accordingly:
Article 11月 2024}}|2000000000}}>=1341100800}}*{{#if:lorem ipsum dolor sit amet.|0|1}}*{{#ifeq:true|true|0|1}} 模板:Error {{#switch:
 {{#if:main 
main main other
   }} 
 }}
main = {{#ifeq:|left|}} other #default =

}} }}

Category 11月 2024}}|2000000000}}>=1341100800}}*{{#if:lorem ipsum dolor sit amet!|0|1}}*{{#ifeq:true|true|0|1}} 模板:Error {{#switch:
 {{#if:category 
category main other
   }} 
 }}
main = {{#ifeq:|left|}} other #default =

}} }}

Template 11月 2024}}|2000000000}}>=1341100800}}*{{#if:lorem ipsum dolor sit amet?|0|1}}*{{#ifeq:true|true|0|1}} 模板:Error {{#switch:
 {{#if:other 
other main other
   }} 
 }}
main = {{#ifeq:|left|}} other #default =

}} }}

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编辑

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

Tracking categories编辑

  • [[:Category:{{#ifeq:All pages|Category:|模板:Str right|All pages needing cleanup}}|{{#if:|{{{name}}}|Category:{{#ifeq:All pages|Category:|模板:Str right|All pages needing cleanup}}}}]] (0)

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

See also编辑

Redirects编辑

{{#if:

|
{{#if: * {{Attention}} {{#if:|
The unnamed parameter 2= is no longer supported. Please see the documentation for {{columns-list}}.
}}
   |* {{Attention}}
{{#if:|
The unnamed parameter 2= is no longer supported. Please see the documentation for {{columns-list}}.
}}
}}{{#ifeq: |yes
   |}}}}

Wrappers编辑

TemplateData编辑

{{#if:|{{#switch:
|={{#ifeq:{{safesubst:#switch: {{{lc}}}
|no
|n
|f
|false
|off
|0        = no
|         = no
|¬        = no
|yes
|y
|t
|true
|on
|1        = yes
|#default = no

}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.

|None|none=Parameter usage report
|for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Cleanup}}.
|#default=[1]

}}|This is the {{#if:|TemplateData|TemplateData}} documentation for this template used by VisualEditor and other tools; {{#switch:

|={{#ifeq:{{safesubst:#switch: yes
|no
|n
|f
|false
|off
|0        = no
|         = no
|¬        = no
|yes
|y
|t
|true
|on
|1        = yes
|#default = no

}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.

|None|none=Parameter usage report
|for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Cleanup}}.
|#default=[2]

}}}}

TemplateData for Cleanup

{{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:模板|模板
   | template
   | other
   }}
 }}

| template = {{#if:{{#ifeq:Cleanup|sandbox|1}}{{#ifeq:Cleanup|doc|1}}||

}} | other | #default = }} <templatedata> { "description": "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 per WP:BETTER.", "format": "inline", "params": { "date": { "label": "Month and year", "description": "Month and year the template was added to the page", "type": "string", "autovalue": "{{SUBST:CURRENTMONTHNAME}} {{SUBST:CURRENTYEAR}}", "example": "January 2018", "required": true }, "reason": { "aliases": [ "2" ], "label": "Reason", "description": "Reason for requesting cleanup", "type": "string", "example": "The article is full of incorrect capitalization.", "required": true }, "talk": { "aliases": [ "talksection" ], "label": "Talk page section", "description": "The section of the talk page explaining what needs to be done", "type": "string" }, "small": { "label": "Small", "description": "Enter 'left' here to turn the template into a small box on the left side of the screen.", "type": "string", "autovalue": "left", "example": "left" }, "1": { "label": "Type (e.g., section)", "description": "Text to replace the word \"article\", usually \"section\"", "type": "string", "autovalue": "section", "example": "section" }, "nocat": { "label": "No category", "description": "Suppress categorization", "type": "string", "autovalue": "true", "example": "true" } }, "paramOrder": [ "date", "reason", "talk", "small", "1", "nocat" ] } </templatedata>

{{#if:{{#ifeq:Cleanup|sandbox|1}}{{#ifeq:Cleanup|doc|1}}|| az:Şablon:Təmizləmə }}