Difference between revisions of "Template:MCFloorOverviewDisplay"

From Dragalia Lost Wiki
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}} }} }}
-->{{#vardefine:i| {{#expr: {{#var:i}}+1 }} }}
 
 
* {{Icon|Material|{{#var:matLoopItem}}|size=20px|text=1}} x{{#var:{{#var:matLoopItem}}}}
 
* {{Icon|Material|{{#var:matLoopItem}}|size=20px|text=1}} x{{#var:{{#var:matLoopItem}}}}
 
}}<!--
 
}}<!--

Revision as of 16:07, 26 December 2019