Template:Color sample/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Color sample. It contains usage information, categories and other content that is not part of the original template page. |
This is a documentation subpage for Template:Color sample. It contains usage information, categories and other content that is not part of the original template page. |
Usage[edit source]
{{Color sample|red}}
→{{Color sample|#00FF00}}
→{{Color sample|#00FF00|description=green}}
→
Adds a description of the color for screen reader users{{Color sample|{{Independent politician/meta/color}}}}
→
(Instead of specifying a color directly, this example uses{{Independent politician/meta/color}}
, which generates#DDDDDD
.)
Note: When hovered over, the template shows the value used for color as a tooltip by default. This is also heard by a screen reader. An optional parameter, |description=
can be used to change that to something more user-friendly, as shown in the third example.
See also[edit source]
- Template:colorswatch-starfleet - color swatch. which also provides the standardized Starfleet name code for a specified color.
- Template:Swatch inline
- Template:Swatch
- Lists of colors
External links[edit source]
- Template:Color sample/doc at Wikipedia, the free Terran-based encyclopedia that anyone can edit.