Template:ZoneIcon: Difference between revisions

From Melvor Idle
(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-->

Revision as of 00:41, 2 December 2021

A template for quickly generating icons for various combat zones. It automatically grabs the correct icon without needing the user to specify what type of zone it is.

For example, {{ZoneIcon|Castle of Kings}} returns Castle of Kings

For a complete list of options, please refer to Template:Icon.