You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Rgb: Difference between revisions
Jump to navigation
Jump to search
SigmaEpsilon (talk | contribs) No edit summary |
SigmaEpsilon (talk | contribs) (update examples) |
||
Line 1: | Line 1: | ||
< | <includeonly>{{ #switch:{{{1}}}| blue=#00a | red=#a00 | green=#0a0 | light-green= #0f0| #{{{1}}} }}</includeonly> | ||
Returns the RGB color-code of named color. ''The colors returned by this templte are '''not''' the same as the standard | <noinclude> | ||
Returns the RGB color-code of named color. ''The colors returned by this templte are '''not''' the same as the standard predefined CSS colors.'' | |||
=== Examples === | === Examples === | ||
Line 15: | Line 16: | ||
</nowiki></code> | </nowiki></code> | ||
| | | | ||
<span style="background-color:{{rgb|blue}};color:{{rgb|blue}}"> | <span style="background-color:{{rgb|blue}};color:{{rgb|blue}}">____</span> | ||
|- | |||
| | |||
<code><nowiki> | |||
{{rgb|red}} | |||
</nowiki></code> | |||
| | |||
<span style="background-color:{{rgb|red}};color:{{rgb|red}}">____</span>|- | |||
| | |||
<code><nowiki> | |||
{{rgb|green}} | |||
</nowiki></code> | |||
| | |||
<span style="background-color:{{rgb|green}};color:{{rgb|green}}">____</span>|- | |||
| | |||
<code><nowiki> | |||
{{rgb|light-green}} | |||
</nowiki></code> | |||
| | |||
<span style="background-color:{{rgb|light-green}};color:{{rgb|light-green}}">____</span> | |||
|} | |} | ||
</noinclude> |
Revision as of 01:03, 21 August 2007
Returns the RGB color-code of named color. The colors returned by this templte are not the same as the standard predefined CSS colors.
Examples
Curently, the following colors are defined. A hexadecimal RGB code is also acceptable.
Color name | Example color | ||||
|
____ | ||||
|
____|- |
|
____|- |
|
____ |