Template:Color
Appearance
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
- Description
- This template can be used to specify the foreground color of a span of text. Acceptable values are RGB hex codes or any of the web colors.
- Usage
Place {{Color|<Name of color or hex code of color>|<Text>}}
onto a page. It is usually inserted inside of a Dropdown between the <poem>
tags.
Examples
{{color|red|Hello, world!}}
Hello, world!
{{color|#00F000|Hello, world!}}
Hello, world!
If the second parameter is omitted, the color value is displayed as text:
{{color|#00F000}}
#00F000
{{color|red}}red