Difference between revisions of "Template:Colort/Color"
Jump to navigation
Jump to search
(doc) |
(moer) |
||
| Line 17: | Line 17: | ||
{{documentation | {{documentation | ||
|content = | |content = | ||
| + | |||
| + | Color table row, for use with {{tl|Colort}}, which creates the column headings. | ||
| + | |||
=== Usage === | === Usage === | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
| Line 25: | Line 28: | ||
|name = 'common name' | |name = 'common name' | ||
|html_name = 'html name' | |html_name = 'html name' | ||
| − | |h = ' | + | |h = 'HSL' (hu) |
|s = 'saturation percent' | |s = 'saturation percent' | ||
|v = 'brightness percent' | |v = 'brightness percent' | ||
}} | }} | ||
</pre> | </pre> | ||
| + | |||
If not provided, HSL and [[hex triplet]] are auto-generated from ''r'', ''g'' and ''b'' parameters. There are no [[:Category:Color conversion templates|color conversion templates]] for HSV or other notations yet (hue is the same as HSL). | If not provided, HSL and [[hex triplet]] are auto-generated from ''r'', ''g'' and ''b'' parameters. There are no [[:Category:Color conversion templates|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". | ||
| + | |||
| + | [[Category:Color conversion templates]] | ||
[[ar:قالب:Color/Color]] | [[ar:قالب:Color/Color]] | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
Revision as of 18:57, 22 December 2010
| 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 "[".% | —% | —% |
50px Template documentation
Color table row, for use with {{Colort}}, which creates the column headings.
Usage
{{Colort/Color
|r = 'red value'
|g = 'green value'
|b = 'blue value'
|name = 'common name'
|html_name = 'html name'
|h = 'HSL' (hu)
|s = 'saturation percent'
|v = 'brightness percent'
}}
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
| The above documentation is transcluded from Template:Colort/Color/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Subpages of this template. |