Template:Web colors/doc

From HandWiki

Purpose

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

  • {{web colors}} for simple cases
  • {{web colors|colour}} to use the spelling "colour" instead of "color"

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

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Web colors|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Web colors|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Web colors|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.