Template:Dec2hex: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Toomai moved page Dec2hex to Template:Dec2hex without leaving a redirect: new move system of using dropdown for namespace is bad)
(not sure why this never seemed to fail in Wikipedialand)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch:{{{digits|{{#expr:ceil(ln {{{1|0}}}/ln 16)}}}}}
{{#switch:{{{digits|{{#expr:ceil((ln {{{1|0}}}/ln 16)+0.001)}}}}}
|1
|1={{dec2hex/sub|{{{1}}}}}
|2={{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}}
|2={{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}}
|3={{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}}
|3={{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}}
Line 8: Line 8:
|7={{dec2hex/sub|{{{1}}}|16777216}}{{dec2hex/sub|{{{1}}}|1048576}}{{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}}
|7={{dec2hex/sub|{{{1}}}|16777216}}{{dec2hex/sub|{{{1}}}|1048576}}{{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}}
|8={{dec2hex/sub|{{{1}}}|268435456}}{{dec2hex/sub|{{{1}}}|16777216}}{{dec2hex/sub|{{{1}}}|1048576}}{{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}}
|8={{dec2hex/sub|{{{1}}}|268435456}}{{dec2hex/sub|{{{1}}}|16777216}}{{dec2hex/sub|{{{1}}}|1048576}}{{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}}
|{{#ifeq:{{{1|0}}}|0|00|<span class="error">Out of range</span>}}
|{{#ifeq:{{{1|0}}}|0|0|<span class="error">Out of range</span>}}
}}
}}

Latest revision as of 15:36, August 11, 2012

0