User:Thomanski/Sandbox/Template2

{{#fornumargs: argnum | argval |    {{#if: {{#var:argval}} | {{#switch: {{lc: {{#var: argval}} }} | je | java = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |JE}} {{#vardefine: edition-s  |Java}} {{#vardefine: edition-l  |Java Edition}} |  {{#vardefine: edition     |JE}} {{#vardefine: edition-s  |Java}} {{#vardefine: edition-l  |Java Edition}} }} {{#vardefine: linkname       |Java Edition}} {{#vardefine: category       |Java Edition specific information}} | be | bedrock = {{#vardefine: edition    |BE}} {{#vardefine: edition-s  |Bedrock}} {{#vardefine: edition-l  |Bedrock Edition}} {{#vardefine: linkname       |Bedrock Edition}} {{#vardefine: category       |Bedrock Edition specific information}} | education | edu = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |EE}} {{#vardefine: edition-s  |Education}} {{#vardefine: edition-l  |Education Edition}} |  {{#vardefine: edition     |EE}} {{#vardefine: edition-s  |Education}} {{#vardefine: edition-l  |Education Edition}} }} {{#vardefine: linkname       |Education Edition}} {{#vardefine: category       |Education Edition specific information}} | earth = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |MCE}} {{#vardefine: edition-s  |Minecraft Earth}} {{#vardefine: edition-l  |Minecraft Earth}} |  {{#vardefine: edition     |MCE}} {{#vardefine: edition-s  |Minecraft Earth}} {{#vardefine: edition-l  |Minecraft Earth}} }} {{#vardefine: linkname     | Minecraft Earth}} {{#vardefine: category     | Minecraft Earth specific information}} | console | legacy console = {{#vardefine: edition    |LCE}} {{#vardefine: edition-s  |Legacy Console}} {{#vardefine: edition-l  |Legacy Console Edition}} {{#vardefine: linkname       |Legacy Console Edition}} {{#vardefine: category       |}} | xbox360 | xbox 360 = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |XB360}} {{#vardefine: edition-s  |Xbox 360}} {{#vardefine: edition-l  |Xbox 360 Edition}} |  {{#vardefine: edition     |XB360}} {{#vardefine: edition-s  |Xbox 360}} {{#vardefine: edition-l  |Xbox 360 Edition}} }} {{#vardefine: linkname       |Xbox 360 Edition}} {{#vardefine: category       |}} | xbone | xboxone | xbox one = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |XBONE}} {{#vardefine: edition-s  |Xbox One}} {{#vardefine: edition-l  |Xbox One Edition}} |  {{#vardefine: edition     |XBONE}} {{#vardefine: edition-s  |Xbox One}} {{#vardefine: edition-l  |Xbox One Edition}} }} {{#vardefine: linkname       |Xbox One Edition}} {{#vardefine: category       |}} | ps3 | playstation3 | playstation 3 = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |PS3}} {{#vardefine: edition-s  |PlayStation 3}} {{#vardefine: edition-l  |PlayStation 3 Edition}} |  {{#vardefine: edition     |PS3}} {{#vardefine: edition-s  |PlayStation 3}} {{#vardefine: edition-l  |PlayStation 3 Edition}} }} {{#vardefine: linkname       |PlayStation 3 Edition}} {{#vardefine: category       |}} | ps4 | playstation4 | playstation 4 = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |PS4}} {{#vardefine: edition-s  |PlayStation 4}} {{#vardefine: edition-l  |PlayStation 4 Edition}} |  {{#vardefine: edition     |PS4}} {{#vardefine: edition-s  |PlayStation 4}} {{#vardefine: edition-l  |PlayStation 4 Edition}} }} {{#vardefine: linkname       |PlayStation 4 Edition}} {{#vardefine: category       |}} | vita | psvita | playstation vita = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |PSV}} {{#vardefine: edition-s  |PlayStation Vita}} {{#vardefine: edition-l  |PlayStation Vita Edition}} |  {{#vardefine: edition     |PSV}} {{#vardefine: edition-s  |PlayStation Vita}} {{#vardefine: edition-l  |PlayStation Vita Edition}} }} {{#vardefine: linkname     |PlayStation Vita Edition}} {{#vardefine: category     |}} | wii | wiiu | wii u = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |WIIU}} {{#vardefine: edition-s  |Wii U}} {{#vardefine: edition-l  |Wii U Edition}} |  {{#vardefine: edition     |WIIU}} {{#vardefine: edition-s  |Wii U}} {{#vardefine: edition-l  |Wii U Edition}} }} {{#vardefine: linkname     |Wii U Edition}} {{#vardefine: category     |}} | switch | nintendoswitch | nintendo switch = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |SWITCH}} {{#vardefine: edition-s  |Nintendo Switch}} {{#vardefine: edition-l  |Nintendo Switch Edition}} |  {{#vardefine: edition     |SWITCH}} {{#vardefine: edition-s  |Nintendo Switch}} {{#vardefine: edition-l  |Nintendo Switch Edition}} }} {{#vardefine: linkname     |Nintendo Switch Edition}} {{#vardefine: category     |}} | pe | pocket | = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |PE}} {{#vardefine: edition-s  |Pocket}} {{#vardefine: edition-l  |Pocket Edition}} |  {{#vardefine: edition     |PE}} {{#vardefine: edition-s  |Pocket}} {{#vardefine: edition-l  |Pocket Edition}} }} {{#vardefine: linkname     |Pocket Edition}} {{#vardefine: category     |}} | ds | 3ds | new3ds | new 3ds | nintendo 3ds | new nintendo 3ds = {{#if: {{{noitalics|}}} | {{#vardefine: edition    |3DS}} {{#vardefine: edition-s  |New Nintendo 3DS}} {{#vardefine: edition-l  |New Nintendo 3DS Edition}} |  {{#vardefine: edition     |3DS}} {{#vardefine: edition-s  |New Nintendo 3DS}} {{#vardefine: edition-l  |New Nintendo 3DS Edition}} }} {{#vardefine: linkname     |New Nintendo 3DS Edition}} {{#vardefine: category     |}} | #default = {{#vardefine: edition      |{{ucfirst:{{#var: argval}}}} }} {{#vardefine: edition-s    |{{#var: edition}}}} {{#vardefine: edition-l    |{{#var: edition-s}} Edition}} {{#vardefine: linkname     |{{#var: edition-l}}}} {{#vardefine: category     |}} }}{{#if: {{{short|}}} | {{#vardefine: editions | {{#if: {{#var: editions|}} | {{#if: {{{ {{#expr: {{#var: argnum}} + 1}}| }}} |,                   | &                    }}                }}  {{#var: edition}}                     |                     |{{#var: linkname}}{{!}}                    }}{{#var: edition}} {{#vardefine: categories |  }} }} |{{#vardefine: editions | {{#if: {{#var: editions|}} | {{#if: {{{ {{#expr: {{#var: argnum}} + 1}}| }}} | {{#ifeq: {{{ {{#expr: {{#var: argnum}} - 1}} }}} | earth | {{#if: {{{ {{#expr: {{#var: argnum}} + 2}}| }}} |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}}, |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}}, and }}                         | {{#if: {{{ {{#expr: {{#var: argnum}} + 2}}| }}} | {{#ifeq: {{lc: {{#var: argval}} }} | earth |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} editions, }}                             | {{#ifeq: {{lc: {{#var: argval}} }} | earth |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, and |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} editions, and }}                           }}                        }}                      | {{#ifeq: {{{ {{#expr: {{#var: argnum}} - 1}} }}} | earth | {{#if: {{{ {{#expr: {{#var: argnum}} + 2}}| }}} | {{#ifeq: {{lc: {{#var: argval}} }} | earth | {{#ifeq: {{{ {{#expr: {{#var: argnum}} + 2}} }}} | earth |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} and |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, and }}                                 | {{#ifeq: {{{ {{#expr: {{#var: argnum}} + 2}} }}} | earth |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} and |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, }}                               }}                              |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} and }}                         | {{#if: {{{ {{#expr: {{#var: argnum}} + 2}}| }}} | {{#ifeq: {{lc: {{#var: argval}} }} | earth | {{#ifeq: {{{ {{#expr: {{#var: argnum}} + 2}} }}} | earth |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} and |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, and }}                                 | {{#ifeq: {{{ {{#expr: {{#var: argnum}} + 2}} }}} | earth |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, and |{{#var: editions}}{{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, }}                               }}                               |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, and }}                       }}                    }}                      |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}} | {{#ifeq: {{lc: {{#var: argval}} }} | earth |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}} |{{#var: editions}} {{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} editions }}                   }}                }}                  |{{#ifeq: {{lc: {{#var: argval}} }} | earth |{{#if: {{{3|}}} |{{#ifeq: {{{ {{#expr: {{#var: argnum}} + 1}} }}} | earth |{{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}}, |{{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}}, and }}                         |{{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}} and }}                     |{{#ifeq: {{{ {{#expr: {{#var: argnum}} + 1}} }}} | earth |{{#if: {{{3|}}} |{{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}}, |{{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}} and }}                         |{{#if: {{{3|}}} |{{#ifeq: {{{ {{#expr: {{#var: argnum}} + 2}} }}} | earth |{{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} and |{{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}}, }}                             |{{#if:{{{nolink|}}}|{{#var: edition-s}}|{{}} and }}                       }}                    }}                  |{{#if:{{{nolink|}}}|{{#var: edition-l}}|{{}} }}           }}        }}        {{#if: {{#var:category|}} |{{#vardefine: categories | {{#var: categories}} }} |       }}      |{{#vardefine: argnum | {{#expr: {{#var: argnum}} - 1}} }} }} }}  }}{{#if:{{#var: editions}}|{{#var: editions}}{{#if: |        | {{#switch: | |      =             | {{#var: categories}} }}       }}
 * {{#ifeq: {{{ {{#expr: {{#var: argnum}} + 1}} }}} | earth
 * {{#ifeq: {{{ {{#expr: {{#var: argnum}} - 1}} }}} | earth
 * {{#if: {{{2|}}}
 * }}