Template:Background color/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{template shortcut|Bg}} == Usage == <pre>{{Background color|<color>|<text>...") |
(No difference)
|
Latest revision as of 21:10, 12 August 2018
![]() | This is a documentation subpage for Template:Background color. It contains usage information, categories and other content that is not part of the original template page. |
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!
See also
- {{Color}} – sets text color only
- {{Font color}} – sets both text and background color
- {{Color contrast ratio}}
- {{Hilite}} – sets background color, with an optional expiry date
- {{Resize}}