Difference between revisions of "Template:Colort/Color"

From blackwiki
Jump to navigation Jump to search
imported>Crissov
m (round hue)
imported>Jacobolus
(make color wider)
Line 3: Line 3:
 
</noinclude>
 
</noinclude>
 
|-
 
|-
!style="border-left-width:1em;border-left-color:rgb({{{r}}},{{{g}}},{{{b}}});text-align:left;"| {{{name}}}
+
!style="border-left-width:4em;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:2px;border-right-width:1px;font-family:monospace;"| #{{{hex|{{hex3|{{{r}}}|{{{g}}}|{{{b}}}|#=}} }}}
 
|style="border-left-width:1px;border-right-width:0px;text-align:right;" title="{{{r}}}/255"| {{#expr:{{{r}}}/2.55 round 0}}%  
 
|style="border-left-width:1px;border-right-width:0px;text-align:right;" title="{{{r}}}/255"| {{#expr:{{{r}}}/2.55 round 0}}%  

Revision as of 01:51, 13 September 2010

Colors
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° Expression error: Unrecognized punctuation character "[".% Expression error: Unrecognized punctuation character "[".% —% —%

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).

ar:قالب:Color/Color