Difference between revisions of "Template:Colort/Color"

From blackwiki
Jump to navigation Jump to search
(moer)
(moer)
Line 23: Line 23:
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
 
{{Colort/Color
 
{{Colort/Color
 +
|name = 'common name'
 +
|html_name = 'html name'
 +
 
|r = 'red value'
 
|r = 'red value'
 
|g = 'green value'
 
|g = 'green value'
 
|b = 'blue value'
 
|b = 'blue value'
|name = 'common name'
+
 
|html_name = 'html name'
 
|h = 'HSL' (hu)
 
 
|s = 'saturation percent'
 
|s = 'saturation percent'
 
|v = 'brightness percent'
 
|v = 'brightness percent'
 +
 +
|hex = 'Hex triplet' (can be automatically generated from (r,g,b) values)
 +
|h = 'HSL' (hue, can be automatically generated from (r,g,b) values)
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 18:58, 22 December 2010

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 "[".% —% —%

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 = 'HSL' (hue, can be automatically generated from (r,g,b) values)
}}

If not provided, HSL and hex triplet are auto-generated from r, g and b parameters. There are no color conversion templates for HSV or other notations yet (hue is the same as HSL).

Examples

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