Template:Color: Difference between revisions
Jump to navigation
Jump to search
(Full Template Update) |
mNo edit summary |
||
Line 11: | Line 11: | ||
------ Arrow Button | ------ Arrow Button | ||
--><span class="mw-customtoggle-color{{{rgb|{{{r|0}}}{{{g|0}}}{{{b|0 | --><span class="mw-customtoggle-color{{{rgb|0}}}{{{r|0}}}{{{g|0}}}{{{b|0}}}{{{a|1}}}" style="margin-right:.3em; user-select:none"><span style="display:inline-block; width:8px; height:10px; margin-bottom:-1px; background:#FFF; clip-path:path('M4,0l4,4H0m0,2H8L4,10')"></span></span><!-- | ||
------ HEX Format | ------ HEX Format | ||
--><samp id="mw-customcollapsible-color{{{rgb|{{{r|0}}}{{{g|0}}}{{{b|0 | --><samp id="mw-customcollapsible-color{{{rgb|0}}}{{{r|0}}}{{{g|0}}}{{{b|0}}}{{{a|1}}}" class="mw-collapsible" style="color:#EEE; user-select:all">#{{#switch:{{#expr:floor({{{r|{{{rgb|0}}}}}} / 16)}}|0=0|1=1|2=2|3=3|4=4|5=5|6=6|7=7|8=8|9=9|10=A|11=B|12=C|13=D|14=E|15=F}}<!-- | ||
-->{{#switch:{{#expr:{{{r|{{{rgb|0}}}}}} mod 16}}|0=0|1=1|2=2|3=3|4=4|5=5|6=6|7=7|8=8|9=9|10=A|11=B|12=C|13=D|14=E|15=F}}<!-- | -->{{#switch:{{#expr:{{{r|{{{rgb|0}}}}}} mod 16}}|0=0|1=1|2=2|3=3|4=4|5=5|6=6|7=7|8=8|9=9|10=A|11=B|12=C|13=D|14=E|15=F}}<!-- | ||
-->{{#switch:{{#expr:floor({{{g|{{{rgb|0}}}}}} / 16)}}|0=0|1=1|2=2|3=3|4=4|5=5|6=6|7=7|8=8|9=9|10=A|11=B|12=C|13=D|14=E|15=F}}<!-- | -->{{#switch:{{#expr:floor({{{g|{{{rgb|0}}}}}} / 16)}}|0=0|1=1|2=2|3=3|4=4|5=5|6=6|7=7|8=8|9=9|10=A|11=B|12=C|13=D|14=E|15=F}}<!-- | ||
Line 26: | Line 26: | ||
------ RGB Format | ------ RGB Format | ||
--><samp id="mw-customcollapsible-color{{{rgb|{{{r|0}}}{{{g|0}}}{{{b|0 | --><samp id="mw-customcollapsible-color{{{rgb|0}}}{{{r|0}}}{{{g|0}}}{{{b|0}}}{{{a|1}}}" class="mw-collapsible mw-collapsed" style="display:none; color:#EEE; user-select:all">rgb({{{r|{{{rgb|0}}}}}},{{{g|{{{rgb|0}}}}}},{{{b|{{{rgb|0}}}}}}{{#if:{{{a|}}}|,{{{a}}}}})</samp><!-- | ||
--></span></onlyinclude></includeonly> | --></span></onlyinclude></includeonly> | ||
{{Doc}} | {{Doc}} | ||
[[Category:Mathematics templates]] | [[Category:Mathematics templates]] |
Latest revision as of 05:14, 27 September 2025
The above documentation is transcluded from Template:Color/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.