Difference between revisions of "Template:Colort/1row"

From blackwiki
Jump to navigation Jump to search
imported>Primergrey
(per MOSCAPS)
imported>PrimeHunter
(add optional source cell per Help talk:Template#Adding a source column to a template, empty cell for source=yes)
 
Line 11: Line 11:
 
|style="border-left:solid 1px {{{border}}};border-right:solid 0px {{{border}}};text-align:right;padding-right: {{{padding}}};"| {{{s}}}%  
 
|style="border-left:solid 1px {{{border}}};border-right:solid 0px {{{border}}};text-align:right;padding-right: {{{padding}}};"| {{{s}}}%  
 
|style="border-left:solid 0px {{{border}}};border-right:solid 2px {{{border}}};text-align:right;padding-right: {{{padding}}};"| {{{v}}}%{{#if:{{{alias|}}}
 
|style="border-left:solid 0px {{{border}}};border-right:solid 2px {{{border}}};text-align:right;padding-right: {{{padding}}};"| {{{v}}}%{{#if:{{{alias|}}}
|{{!}}{{!}}style="border-left:solid 2px {{{border}}};"{{!}} {{{alias}}}|}}</onlyinclude>
+
|{{!}}{{!}}style="border-left:solid 2px {{{border}}};"{{!}} {{{alias}}}|}}{{#if:{{{source|}}}
 +
|{{!}}{{!}}style="border-left:solid 2px {{{border}}}; border-right:solid 2px {{{border}}};"{{!}} {{#ifeq:{{{source}}}|yes||{{{source}}}}}}}</onlyinclude>
 
|}
 
|}

Latest revision as of 23:51, 12 May 2020

Colors
Name Hex
(RGB)
Red
(RGB)
Green
(RGB)
Blue
(RGB)
Hue
(HSL/HSV)
Satur.
(HSL)
Light
(HSL)
Satur.
(HSV)
Value
(HSV)
{{{name}}} #{{{hex}}} {{{red}}}% {{{green}}}% {{{blue}}}% {{{h}}}° {{{sat}}}% {{{l}}}% {{{s}}}% {{{v}}}%