Difference between revisions of "Template:Colort/Color"
Jump to navigation
Jump to search
imported>Outriggr m (extra bracket) |
imported>Crissov |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<noinclude> | <noinclude> | ||
| + | {{Colort}} | ||
| + | </noinclude> | ||
| + | |-style="text-align:right;" | ||
| + | !style="border-left-width:1em;border-left-color:rgb({{{r}}},{{{g}}},{{{b}}});text-align:left;"| {{{name}}} | ||
| + | |style="border-left-width:2px;border-right-width:1px;font-family:monospace;"| #{{{hex|{{hex3|{{{r}}}|{{{g}}}|{{{b}}}|#=}} }}} | ||
| + | |style="border-left-width:1px;border-right-width:0px;" title="{{{r}}}/255"| {{#expr:{{{r}}}/2.55 round 0}}% | ||
| + | |style="border-left-width:0px;border-right-width:0px;" title="{{{g}}}/255"| {{#expr:{{{g}}}/2.55 round 0}}% | ||
| + | |style="border-left-width:0px;border-right-width:2px;" title="{{{b}}}/255"| {{#expr:{{{b}}}/2.55 round 0}}% | ||
| + | |style="border-left-width:2px;border-right-width:1px;"| {{Nts|{{{h|{{RGBtoHSL.H|{{{r}}}|{{{g}}}|{{{b}}}|}}|}}}|}}° | ||
| + | |style="border-left-width:1px;border-right-width:0px;"| {{RGBtoHSL.S|{{{r}}}|{{{g}}}|{{{b}}}|}}% | ||
| + | |style="border-left-width:0px;border-right-width:1px;"| {{RGBtoHSL.L|{{{r}}}|{{{g}}}|{{{b}}}|}}% | ||
| + | |style="border-left-width:1px;border-right-width:0px;"| {{{s}}}% | ||
| + | |style="border-left-width:0px;border-right-width:2px;"| {{{v}}}% {{#if:{{{html_name|}}}| | ||
| + | {{!}}style="border-left-width:2px;"{{!}} {{{html_name}}} }} | ||
| + | <noinclude> | ||
| + | |} | ||
| + | |||
| + | |||
| + | 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). | ||
| + | |||
[[ar:قالب:Color/Color]] | [[ar:قالب:Color/Color]] | ||
</noinclude> | </noinclude> | ||
Revision as of 22:44, 12 September 2010
| Name | Hex (RGB) |
Red (RGB) |
Green (RGB) |
Blue (RGB) |
Hue (HSL/HSV) |
Satur. (HSL) |
Light (HSL) |
Satur. (HSV) |
Value (HSV) |
|---|---|---|---|---|---|---|---|---|---|
| {{{name}}} | #?????? | Expression error: Unrecognized punctuation character "{".% | Expression error: Unrecognized punctuation character "{".% | Expression error: Unrecognized punctuation character "{".% | Template:Nts° | Template:RGBtoHSL.S% | Template:RGBtoHSL.L% | {{{s}}}% | {{{v}}}% |
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).