Template:Bgcolor
Jump to navigation
Jump to search
{{{2}}}
| This template uses TemplateStyles: |
Usage
Generates a text with a specific background colour.
Note
Uses the <span> html tag with inline CSS.
Syntax
{{bgcolor|{{{1}}}|{{{2}}}}}
{{bgcolor|background colour|text / content}}
Parameters
| 1 | background colour |
| 2 | Text or content |
| text-color | optional text colour; default is black |
| noinvert | optional to disable colour inversion in dark mode GUI skin |
Examples
{{bgcolor|red|text}}rendered : text{{bgcolor|#ffff00|text}}rendered : text
See also
- {{Color}}