Template:Bg/doc
Appearance
This is a documentation subpage for Template:Bg. It may contain usage information, categories and other content that is not part of the original template page. |
This template can be used to create a background color for a span of text.
Usage
[edit source]{{bg|t=<text>|c=<color>}}
Alternatively, the attributes can be unnamed:
{{bg|<text>|<color>}}
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.
See also
[edit source]- {{Colors}} – background/text color (text in free span)
- {{TextColors}} – background/text color (text in block table)
- {{bkg}} – background color (text in free span)
- {{bg}} – background color (text in free span)