Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Slotsize: Difference between revisions

Template page
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
{{#vardefine:slotWidth|{{#explode:{{{1|}}}|x|0}}}}
{{#if: {{{1|}}} |
{{#ifeq: {{{1}}} | 1x1 | 1 Slot (1x1) | {{#ifeq: {{{1}}} | error | {{{1}}} | {{#explode:{{{1}}}|x|1}} Slots ({{#explode:{{{1}}}|x|0}}x{{#explode:{{{1}}}|x|1}}) }} }}
{{#vardefine:slotHeight|{{#explode:{{{1|}}}|x|1}}}}
{{#vardefine:slotNumber|{{#iferror:{{#expr:{{#var:slotWidth}} * {{#var:slotHeight}}}}|error}}}}

{{#switch:{{#var:slotNumber}}
|error|0 = {{{1|}}}
|1 = 1 Slot ({{#var:slotWidth}}x{{#var:slotHeight}})
|#default = {{#var:slotNumber}} Slots ({{#var:slotWidth}}x{{#var:slotHeight}})
}}
</onlyinclude>
</onlyinclude>







Revision as of 05:18, 6 May 2024

{{#if: |

 {{#explode:{{{1}}}|x|1}} Slots ({{#explode:{{{1}}}|x|0}}x{{#explode:{{{1}}}|x|1}})
Cookies help us deliver our services. By using our services, you agree to our use of cookies.