Template:Mapcolor

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Mapcolor/doc.

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

ParameterDescriptionDefaultStatus
rvalue between 0 and 255 for Red (DDD)emptyrequired
vvalue between 0 and 255 for Green (DDD)emptyrequired
bvalue between 0 and 255 for Blue (DDD)emptyrequired
avalue between .0 and 1 for alpha aka transparency (.D)1.0optional
hexhexadecimal value corresponding to the 3 previous data (#HHHHHH)emptyrequired

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