Permanently protected template

Template:Web colors

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]


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.


  • {{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".

Retrieved from ""
This content was retrieved from Wikipedia :
This page is based on the copyrighted Wikipedia article "Template:Web colors"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA