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
 
(34 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly>#{{ #switch:{{{1}}}
<includeonly>#{{ #switch:{{{1}}}
| ltred=f33
| ltred=f66
| lred=f33
| lred=f66
| pink=f66
| red=f00  
| red=f00  
| darkred=8b0000
| darkred=8b0000
Line 8: Line 9:
| orange=ffa500
| orange=ffa500
| olive=808000
| olive=808000
| ltblue=00f
| ltblue=39f
| lblue=00f
| lblue=39f
| blue=00f  
| blue=00f  
| darkblue=00008b
| darkblue=00008b
Line 15: Line 16:
| ltgreen=0f0
| ltgreen=0f0
| lgreen=0f0
| lgreen=0f0
| lime=0f0
| green=0a0  
| green=0a0  
| darkgreen=050
| darkgreen=050
Line 25: Line 27:
| black=000
| black=000
| white=fff
| white=fff
| grey=777
| gray=777
| gray=777
| gray=777
| dgray=555
| brown=a52a2a
| 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 a RGB color-code for the named color. ''The colors returned by this template are '''not''' the same as the standard predefined HTML/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="1" cellspacing="4"  
{| class="wikitable"
|- align=center
|- align=center
! width=120 | Color  
! width=120 | Color  
Line 49: Line 65:
! width=120 | Color  
! width=120 | Color  
! width=60 | Example
! width=60 | Example
|- align=center
|- align=left
| ltred, lred || style="background:#f33" |&nbsp;
| ltred, lred, pink || style="background:#f66" |&nbsp;
| red || style="background:#f00 " |&nbsp;
| red || style="background:#f00" |&nbsp;
| darkred, dred || style="background:#8b0000" |&nbsp;
| darkred, dred || style="background:#8b0000" |&nbsp;
|-
|-
Line 58: Line 74:
| olive || style="background:#808000" |&nbsp;
| olive || style="background:#808000" |&nbsp;
|-
|-
| ltblue, lblue || style="background:#44f " |&nbsp;
| ltblue, lblue || style="background:#39f " |&nbsp;
| blue || style="background:#00f " |&nbsp;
| blue || style="background:#00f " |&nbsp;
| darkblue, dblue || style="background:#00008b" |&nbsp;
| darkblue, dblue || style="background:#00008b" |&nbsp;
Line 64: Line 80:
| ltgreen, lgreen || style="background:#0f0" |&nbsp;
| ltgreen, lgreen || style="background:#0f0" |&nbsp;
| green || style="background:#0a0 " |&nbsp;
| green || style="background:#0a0 " |&nbsp;
| darkgreen, dgreen || style="background:#0a0 " |&nbsp;
| darkgreen, dgreen || style="background:#050 " |&nbsp;
|-
|-
| purple || style="background:#a0a" |&nbsp;
| purple || style="background:#a0a" |&nbsp;
Line 76: Line 92:
| black || style="background:#000" |&nbsp;
| black || style="background:#000" |&nbsp;
| grey, gray || style="background:#777" |&nbsp;
| grey, gray || style="background:#777" |&nbsp;
| white|| style="background:#aaa" |&nbsp;
| white|| style="background:#FFF" |&nbsp;
|-
| town || style="background:#dfd" |&nbsp;
| mafia || style="background:#fdd" |&nbsp;
| werewolf || style="background:#fec" |&nbsp;
|-
| cult || style="background:#fdf" |&nbsp;
| self || style="background:#ddd" |&nbsp;
|}
|}
[[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