Difference between revisions of "Template:Bg/doc"

From blackwiki
Jump to navigation Jump to search
(reversed)
Line 6: Line 6:
 
=== Usage ===
 
=== Usage ===
  
<pre>{{bg|t=<text>|c=<color>}}</pre>
+
<pre>{{bg|c=<color>|t=<text>}}</pre>
  
 
Alternatively, the attributes can be unnamed:
 
Alternatively, the attributes can be unnamed:
  
<pre>{{bg|<text>|<color>}}</pre>
+
<pre>{{bg|<color>|<text>}}</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.
 
[[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.

Revision as of 21:04, 1 August 2012

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)