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
(→Examples: white?) |
(add pink, fix ltred) |
||
Line 1: | Line 1: | ||
<includeonly>#{{ #switch:{{{1}}} | <includeonly>#{{ #switch:{{{1}}} | ||
| ltred= | | ltred=f66 | ||
| lred= | | lred=f66 | ||
| pink=f66 | |||
| red=f00 | | red=f00 | ||
| darkred=8b0000 | | darkred=8b0000 | ||
Line 50: | Line 51: | ||
! width=60 | Example | ! width=60 | Example | ||
|- align=left | |- align=left | ||
| ltred, lred || style="background:# | | ltred, lred, pink || style="background:#f66" | | ||
| red || style="background:#f00 " | | | red || style="background:#f00 " | | ||
| darkred, dred || style="background:#8b0000" | | | darkred, dred || style="background:#8b0000" | |
Revision as of 18:07, 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, 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 |