Template:Color
Appearance
{{{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.
See also
{{red}}
- This is some text in red{{orange}}
- This is some text in orange{{amber}}
- This is some text in amber
{{gold}}
- This is some text in gold{{yellow}}
- This is some text in yellow{{lime}}
- This is some text in lime{{aqua}}
- This is some text in aqua{{blue}}
- This is some text in blue{{navy}}
- This is some text in navy{{fuchsia}}
- This is some text in fuchsia{{pink}}
- This is some text in pink{{maroon}}
- This is some text in maroon{{brown}}
- This is some text in brown{{olive}}
- This is some text in olive{{green}}
- This is some text in green{{teal}}
- This is some text in teal{{cyan}}
- This is some text in cyan{{purple}}
- This is some text in purple{{magenta}}
- This is some text in magenta{{white}}
- This is some text in white{{silver}}
- This is some text in silver{{grey}}
- This is some text in grey{{black}}
- This is some text in black
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 |