Template:Background color
Appearance
(Redirected from Template:Bg)
| This template is used on approximately 7,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| Links should be clearly recognizable as clickable to readers. Avoid using colored links as it may hinder the reader's ability to distinguish links from regular text, particularly coloring links solely for aesthetic purposes. See the Manual of Style accessibility guideline sections on Contrast and Color. |
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}}
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Background color in articles based on its TemplateData.
TemplateData for Background color
| This template needs TemplateData. Please add a TemplateData section, including {{TemplateData header}}, if you are able. |