Template:Web colors/doc: Difference between revisions
More actions
Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Never substitute}} {{for|the projectspace template|Template:Web Colors}} == Purpose == Insert {{tlx|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 or..." |
(No difference)
|
Latest revision as of 21:25, 15 February 2025
| This is a documentation subpage for Template:Web colors. It may contain usage information, categories and other content that is not part of the original template page. |
| This template should not be substituted. |
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".
Parameters
This template's initial visibility currently defaults to autocollapse, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state= parameter may be used:
{{Web colors|state=collapsed}}will show the template collapsed, i.e. hidden apart from its title bar.{{Web colors|state=expanded}}will show the template expanded, i.e. fully visible.
See also