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
(add colors, reformat table,) |
(→Examples: fix) |
||
Line 41: | Line 41: | ||
Curently, the following colors are defined. | Curently, the following colors are defined. | ||
{| border=" | {| border="1" cellpadding="1" cellspacing="4" | ||
|- align=center | |- align=center | ||
| Color | ! width=120 | Color | ||
| Color | ! width=60 | Example | ||
|- align= | ! width=120 | Color | ||
| | ! width=60 | Example | ||
| | ! width=120 | Color | ||
| | ! width=60 | Example | ||
|- align=center | |||
| ltred, lred || style="background:#f33" | | |||
| red || style="background:#f00 " | | |||
| darkred, dred || style="background:#8b0000" | | |||
|- | |- | ||
| | | yellow || style="background:#ff0"| | ||
| | | orange || style="background:#ffa500" | | ||
| | | olive || style="background:#808000" | | ||
|- | |- | ||
| | | ltblue, lblue || style="background:#44f " | | ||
| | | blue || style="background:#00f " | | ||
| | | darkblue, dblue || style="background:#00008b" | | ||
|- | |- | ||
| | | ltgreen, lgreen || style="background:#0f0" | | ||
| | | green || style="background:#0a0 " | | ||
| | | darkgreen, dgreen || style="background:#0a0 " | | ||
|- | |- | ||
| | | purple || style="background:#a0a" | | ||
| | | indigo || style="background:#4b0082" | | ||
| | | violet || style="background:#ee82ee" | | ||
|- | |- | ||
| | | cyan || style="background:#0ff" | | ||
| | | teal || style="background:#0aa" | | ||
| | | brown || style="background:#a52a2a" | | ||
|- | |- | ||
| | | black || style="background:#000" | | ||
| | | grey, gray || style="background:#777" | | ||
| | | white|| style="background:#aaa" | | ||
|} | |} | ||
[[Category:Templates|Rgb]] | [[Category:Templates|Rgb]] | ||
</noinclude> | </noinclude> |
Revision as of 18:05, 21 August 2007
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.
Usage
{{rgb|colorname}}
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
Curently, the following colors are defined.
Color | Example | Color | Example | Color | Example |
---|---|---|---|---|---|
ltred, lred | 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 |