Minecraft Wiki
(Nieuwe pagina aangemaakt met '<includeonly>{{#ifexpr: {{#len: {{{1|}}} }} < 9 | {{#ifexpr: {{#len: {{{1|}}} }} > 0 | {{ #ifexpr: {{#len: {{{1}}} }} > 0 | {{#vardefine:char1|{{#expr: {{{1}}} ...')
 
(Nodig voor vernieuwd DV-sjabloon)
Regel 1: Regel 1:
<includeonly>{{#ifexpr: {{#len: {{{1|}}} }} < 9 | {{#ifexpr: {{#len: {{{1|}}} }} > 0 | {{
+
<includeonly>{{#invoke: Convert base | fromDec | {{{1}}} | 2 }}</includeonly><noinclude>
#ifexpr: {{#len: {{{1}}} }} > 0 | {{#vardefine:char1|{{#expr: {{{1}}} mod 16}}}} | {{ #vardefine:char1|0}} }}{{
 
#ifexpr: {{#len: {{{1}}} }} > 1 | {{#vardefine:char2|{{#expr: {{{1}}} / 16 mod 16}}}} | {{ #vardefine:char2|0}} }}{{
 
#ifexpr: {{#len: {{{1}}} }} > 2 | {{#vardefine:char3|{{#expr: {{{1}}} / 256 mod 16}}}} | {{ #vardefine:char3|0}} }}{{
 
#ifexpr: {{#len: {{{1}}} }} > 3 | {{#vardefine:char4|{{#expr: {{{1}}} / 4096 mod 16}}}} | {{ #vardefine:char4|0}} }}{{
 
#ifexpr: {{#len: {{{1}}} }} > 4 | {{#vardefine:char5|{{#expr: {{{1}}} / 65536 mod 16}}}} | {{ #vardefine:char5|0}} }}{{
 
#ifexpr: {{#len: {{{1}}} }} > 5 | {{#vardefine:char6|{{#expr: {{{1}}} / 1048576 mod 16}}}} | {{ #vardefine:char6|0}} }}{{
 
#ifexpr: {{#len: {{{1}}} }} > 6 | {{#vardefine:char7|{{#expr: {{{1}}} / 16777216 mod 16}}}} | {{ #vardefine:char7|0}} }}{{
 
#ifeq: {{#len: {{{1}}} }} | 8 | {{#vardefine:char8|{{#expr: {{{1}}} / 268435456 mod 16}}}} | {{ #vardefine:char8|0}} }}{{
 
 
#ifexpr: {{#var:char8|0}} > 0 | {{#switch: {{#var:char8}}
 
| 0 = 0000 | 1 = 0001 | 2 = 0010 | 3 = 0011 | 4 = 0100 | 5 = 0101 | 6 = 0110 | 7 = 0111 | 8 = 1000 | 9 = 1001 | 10 = 1010 | 11 = 1011 | 12 = 1100 | 13 = 1101 | 14 = 1110 | 15 = 1111 | ????
 
}} }}{{#ifexpr: {{#var:char8|0}}{{#var:char7}} > 0 | {{
 
#switch: {{#var:char7}}
 
| 0 = 0000 | 1 = 0001 | 2 = 0010 | 3 = 0011 | 4 = 0100 | 5 = 0101 | 6 = 0110 | 7 = 0111 | 8 = 1000 | 9 = 1001 | 10 = 1010 | 11 = 1011 | 12 = 1100 | 13 = 1101 | 14 = 1110 | 15 = 1111 | ????
 
}} }}{{#ifexpr: {{#var:char8|0}}{{#var:char7}}{{#var:char6}} > 0 | {{
 
#switch: {{#var:char6}}
 
| 0 = 0000 | 1 = 0001 | 2 = 0010 | 3 = 0011 | 4 = 0100 | 5 = 0101 | 6 = 0110 | 7 = 0111 | 8 = 1000 | 9 = 1001 | 10 = 1010 | 11 = 1011 | 12 = 1100 | 13 = 1101 | 14 = 1110 | 15 = 1111 | ????
 
}} }}{{#ifexpr: {{#var:char8|0}}{{#var:char7}}{{#var:char6}}{{#var:char5}} > 0 | {{
 
#switch: {{#var:char5}}
 
| 0 = 0000 | 1 = 0001 | 2 = 0010 | 3 = 0011 | 4 = 0100 | 5 = 0101 | 6 = 0110 | 7 = 0111 | 8 = 1000 | 9 = 1001 | 10 = 1010 | 11 = 1011 | 12 = 1100 | 13 = 1101 | 14 = 1110 | 15 = 1111 | ????
 
}} }}{{#ifexpr: {{#var:char8|0}}{{#var:char7}}{{#var:char6}}{{#var:char5}}{{#var:char4}} > 0 | {{
 
#switch: {{#var:char4}}
 
| 0 = 0000 | 1 = 0001 | 2 = 0010 | 3 = 0011 | 4 = 0100 | 5 = 0101 | 6 = 0110 | 7 = 0111 | 8 = 1000 | 9 = 1001 | 10 = 1010 | 11 = 1011 | 12 = 1100 | 13 = 1101 | 14 = 1110 | 15 = 1111 | ????
 
}} }}{{#ifexpr: {{#var:char8|0}}{{#var:char7}}{{#var:char6}}{{#var:char5}}{{#var:char4}}{{#var:char3}} > 0 | {{
 
#switch: {{#var:char3}}
 
| 0 = 0000 | 1 = 0001 | 2 = 0010 | 3 = 0011 | 4 = 0100 | 5 = 0101 | 6 = 0110 | 7 = 0111 | 8 = 1000 | 9 = 1001 | 10 = 1010 | 11 = 1011 | 12 = 1100 | 13 = 1101 | 14 = 1110 | 15 = 1111 | ????
 
}} }}{{#ifexpr: {{#var:char8|0}}{{#var:char7}}{{#var:char6}}{{#var:char5}}{{#var:char4}}{{#var:char3}}{{#var:char2}} > 0 | {{
 
#switch: {{#var:char2}}
 
| 0 = 0000 | 1 = 0001 | 2 = 0010 | 3 = 0011 | 4 = 0100 | 5 = 0101 | 6 = 0110 | 7 = 0111 | 8 = 1000 | 9 = 1001 | 10 = 1010 | 11 = 1011 | 12 = 1100 | 13 = 1101 | 14 = 1110 | 15 = 1111 | ????
 
}} }}{{
 
#switch: {{#var:char1}}
 
| 0 = 0000 | 1 = 0001 | 2 = 0010 | 3 = 0011 | 4 = 0100 | 5 = 0101 | 6 = 0110 | 7 = 0111 | 8 = 1000 | 9 = 1001 | 10 = 1010 | 11 = 1011 | 12 = 1100 | 13 = 1101 | 14 = 1110 | 15 = 1111 | ????
 
}} }} | <strong class="error">String too long.</strong> }}</includeonly><noinclude>
 
 
{{/doc}}
 
{{/doc}}
 
[[en:Template:Decimal to binary converter]]
 
[[en:Template:Decimal to binary converter]]

Versie van 22 dec 2015 14:29

Dit is de documentatiepagina, het zou moeten worden getranscludeerd op de bijbehorende pagina. Zie Sjabloon:Documentatie voor meer informatie.