Template:Color
{{{2}}}
This template is used on 463,000+ pages, or roughly 159% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Usage
You can set text in color names, HEX, RGB, RGBA, HSL and HSLA. HWB, LAB, LCH, OKLAB and OKLCH can also be used, but they are not advised as these are too new to be used.
results in Hello, world!
{{color|red|Hello, world!}}
results in Hello, world!
{{color|#00F000|Hello, world!}}
results in Hello, world!
{{color|rgb(51,102,255)|Hello, world!|hsl(299, 89%, 91%)}}
See Web colors for a list of colors.
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | 1 | Color of text
| String | required |
Text | 2 | Text string where a color is applied | String | required |
Background color | 3 | Background color of text
| String | optional |