You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Rgb: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(rv self: reset darkblue to "forum colors" version)
(fix minor error)
Line 30: Line 30:
| gray=777
| gray=777
| brown=a52a2a
| brown=a52a2a
| {{{1}}} }}</includeonly>
| {{{1}}} }}</includeonly><noinclude>
<noinclude>
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.''
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.''


Line 56: Line 55:
|- align=left
|- align=left
| ltred, lred, pink || style="background:#f66" |&nbsp;
| ltred, lred, pink || style="background:#f66" |&nbsp;
| red || style="background:#f00 " |&nbsp;
| red || style="background:{{rgb|red}}" |&nbsp;
| darkred, dred || style="background:#8b0000" |&nbsp;
| darkred, dred || style="background:#8b0000" |&nbsp;
|-
|-

Revision as of 23:05, 23 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 | }}

Parameter

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 style="background:
  1. f00" | 
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