Difference between revisions of "Template:Colort/ColorShort"
Jump to navigation
Jump to search
imported>Weegaweek (better tooltip with line breaks and capitalised RGB and HSV labels) |
imported>Weegaweek m ([tooltip]) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div style="float:left;display:inline;font-size:90%;margin:1px 5px 1px 5px;width:11em; height:6em;text-align:center;padding:auto;"> | <div style="float:left;display:inline;font-size:90%;margin:1px 5px 1px 5px;width:11em; height:6em;text-align:center;padding:auto;"> | ||
| − | <p title=" | + | <p title="𝗛𝗦𝗩 ({{#ifeq:{{{h}}}|—|—|{{{h|{{#expr:{{RGBtoHSL.H|{{{r|0}}}|{{{g|0}}}|{{{b|0}}}|}} round 0}}}}}°}} {{{s|{{#expr:100*{{RGBtoHSV.S|{{{r|0}}}|{{{g|0}}}|{{{b|0}}}|}} round 0}}}}}% {{{v|{{#expr:100*{{RGBtoHSV.V|{{{r|0}}}|{{{g|0}}}|{{{b|0}}}|}} round 0}}}}}%)
𝗥𝗚𝗕 ({{{r|0}}} {{{g|0}}} {{{b|0}}})
𝗛𝗘𝗫 #{{{hex|{{hex3|{{{r|0}}}|{{{g|0}}}|{{{b|0}}}|#=}} }}}" |
style="width:10em;height:1em; | style="width:10em;height:1em; | ||
padding:5px;margin:auto; | padding:5px;margin:auto; | ||
background-color:rgb({{{r|0}}},{{{g|0}}},{{{b|0}}}); | background-color:rgb({{{r|0}}},{{{g|0}}},{{{b|0}}}); | ||
| − | border: solid 1px #ccc;text-align:right;"> | + | border:solid 1px #ccc;text-align:right;cursor:help;"> |
<span title="Web-safe" style="font-weight:bold; font-size:100%; color:#f00;">{{#ifeq:{{{web_safe|}}}|Yes|<span class="Unicode">✓</span>| }}</span> | <span title="Web-safe" style="font-weight:bold; font-size:100%; color:#f00;">{{#ifeq:{{{web_safe|}}}|Yes|<span class="Unicode">✓</span>| }}</span> | ||
</p> | </p> | ||
Latest revision as of 19:14, 30 November 2018
<p title="𝗛𝗦𝗩 (Expression error: Unrecognized punctuation character "[".° Expression error: Unrecognized punctuation character "[".% Expression error: Unrecognized punctuation character "[".%) 𝗥𝗚𝗕 (0 0 0) 𝗛𝗘𝗫 #000000 "
style="width:10em;height:1em;
padding:5px;margin:auto;
background-color:rgb(0,0,0);
border:solid 1px #ccc;text-align:right;cursor:help;">
{{{name}}}