قالب:Bg

Template documentation[view] [edit] [history] [purge]

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)