Difference between revisions of "Template:Colort/Color"

From blackwiki
Jump to navigation Jump to search
imported>Jacobolus
(kill the bold color names)
imported>Crissov
({{{sort}}})
Line 3: Line 3:
 
</noinclude>
 
</noinclude>
 
|-
 
|-
!style="border-left-width:4em;border-left-color:rgb({{{r}}},{{{g}}},{{{b}}});text-align:left; font-weight:normal"| {{{name}}}
+
!style="border-left-width:4em;border-left-color:rgb({{{r}}},{{{g}}},{{{b}}});text-align:left; font-weight:normal"| {{#if:{{{sort|}}}|{{sort|{{{sort}}}|{{{name}}} }}|{{{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 12:56, 19 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