Template:Mapcolor
Appearance
This template allows for the display of a color with its colorimetric information.
Usage
[edit]{{Mapcolor|r=|g=|b=|hex=|col=}}
Example
[edit]{{Mapcolor|r=193|g=40|b=56|hex=#C12838|col=}} produces #C12838
R:193 G:40 B:56 A:1
{{Mapcolor|r=193|g=40|b=56|a=0.5|hex=#C128387F|col=}} produces #C128387F
R:193 G:40 B:56 A:0.5
Template parameters
[edit]| Parameter | Description | Default | Status |
|---|---|---|---|
r |
value between 0 and 255 for Red (DDD) | empty | required |
g |
value between 0 and 255 for Green (DDD) | empty | required |
b |
value between 0 and 255 for Blue (DDD) | empty | required |
a |
value between 0 and 1 for alpha aka transparency (D.D) | 1 | optional |
hex |
hexadecimal value corresponding to the 3 or 4 previous data (#HHHHHH or #HHHHHHHH) | empty | required |