Anonymous

Template:Icon: Difference between revisions

From Melvor Idle
Force ext=jpg for Lemon, Lemons, Lemonade items
(Added overrides for Basic/Standard/Generous Resupply)
(Force ext=jpg for Lemon, Lemons, Lemonade items)
Line 69: Line 69:
         Handling for Spiders (since they come in two flavors)
         Handling for Spiders (since they come in two flavors)
-->{{#ifeq:{{#var:link}}|Spider (lv. 51)|{{#vardefine:image|Spider}}}}{{#ifeq:{{#var:link}}|Spider (lv. 52)|{{#vardefine:image|Spider2}}}}{{#ifeq:{{#var:link}}|Spider2|{{#vardefine:link|Spider (lv. 52)}}{{#ifeq:{{#var:image}}|{{#var:text}}|{{#vardefine:text|Spider (lv. 52)}}}}}}<!--
-->{{#ifeq:{{#var:link}}|Spider (lv. 51)|{{#vardefine:image|Spider}}}}{{#ifeq:{{#var:link}}|Spider (lv. 52)|{{#vardefine:image|Spider2}}}}{{#ifeq:{{#var:link}}|Spider2|{{#vardefine:link|Spider (lv. 52)}}{{#ifeq:{{#var:image}}|{{#var:text}}|{{#vardefine:text|Spider (lv. 52)}}}}}}<!--
         Forcing the correct extension for Rhaelyx items, Miolite Caves monsters, Perilous Peaks monsters
         Forcing the correct extension for the following:
-->{{#switch:{{#var:image}}|Crown of Rhaelyx|Circlet of Rhaelyx|Jewel of Rhaelyx|Charge Stone of Rhaelyx|Mysterious Stone|Wicked Greater Dragon|Hunting Greater Dragon|Chaotic Greater Dragon|Miolite Sprig|Miolite Trio|Miolite Warden|Miolite Monarch={{#vardefine:ext|png}}}}<!--
            png: Rhaelyx items, Miolite Caves monsters, Perilous Peaks monsters
            jpg: Lemon, Lemons, Lemonade
-->{{#switch:{{#var:image}}|Crown of Rhaelyx|Circlet of Rhaelyx|Jewel of Rhaelyx|Charge Stone of Rhaelyx|Mysterious Stone|Wicked Greater Dragon|Hunting Greater Dragon|Chaotic Greater Dragon|Miolite Sprig|Miolite Trio|Miolite Warden|Miolite Monarch={{#vardefine:ext|png}}|Lemon|Lemons|Lemonade={{#vardefine:ext|jpg}}}}<!--
         Allowing for Alt. Magic to use the Magic image
         Allowing for Alt. Magic to use the Magic image
-->{{#ifeq:{{#var:type}}|skill|{{#switch:{{#var:link}}|Alt. Magic|Alt Magic|Alternative Magic={{#vardefine:image|Magic}}{{#vardefine:link|Alternative Magic}}}}}}<!--
-->{{#ifeq:{{#var:type}}|skill|{{#switch:{{#var:link}}|Alt. Magic|Alt Magic|Alternative Magic={{#vardefine:image|Magic}}{{#vardefine:link|Alternative Magic}}}}}}<!--