Template:WikiStatusColours: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(New Page: {{#switch:{{{1|G}}} |B={{#ifexpr:{{{2|0}}}>0|{{ColourMixer|0000ff|00ff00|{{#expr:{{{2|0}}}*0.005}}}}|{{ColourMixer|0000ff|000000|{{#expr:{{{2|0}}}*-0.005}}}}}} |G={{#ifexpr:{{{2|0}}}>0|...) |
No edit summary |
||
(11 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{1|G}}} | rgba({{#switch:{{{1|G}}} | ||
|B={{#ifexpr:{{{2|0}}}>0| | |B={{#ifexpr:{{{2|0}}}>=0|0,{{#expr:trunc(1.28*{{{2|0}}}-1)}},{{#expr:trunc(-1.28*{{{2|0}}}+255)}},|{{#expr:trunc(-0.64*{{{2|0}}}-1)}},0,{{#expr:trunc(1.28*{{{2|0}}}+255)}},}} | ||
|G={{#ifexpr:{{{2|0}}}>0 | |G={{#ifexpr:{{{2|0}}}>=0|{{#expr:trunc(1.27*{{{2|0}}})}},255,0,|0,{{#expr:trunc(1.28*{{{2|0}}}+255)}},{{#expr:trunc(-1.27*{{{2|0}}})}},}} | ||
|Y={{#ifexpr:{{{2|0}}}>0| | |Y={{#ifexpr:{{{2|0}}}>=0|255,{{#expr:trunc(-1.28*{{{2|0}}}+255)}},0,|{{#expr:trunc(1.28*{{{2|0}}}+255)}},255,0,}} | ||
|R={{#ifexpr:{{{2|0}}}>0| | |R={{#ifexpr:{{{2|0}}}>=0|255,0,{{#expr:trunc(1.27*{{{2|0}}})}},|255,{{#expr:trunc(-1.27*{{{2|0}}})}},0,}} | ||
}} | }}{{#if:{{{3|}}}|0.125|1.0}})<noinclude>[[Category:Meta-templates]]</noinclude> |
Latest revision as of 03:48, March 8, 2021
rgba(0,255,0,1.0)