Template:Background color
Jump to navigation
Jump to search
Template:Ensure AAA contrast ratio
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!Template:Ensure AAA contrast ratio{{Background color|red|Hello, world!}}
results in Hello, world!Template:Ensure AAA contrast ratio{{Background color|#00F000|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}}
This template is based (in parts) on the Template:Background color from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.