You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Rgb: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
(update examples)
Line 1: Line 1:
<onlyinclude>{{ #switch:{{{1}}}| blue=#00a | red=#a00 | green=#0a0 | light-green= #0f0| #{{{1}}} }}</onlyinclude>
<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 predefind CSS colors.''
<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>
<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

{{rgb|blue}}

____

{{rgb|red}}

____|-

{{rgb|green}}

____|-

{{rgb|light-green}}

____