Template:Web colors/doc

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Purpose[edit]

Insert {{web colors}} at the bottom of each page in which standard colors are defined. These sixteen named colors are defined in the CSS specification; HTML 4.01 also defines the same set of named colors, with the exception of orange. For more info, see Web colors.

Usage[edit]

  • {{web colors}} for simple cases
  • {{web colors|colour}} to use the spelling "colour" instead of "color"
  • {{web colors|state=...}} to control the show/hide collapsible option

Do not use subst: with this template. It is used in a small number of pages, but should always appear in identical form.

This template takes one optional named parameter, |state=. Use |state=autocollapse, |state=collapsed, or |state=uncollapsed to make the output collapsible and control whether it is initially collapsed or shown. Use |state=plain to make the output non-collapsible. The default is |state=autocollapse.

This template takes one unnamed parameter: the usage {{web colors|colour}} can be used for pages where the "colour" spelling is standard. If not used, the "color" spelling is default.

Note that there is no way to get the spelling "grey" instead of "gray".

See also[edit]