Template:Color
<inludeonly></includeonly>
Template documentation
The {{color}} template displays text in the specified color. It is a replacement for <span style="color:xxx">...</span>
.
Usage
To use the template, copy and paste the following in the article where the colored text is desired:
{{color|1|2}}
Parameters
Parameter | Description | Type | Status | Notes |
---|---|---|---|---|
1 |
Color | String | Required | Acceptable values for the text color are RGB hex codes, e.g. #C9E72A, or any of the web colors: red, blue, green, moccasin, darkorchid, etc. |
2 |
Text | String | Optional | Defaults to the color (1 ) if not specified.
|
Examples
{{color|#00F000|It says this}}
→ <inludeonly>It says this{{color|red}}
→ <inludeonly>red