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
m (yellow) |
SigmaEpsilon (talk | contribs) (→Usage: slight terminology change) |
||
Line 23: | Line 23: | ||
{{rgb|colorname}} | {{rgb|colorname}} | ||
</pre> | </pre> | ||
''colorname'' is the name of the desired color. Entering an RGB code without a leading # will simply | ''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 === | === Examples === |
Revision as of 15:21, 21 August 2007
Returns the RGB color-code of named color. The colors returned by this template are not the same as the standard predefined 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 name | Example color | Color name | Example color | Color name | Example color |
{{rgb|blue}} |
|
{{rgb|lblue}} |
|
{{rgb|dblue}} |
|
{{rgb|red}} |
|
{{rgb|lred}} |
|
{{rgb|dred}} |
|
{{rgb|green}} |
|
{{rgb|lgreen}} |
|
{{rgb|dgreen}} |
|
{{rgb|yellow}} |
|
{{rgb|purple}} |
|
{{rgb|teal}} |
|
{{rgb|black}} |
|
{{rgb|white}} |
|
{{rgb|gray}} |
|
{{rgb|0ad52c}} |
|
{{rgb|2b5}} |
|
{{rgb|0ad52c}} |
|