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
(→‎Usage: slight terminology change)
No edit summary
 
(36 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly>#{{ #switch:{{{1}}}
<includeonly>#{{ #switch:{{{1}}}
| blue=00a
| ltred=f66
| lblue=00f  
| lred=f66
| dblue=005
| pink=f66
| red=a00
| red=f00
| lred=f00
| darkred=8b0000
| dred=500
| dred=8b0000
| yellow=ff0
| orange=ffa500
| olive=808000
| ltblue=39f
| lblue=39f
| blue=00f  
| darkblue=00008b
| dblue=00008b
| ltgreen=0f0
| lgreen=0f0
| lime=0f0
| green=0a0  
| green=0a0  
| lgreen=0f0
| darkgreen=050
| dgreen=050
| dgreen=050
| yellow=ff0
| purple=a0a
| purple=a0a
| teal=0aa
| teal=0aa
| indigo=4b0082
| violet=ee82ee
| cyan=0ff
| black=000
| black=000
| white=fff
| white=fff
| grey=777
| gray=777
| gray=777
| dgray=555
| brown=a52a2a
| town=dfd
| mafia=fdd
| werewolf=fec
| cult=fdf
| self=ddd
| Town=dfd
| Mafia=fdd
| Werewolf=fec
| Cult=fdf
| Self=ddd
| {{{1}}} }}</includeonly>
| {{{1}}} }}</includeonly>
<noinclude>
<noinclude>{{TOCright}}
Returns the RGB color-code of named color. ''The colors returned by this template are '''not''' the same as the standard predefined CSS colors.''
<center>''The colors returned by this template are '''not''' the same as the standard predefined HTML/CSS colors.''</center>
This template returns a RGB color-code for the named color.


== Usage ==
== Syntax ==
<pre>
<pre>
{{rgb|colorname}}
{{rgb| }}
</pre>
</pre>
''colorname'' is the name of the desired color. Entering an RGB code without a leading # will simply pre-pend 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 ===
== Parameter(s) ==
; {{{1}}} : The name of the desired color. Entering an RGB code without a leading # will simply pre-pend 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.
Curently, the following colors are defined.


{| border="1" cellpadding="2" cellspacing="0"
{| class="wikitable"
|- align=center
| width=150 | Color name
| width=70 | Example color
| width=150 | Color name
| width=70 | Example color
| width=150 | Color name
| width=70 | Example color
|- align=center
|
<pre>
{{rgb|blue}}
</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|dblue}}">&emsp;&emsp;&emsp;</span>
|- align=center
|
<pre>
{{rgb|red}}
</pre>
|
<span style="background-color:{{rgb|red}}">&emsp;&emsp;&emsp;</span>
|
<pre>
{{rgb|lred}}
</pre>
|
<span style="background-color:{{rgb|lred}}">&emsp;&emsp;&emsp;</span>
|
<pre>
{{rgb|dred}}
</pre>
|
<span style="background-color:{{rgb|dred}}">&emsp;&emsp;&emsp;</span>
|- align=center
|- align=center
|
! width=120 | Color
<pre>
! width=60 | Example
{{rgb|green}}
! width=120 | Color
</pre>
! width=60 | Example
|
! width=120 | Color
<span style="background-color:{{rgb|green}}">&emsp;&emsp;&emsp;</span>
! width=60 | Example
|
|- align=left
<pre>
| ltred, lred, pink || style="background:#f66" |&nbsp;
{{rgb|lgreen}}
| red || style="background:#f00" |&nbsp;
</pre>
| darkred, dred || style="background:#8b0000" |&nbsp;
|
|-
<span style="background-color:{{rgb|lgreen}}">&emsp;&emsp;&emsp;</span>
| yellow || style="background:#ff0"| &nbsp;
|
| orange || style="background:#ffa500" |&nbsp;
<pre>
| olive || style="background:#808000" |&nbsp;
{{rgb|dgreen}}
|-
</pre>
| ltblue, lblue || style="background:#39f " |&nbsp;
|
| blue || style="background:#00f " |&nbsp;
<span style="background-color:{{rgb|dgreen}}">&emsp;&emsp;&emsp;</span>
| darkblue, dblue || style="background:#00008b" |&nbsp;
|- align=center
|-
|
| ltgreen, lgreen || style="background:#0f0" |&nbsp;
<pre>
| green || style="background:#0a0 " |&nbsp;
{{rgb|yellow}}
| darkgreen, dgreen || style="background:#050 " |&nbsp;
</pre>
|-
|
| purple || style="background:#a0a" |&nbsp;
<span style="background-color:{{rgb|yellow}}">&emsp;&emsp;&emsp;</span>
| indigo || style="background:#4b0082" |&nbsp;
|
| violet || style="background:#ee82ee" |&nbsp;
<pre>
|-
{{rgb|purple}}
| cyan || style="background:#0ff" |&nbsp;
</pre>
| teal || style="background:#0aa" |&nbsp;
|
| brown || style="background:#a52a2a" |&nbsp;
<span style="background-color:{{rgb|purple}}">&emsp;&emsp;&emsp;</span>
|-
|
| black || style="background:#000" |&nbsp;
<pre>
| grey, gray || style="background:#777" |&nbsp;
{{rgb|teal}}
| white|| style="background:#FFF" |&nbsp;
</pre>
|-
|
| town || style="background:#dfd" |&nbsp;
<span style="background-color:{{rgb|teal}}">&emsp;&emsp;&emsp;</span>
| mafia || style="background:#fdd" |&nbsp;
|- align=center
| werewolf || style="background:#fec" |&nbsp;
|
|-
<pre>
| cult || style="background:#fdf" |&nbsp;
{{rgb|black}}
| self || style="background:#ddd" |&nbsp;
</pre>
|
<span style="background-color:{{rgb|black}}">&emsp;&emsp;&emsp;</span>
|
<pre>
{{rgb|white}}
</pre>
|
<span style="background-color:{{rgb|white}}">&emsp;&emsp;&emsp;</span>
|
<pre>
{{rgb|gray}}
</pre>
|
<span style="background-color:{{rgb|gray}}">&emsp;&emsp;&emsp;</span>
|- align=center
|
<pre>
{{rgb|0ad52c}}
</pre>
|
<span style="background-color:{{rgb|0ad52c}}">&emsp;&emsp;&emsp;</span>
|
<pre>
{{rgb|2b5}}
</pre>
|
<span style="background-color:{{rgb|2b5}}">&emsp;&emsp;&emsp;</span>
|
<pre>
{{rgb|0ad52c}}
</pre>
|
<span style="background-color:{{rgb|0ad52c}}">&emsp;&emsp;&emsp;</span>
|}
|}
[[Category:Templates|Rgb]]
[[Category:Templates|Rgb]]
</noinclude>
</noinclude>

Latest revision as of 15:09, 11 April 2018


The colors returned by this template are not the same as the standard predefined HTML/CSS colors.

This template returns a RGB color-code for the named color.

Syntax

{{rgb| }}

Parameter(s)

{{{1}}}
The name of the desired color. Entering an RGB code without a leading # will simply pre-pend 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 Example Color Example Color Example
ltred, lred, pink   red   darkred, dred  
yellow   orange   olive  
ltblue, lblue   blue   darkblue, dblue  
ltgreen, lgreen   green   darkgreen, dgreen  
purple   indigo   violet  
cyan   teal   brown  
black   grey, gray   white  
town   mafia   werewolf  
cult   self