Template:Background color
shortcut: {{Bg}}
(Redirected from Template:Bg)
This template is used on many pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
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
{{Background color|red|Hello, world!}}
results in Hello, world!{{Background color|#00F000|Hello, world!}}
results in Hello, world!
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 }}