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
No edit summary
Line 2: Line 2:
| blue=00a  
| blue=00a  
| lblue=00f  
| lblue=00f  
| dblue=005
| red=a00  
| red=a00  
| lred=f00
| lred=f00
Line 20: Line 21:
Curently, the following colors are defined.
Curently, the following colors are defined.


{| border="1" cellpadding="2" cellspacing="0"
{| border="1" cellpadding="2" cellspacing="0"  
|-  
|- align=center
| width=50% | Color name
| width=150 | Color name
| width=50% | Example color
| width=70 | Example color
|-  
| width=150 | Color name
| width=70 | Example color
| width=150 | Color name
| width=70 | Example color
|- align=center
|
|
<code><nowiki>
<pre>
{{rgb|blue}}
{{rgb|blue}}
</nowiki></code>
</pre>
|
<span style="background-color:{{rgb|blue}}">&emsp;&emsp;&emsp;</span>
|
<pre>
{{rgb|lblue}}
</pre>
|
<span style="background-color:{{rgb|lblue}}">&emsp;&emsp;&emsp;</span>
|
<pre>
{{rgb|dblue}}
</pre>
|
|
<span style="background-color:{{rgb|blue}}">&emsp;&emsp;</span>
<span style="background-color:{{rgb|dblue}}">&emsp;&emsp;&emsp;</span>
|-  
|- align=center
|
|
<code><nowiki>
<code><nowiki>
Line 38: Line 55:
|
|
<span style="background-color:{{rgb|red}}">&emsp;&emsp;</span>
<span style="background-color:{{rgb|red}}">&emsp;&emsp;</span>
|-
|- align=center
|
|
<code><nowiki>
<code><nowiki>
Line 45: Line 62:
|
|
<span style="background-color:{{rgb|green}}">&emsp;&emsp;</span>  
<span style="background-color:{{rgb|green}}">&emsp;&emsp;</span>  
|-
|- align=center
|
|
<code><nowiki>
<code><nowiki>
Line 52: Line 69:
|
|
<span style="background-color:{{rgb|lgreen}}">&emsp;&emsp;</span>
<span style="background-color:{{rgb|lgreen}}">&emsp;&emsp;</span>
|-
|- align=center
|
|
<code><nowiki>
<code><nowiki>
Line 59: Line 76:
|
|
<span style="background-color:{{rgb|ffcc00}}">&emsp;&emsp;</span>
<span style="background-color:{{rgb|ffcc00}}">&emsp;&emsp;</span>
|-
|- align=center
|
|
<code><nowiki>
<code><nowiki>

Revision as of 10:01, 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 Color name Example color Color name Example color
{{rgb|blue}}

   

{{rgb|lblue}}

   

{{rgb|dblue}}

   

{{rgb|red}}

  

{{rgb|green}}

  

{{rgb|lgreen}}

  

{{rgb|ffcc00}}

  

{{rgb|#ffcc00}}