Template:ZoneIcon: Difference between revisions

From Melvor Idle
(Add v1.0 zone types)
m (clear zonetype to avoid unexpected caching)
Line 6: Line 6:
<includeonly><onlyinclude><!--
<includeonly><onlyinclude><!--
     Regular combat areas
     Regular combat areas
-->{{#switch:{{{1}}}
-->{{#vardefine:zonetype}}{{#switch:{{{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 17:24, 1 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

Error creating thumbnail: File missing
Castle of Kings

This is a subset of Template:Icon and should use the same arguments