Template:Color/doc
Appearance
Description
This template makes it easy to access MSPA's template of colors, for coloring text or using it as an input to a CSS style.
Syntax
{{color|<INDEX>|<TEXT>}}
Notes
- Acceptable values for <INDEX> are:
- A color name used in the above table. This should always be used unless you want a color that isn't supported.
- A hexidecimal value.
- A web color name.
- The <TEXT> parameter is optional.
- Refer to the above table for color indices.
Sample output
{{color|john|John Egbert's text}}
John Egbert's text
<div style="width:250px; height:50px; background:{{color|rose}};"/>
{{color|#F00|'''Making red text using a hex value.'''}}
Making red text using a hex value.
{{color|lime|'''Making green text using a web color.'''}}
Making green text using a web color.