{{#ifeq:模板|模板||}}

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

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

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

|{{#if:
 |{{#ifexist:Category:Wikipedia articles with colour accessibility problems  
   ||}}
 |[[Category:{{#if:
              ||Wikipedia articles with colour accessibility problems}}]]}}{{#if:

|[[Category:]]}}}}}}

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

{{#ifeq:overcoloured |doc

    | 

{{#ifeq:show |show

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

Usage编辑

If an article does not meet the guideline for the use of colours, add this to the top of the article:

{{overcoloured}}

Alternatively, if the problem only affects one section of the article, add this to the top of the relevant section:

{{overcoloured|section}}
  • If the article is written in United States English, add the |{{SAFESUBST:#if:US|US=}}yes option to spell "colour" as "color" for WP:ENGVAR compliance. Calling the template as {{overcolored}} does this automatically.
  • This template takes an optional parameter that replaces the word "article" in the displayed message with arbitrary text. For example, {{Overcoloured|section}} displays "This section may overuse colour..."
  • This template takes the optional parameter |{{SAFESUBST:#if:reason|reason=}}, which can be used to explain what issues need to be addressed, e.g. |{{SAFESUBST:#if:reason|reason=}}The contrast of some of the colors used in this timeline is not high enough to be read easily by almost anyone.

Category编辑

This template adds articles to Category:Wikipedia articles with colour accessibility problems.

See also编辑

{{#if:{{#ifeq:Overcol|sandbox|1}}{{#ifeq:Overcoloured|doc|1}}|| }}