模板:Tone

wikilife>Jonesey952020年3月30日 (一) 01:16的版本 (add reason parameter per TPER, with extra white space to reduce possible Linter errors)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{#ifeq:{{{small}}}|left|}}{{#ifeq:{{ safesubst:#if:

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

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

|{{#if:
 |{{#ifexist:Category:Wikipedia articles with style issues from 
   ||}}
 |[[Category:{{#if:Wikipedia articles with style issues by month
              |Wikipedia articles with style issues by month|Wikipedia articles with style issues}}]]}}{{#if:All articles with style issues
     |}}}}}}
50px Template documentation[view] [edit] [history] [purge]

{{#ifeq:tone |doc

    | 

{{#ifeq:show |show

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

If an article is not written in an encyclopedia-like style, add the {{tone}} template at the top. This template creates a banner stating the problem at the top of the article's page, and also adds its tagged articles to one of Wikipedia's administrative categories: Category:Wikipedia articles with style issues (shortcut to that category: CAT:STYLE).

For more about the way an encyclopedia's article is written, see Wikipedia's Manual of Style or Wikipedia:Template index/Cleanup § Style of writing.

Note: This template is a self-reference, and should not be substituted.

Usage

{{Tone}} or {{Tone|{{subst:DATE}}}}

Specific area

To make the banner apply to a more specific area, add |{{SAFESUBST:#if:|=}}section, or |{{SAFESUBST:#if:|=}}article:

{{Tone|section}}, or to include the date (recommended), {{Tone|section|{{subst:DATE}}}}
{{Tone|article}}, or to include the date (recommended), {{Tone|article|{{subst:DATE}}}}

Linking to a section on the talk page

To link to a relevant discussion on the article's Talk page, add the |{{SAFESUBST:#if:talk|talk=}} parameter. The argument (the part after the equals sign) can be either a section title on the article's own talk page, or the name of another page where discussion appears (with or without a specific section):

{{Tone|talk=Discussion of tone issues}}
{{Tone|talk=Talk:Another Article#Relevant discussion section}}

Notes

This template will add tagged articles to dated subcategories of Category:Wikipedia articles with style issues by month and to Category:All articles with style issues.

Redirects

The following templates are redirects to this template and will display the same message:

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:Tone}}.
|#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:Tone}}.
|#default=[2]

}}}}

TemplateData for Tone

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

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

}} | other | #default = }} <templatedata> {

   "description": "Use this template to indicate that an article is not written in an encyclopedia-like style.",

"format": "inline", "params": { "date": { "label": "Month and year", "description": "Month and year of tagging; e.g., 'January 2013', but not 'jan13'", "type": "string", "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "example": "January 2013", "suggested": true }, "1": { "label": "Type (e.g., section)", "description": "Text to replace the word \"article\", usually \"section\"", "type": "string", "autovalue": "section", "example": "section" }, "talk": { "label": "Section name on talk page", "description": "Section name on talk page where further information or discussion can be found", "type": "string" } }, "paramOrder": [ "date", "1", "talk" ] } </templatedata>

See also

Lists of related article templates

Lists of other types of article templates

There are also messaging and tagging templates available for:

Templates that might be a better fit than this one

{{#ifeq:wikipedia's tagged articles: backlog by template's category|end

|

|

Wikipedia's tagged articles: backlog by template's category

}} Wikipedia:Backlog lists tasks that should be done to improve Wikipedia (assuming the cleanup templates were placed correctly). Helping reduce backlogs is an important issue, so please feel free to help out.


Click any linked number for that category's articles prioritized by their number of incoming links.

{{#ifeq:end|end

|

|

end

}}

{{#if:{{#ifeq:Tone|sandbox|1}}{{#ifeq:Tone|doc|1}}|| }}