Difference between revisions of "Template:Bg/doc"
Jump to navigation
Jump to search
(reversed) |
imported>Addbot m (Bot: Migrating interwiki links, now provided by Wikidata on d:q11069313) |
||
Line 35: | Line 35: | ||
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]] | [[Category:Wikipedia formatting and function templates|{{PAGENAME}}]] | ||
− | |||
− | |||
</includeonly> | </includeonly> |
Revision as of 00:57, 5 August 2013
![]() | This is a documentation subpage for Template:Bg. It contains 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
{{bg|c=<color>|t=<text>}}
Alternatively, the attributes can be unnamed:
{{bg|<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
{{bg|indianred|Indian Red}}
Indian Red
{{bg|steelblue|Steel Blue}}
Steel Blue
{{bg|slategrey|Slate Grey}}
Slate Grey
See also
- {{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)