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.
LyingBrian (talk | contribs) m (added color) |
No edit summary |
||
(13 intermediate revisions by 7 users not shown) | |||
Line 31: | Line 31: | ||
| dgray=555 | | dgray=555 | ||
| brown=a52a2a | | brown=a52a2a | ||
| {{{1}}} }}</includeonly><noinclude> | | town=dfd | ||
| mafia=fdd | |||
| werewolf=fec | |||
| cult=fdf | |||
| self=ddd | |||
| Town=dfd | |||
| Mafia=fdd | |||
| Werewolf=fec | |||
| Cult=fdf | |||
| Self=ddd | |||
| {{{1}}} }}</includeonly> | |||
<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> | ||
== Parameter(s) == | |||
;1 | ; {{{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.'' | ||
: 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. | ||
Line 82: | 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 |