Template:Color

From CUETools
Jump to navigation Jump to search

Template can be used to add a span of text with any given text color. Acceptable values are RGB hex codes, e.g. #C9E72A, or any of the web colors: red, blue, green, etc.

Usage

{{color|name of color or RGB hex code of color|Text}}

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

Template parameters
Parameter Description Type Status
Color 1 CSS name of color or hex code of color, e.g. 'red' or '#00F000'. String required
Text 2 The string of text to be formatted in the desired color. String suggested