Template:Color

From Workers & Resources: Soviet Republic Official Wiki

text?

Template documentation (for the template shown above, sometimes hidden or invisible)

Template for changing text foreground and background color. Accepts standard HTML color names or RGB hex triplets.

Usage

{{color|red|text}}
{{color|#FF0000|text}}
{{color|red|text|bg=green}}

Unless used on your user page, use with great caution as a poor contrast can make the text difficult to read. Be aware that this template does not change the color of links as these are determined by site or personal settings.

Parameters

Yes
<unnamed 1>
HTML color name or RGB hex triplet of text foreground color.
Yes
<unnamed 2>
Text which should be colored.
Neutral
bg
HTML color name or RGB hex triplet of text background color.

Examples

  • {{color|red|text}} results in: text
  • {{color|#800080|text}} results in: text
  • {{color|yellow|text|bg=green}} results in: text
Documentation transcluded from Template:Color/doc.