Template:Color/doc
From Workers & Resources: Soviet Republic Official Wiki
This page contains usage information for Template:Color. |
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
<unnamed 1>
HTML color name or RGB hex triplet of text foreground color.
<unnamed 2>
Text which should be colored.
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