Template:Color
Jump to navigation
Jump to search
{{{2}}}
Documentation
Makes text colored. Use as follows:
{{Color|[valid CSS color]|[Text you want to be colored]}}
For more information on CSS colors, see here.
For colored links, see {{Colored link}}.
Examples
| Wikitext | Output | |
|---|---|---|
| CSS named color | {{Color|pink|Text}}
|
Text |
| Hex color | {{Color|#058345|Text}}
|
Text |
| RGB color | {{Color|rgb(124, 68, 165)|Text}}
|
Text |
| System color | {{Color|ActiveText|Text}}
|
Text |
| Wiki custom property[a] | {{Color|var(--color-hyperlink)|Text}}
|
Text |
Notes
Visual editor template data
Outputs colored text.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Color | 1 | no description
| Line | required |
| Text | 2 | no description | Content | required |