Modèle:Overcoloured/doc

De Wikisisar
< Modèle:Overcoloured
Révision datée du 21 octobre 2017 à 20:58 par TDLaouer (discussion | contributions) (1 révision importée)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à : navigation, rechercher

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:Modèle:Overcoloured
                  | [[Category:{{#switch:Modèle |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 |{{#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, {{{{#if:Overcoloured|Overcoloured| tnull|...}}{{#if:section||section|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}{{#if:||{{{9}}}|}}}} displays "This section may overuse colour..."
  • This template takes the optional parameter |{{#if:reason|reason=}}, which can be used to explain what issues need to be addressed, e.g. |{{#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