Difference between revisions of "Template:Colort/Color"

From blackwiki
Jump to navigation Jump to search
imported>Crissov
(now includes HSL and more sophisticated borders)
imported>Crissov
Line 9: Line 9:
 
|style="border-left-width:0px;border-right-width:2px;" title="{{{b}}}/255"| {{#expr:{{{b}}}/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: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:1px;border-right-width:0px;"| {{#expr:100*{{RGBtoHSL.S|{{{r}}}|{{{g}}}|{{{b}}}|}} }}%  
|style="border-left-width:0px;border-right-width:1px;"| {{RGBtoHSL.L|{{{r}}}|{{{g}}}|{{{b}}}|}}%  
+
|style="border-left-width:0px;border-right-width:1px;"| {{#expr:100*{{RGBtoHSL.L|{{{r}}}|{{{g}}}|{{{b}}}|}} }}%  
 
|style="border-left-width:1px;border-right-width:0px;"| {{{s}}}%  
 
|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:0px;border-right-width:2px;"| {{{v}}}% {{#if:{{{html_name|}}}|
{{!}}style="border-left-width:2px;"{{!}} {{{html_name}}} }}<noinclude>
+
{{!}}{{!}}style="border-left-width:2px;"{{!}} {{{html_name}}} }}<noinclude>
 
|}
 
|}
  

Revision as of 22:50, 12 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 "[".% {{{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).

ar:قالب:Color/Color