Difference between revisions of "Template:Colort/Color"

From blackwiki
Jump to navigation Jump to search
imported>Andux
(use RGBtoHSV templates to calculate S/V automagically if not specified)
imported>Addbot
m (Bot: Migrating 1 interwiki links, now provided by Wikidata on d:q6799360)
Line 46: Line 46:
 
[[Category:Color conversion templates]]
 
[[Category:Color conversion templates]]
 
[[ar:قالب:Color/Color]]
 
[[ar:قالب:Color/Color]]
[[pt:Predefinição:Colort/Color]]
 
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 08:35, 16 March 2013

Colors
Name Hex
(RGB)
Red
(RGB)
Green
(RGB)
Blue
(RGB)
Hue
(HSL/HSV)
Satur.
(HSL)
Light
(HSL)
Satur.
(HSV)
Value
(HSV)
  {{{name}}} #000000 0% 0% 0% Template:Nts° Expression error: Unrecognized punctuation character "[".% Expression error: Unrecognized punctuation character "[".% Expression error: Unrecognized punctuation character "[".% Expression error: Unrecognized punctuation character "[".%  
Template documentation

Color table row, for use with {{Colort}}, which creates the column headings.

Usage

{{Colort/Color
|name = 'common name'
|html_name = 'html name'

|r = 'red value'
|g = 'green value'
|b = 'blue value'

|s = 'saturation percent'
|v = 'brightness percent'

|hex = 'Hex triplet' (can be automatically generated from (r,g,b) values)
|h = 'Hue' (in degrees, can be automatically generated from (r,g,b) values)
}}

If not provided, values for HSL, HSV, and hex triplet are auto-generated from r, g and b parameters.

Examples

See X11 color names, Web colors, or "what links here". ar:قالب:Color/Color