Template:Mapcolor/doc
Jump to navigation
Jump to search
This template allow to display a color with is colometric informations.
Usage
{{Mapcolor |r= |v= |b= |a= |hex= }}
- Example
{{Mapcolor|r=193|v=40|b=56|hex=#C12838|col=}}
produce
#C12838
R:193 V:40 B:56 A:1
{{Mapcolor|r=193|v=40|b=56|a=.5|hex=#C128387F|col=}}
produce
#C128387F
R:193 V:40 B:56 A:.5
Note: please, time by time, check on fr:template:Mapcolor if the template have been update.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
r | value between 0 and 255 for Red (DDD) | empty | required | |
v | 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) | 1.0 | optional | |
hex | hexadecimal value corresponding to the 3 previous data (#HHHHHH) | empty | required |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users