Template:Color
The template can be used to specify the color of a span of text. The color value can be a hex code or any other color value accepted by CSS.
Usage[edit source]
{{color|COLOR|Text}}
Examples[edit source]
{{color|#0099ff|Hello world}}
outputs: Hello world{{color|red|Hello world}}
outputs: Hello world
If the text parameter is omitted, the color value will be displayed as the text:
{{color|#0099ff}}
outputs: #0099ff{{color|red}}
outputs: red
Template data[edit source]
Colors a span of text the specified color.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | 1 | The color that the text should be. Can be a hex code or any other color value accepted by CSS.
| String | required |
Text | 2 | The text that should be colored. If this field is not provided, the color value will be displayed as the text. | String | suggested |