Difference between revisions of "Template:MCFloorOverviewDisplay"
Jump to navigation
Jump to search
imported>Elaeagnifolia |
imported>Elaeagnifolia |
||
| Line 39: | Line 39: | ||
| {{#ifexpr: {{#var:i}} < {{#var:matCounter}} | true }} | | {{#ifexpr: {{#var:i}} < {{#var:matCounter}} | true }} | ||
| <nowiki/><!-- | | <nowiki/><!-- | ||
| + | # Increment loop variable | ||
| + | -->{{#vardefine:i| {{#expr: {{#var:i}}+1 }} }}<!-- | ||
| + | |||
# Get the material from the comma-separated list variable | # Get the material from the comma-separated list variable | ||
| − | -->{{#vardefine:matLoopItem| {{#explode:{{#var:floorMaterials}}|,|{{#var:i}} | + | -->{{#vardefine:matLoopItem| {{#explode:{{#var:floorMaterials}}|,|{{#var:i}} }} }} |
| − | |||
* {{Icon|Material|{{#var:matLoopItem}}|size=20px|text=1}} x{{#var:{{#var:matLoopItem}}}} | * {{Icon|Material|{{#var:matLoopItem}}|size=20px|text=1}} x{{#var:{{#var:matLoopItem}}}} | ||
}}<!-- | }}<!-- | ||