Anonymous

Template:ZoneIcon: Difference between revisions

From Melvor Idle
Improve zonetype determination
(Allow all options provided by Template:Icon)
(Improve zonetype determination)
Line 7: Line 7:
<includeonly><onlyinclude><!--
<includeonly><onlyinclude><!--
     Regular combat areas
     Regular combat areas
-->{{#vardefine:zonetype}}{{#switch:{{{1}}}
-->{{#vardefine:zonetype}}{{#switch:{{{img|{{{1}}}}}}
|Golbin Village|Farmlands|Graveyard|Sandy Shores|Wet Forest|Bandit Hideout|Giant Dungeon|Icy Hills|Castle of Kings|Wizard Tower|Dragon Valley|Elerine Battlegrounds={{#vardefine:zonetype|combatArea}}
|Golbin Village|Farmlands|Graveyard|Sandy Shores|Wet Forest|Bandit Hideout|Giant Dungeon|Icy Hills|Castle of Kings|Wizard Tower|Dragon Valley|Elerine Battlegrounds={{#vardefine:zonetype|combatArea}}
<!--Separating out Slayer Areas even though they have the same type in case that's helpful later-->
<!--Separating out Slayer Areas even though they have the same type in case that's helpful later-->