You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Rgb: Difference between revisions
Jump to navigation
Jump to search
The colors returned by this template are not the same as the standard predefined HTML/CSS colors.
(add pink, fix ltred) |
No edit summary |
||
(31 intermediate revisions by 10 users not shown) | |||
Line 9: | Line 9: | ||
| orange=ffa500 | | orange=ffa500 | ||
| olive=808000 | | olive=808000 | ||
| ltblue= | | ltblue=39f | ||
| lblue= | | lblue=39f | ||
| blue=00f | | blue=00f | ||
| darkblue=00008b | | darkblue=00008b | ||
Line 16: | Line 16: | ||
| ltgreen=0f0 | | ltgreen=0f0 | ||
| lgreen=0f0 | | lgreen=0f0 | ||
| lime=0f0 | |||
| green=0a0 | | green=0a0 | ||
| darkgreen=050 | | darkgreen=050 | ||
Line 26: | Line 27: | ||
| black=000 | | black=000 | ||
| white=fff | | white=fff | ||
| grey=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}} | ||
<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. | |||
== | == Syntax == | ||
<pre> | <pre> | ||
{{rgb| | {{rgb| }} | ||
</pre> | </pre> | ||
=== 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. | ||
{| | {| class="wikitable" | ||
|- align=center | |- align=center | ||
! width=120 | Color | ! width=120 | Color | ||
Line 52: | Line 67: | ||
|- align=left | |- align=left | ||
| ltred, lred, pink || style="background:#f66" | | | ltred, lred, pink || style="background:#f66" | | ||
| red || style="background:#f00 " | | | red || style="background:#f00" | | ||
| darkred, dred || style="background:#8b0000" | | | darkred, dred || style="background:#8b0000" | | ||
|- | |- | ||
Line 59: | Line 74: | ||
| olive || style="background:#808000" | | | olive || style="background:#808000" | | ||
|- | |- | ||
| ltblue, lblue || style="background:# | | ltblue, lblue || style="background:#39f " | | ||
| blue || style="background:#00f " | | | blue || style="background:#00f " | | ||
| darkblue, dblue || style="background:#00008b" | | | darkblue, dblue || style="background:#00008b" | | ||
Line 65: | Line 80: | ||
| ltgreen, lgreen || style="background:#0f0" | | | ltgreen, lgreen || style="background:#0f0" | | ||
| green || style="background:#0a0 " | | | green || style="background:#0a0 " | | ||
| darkgreen, dgreen || style="background:# | | darkgreen, dgreen || style="background:#050 " | | ||
|- | |- | ||
| purple || style="background:#a0a" | | | purple || style="background:#a0a" | | ||
Line 78: | Line 93: | ||
| grey, gray || style="background:#777" | | | grey, gray || style="background:#777" | | ||
| white|| style="background:#FFF" | | | white|| style="background:#FFF" | | ||
|- | |||
| town || style="background:#dfd" | | |||
| mafia || style="background:#fdd" | | |||
| werewolf || style="background:#fec" | | |||
|- | |||
| cult || style="background:#fdf" | | |||
| self || style="background:#ddd" | | |||
|} | |} | ||
[[Category:Templates|Rgb]] | [[Category:Templates|Rgb]] | ||
</noinclude> | </noinclude> |
Latest revision as of 15:09, 11 April 2018
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 |