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
(add info about RGB codes)
Line 12: Line 12:
{{rgb|colorname}}
{{rgb|colorname}}
</pre>
</pre>
''colorname'' is the name of the desired color. Entering an RGB code will simply return that code, unaffected.
''colorname'' is the name of the desired color. Entering an RGB code without a leading # will simply append the # symbol. Entering an RGB code ''with'' a leading # symbol should not be attempted; simply enter that code directly. Doing so within this template will always result in white.


=== Examples ===
=== Examples ===
Line 49: Line 49:
|
|
<span style="background-color:{{rgb|light-green}}">&emsp;&emsp;</span>
<span style="background-color:{{rgb|light-green}}">&emsp;&emsp;</span>
|-
|
<code><nowiki>
{{rgb|ffcc00}}
</nowiki></code>
|
<span style="background-color:{{rgb|ffcc00}}">&emsp;&emsp;</span>
|-
|
<code><nowiki>
{{rgb|#ffcc00}}
</nowiki></code>
|
<span style="background-color:{{rgb|#ffcc00}}">&emsp;&emsp;</span>
|}
|}
</noinclude>
</noinclude>

Revision as of 03:07, 21 August 2007


Returns the RGB color-code of named color. The colors returned by this template are not the same as the standard predefined CSS colors.

Usage

{{rgb|colorname}}

colorname is the name of the desired color. Entering an RGB code without a leading # will simply append the # symbol. Entering an RGB code with a leading # symbol should not be attempted; simply enter that code directly. Doing so within this template will always result in white.

Examples

Curently, the following colors are defined.

Color name Example color

{{rgb|blue}}

  

{{rgb|red}}

  

{{rgb|green}}

  

{{rgb|light-green}}

  

{{rgb|ffcc00}}

  

{{rgb|#ffcc00}}