Template:Background color
Revision as of 16:19, 15 February 2023 by Gwyneth Llewelyn (talk | contribs) (Shamelessly copied from wikipedia.org)
Warning!
Unable to process due to lack of Lua module
This documentation is transcluded from Template:Background color/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Usage
{{Background color|<color>|<text>}}
Web colors provides a list of colors which can be used. Simple colors, like black, blue, red, green, etc. can just be spelled out. Alternatively, colors can be specified using either RGB or hex notation.
Examples
results in Hello, world!{{Background color|red|Hello, world!}}
Warning!
Unable to process due to lack of Lua module
results in Hello, world!{{Background color|#00F000|Hello, world!}}
Warning!
Unable to process due to lack of Lua module
Tracking category
Supporting template
See also
- {{Color}} – sets text color only
- {{Font color}} – sets both text and background color
- {{coltit}} — colored table header cell
- {{Color contrast ratio}}
- {{Hilite}} – sets background color, with an optional expiry date
- {{Resize}}