Difference between revisions of "Template:Bg/doc"
Jump to navigation
Jump to search
imported>Thumperward (more) |
imported>Thumperward (more) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| + | |||
| + | This template can be used to create a background color for a span of text. | ||
=== Usage === | === Usage === | ||
| − | + | <pre>{{bg|t=<text>|c=<color>}}</pre> | |
| − | |||
| − | <pre>{{bg|t=text|c= | ||
Alternatively, the attributes can be unnamed: | Alternatively, the attributes can be unnamed: | ||
| Line 12: | Line 12: | ||
<pre>{{bg|<text>|<color>}}</pre> | <pre>{{bg|<text>|<color>}}</pre> | ||
| − | + | [[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 === | === See also === | ||
Revision as of 08:21, 3 September 2010
| 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|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
- {{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)