Template:Icon: Difference between revisions

Added overrides for Basic/Standard/Generous Resupply
(Force ext=png for Perilous Peaks, Miolite Caves monster images)
(Added overrides for Basic/Standard/Generous Resupply)
Line 23: Line 23:
|-
|-
|<nowiki>{{Icon|Superheat}}</nowiki> || {{Icon|Superheat}}
|<nowiki>{{Icon|Superheat}}</nowiki> || {{Icon|Superheat}}
|-
|<nowiki>{{Icon|Basic Resupply}}</nowiki> || {{Icon|Basic Resupply}}
|-
|<nowiki>{{Icon|Standard Resupply}}</nowiki> || {{Icon|Standard Resupply}}
|-
|<nowiki>{{Icon|Generous Resupply}}</nowiki> || {{Icon|Generous Resupply}}
|-
|-
|<nowiki>{{Icon|type=monster|Golbin}}</nowiki>||{{Icon|type=monster|Golbin}}
|<nowiki>{{Icon|type=monster|Golbin}}</nowiki>||{{Icon|type=monster|Golbin}}
Line 57: Line 63:
         Superheat goes to a generic Superheat page but pulls the icon for Superheat IV
         Superheat goes to a generic Superheat page but pulls the icon for Superheat IV
-->{{#ifeq:{{#var:link}}|Superheat|{{#vardefine:image|Superheat IV}}{{#vardefine:type|spell}}}}<!--
-->{{#ifeq:{{#var:link}}|Superheat|{{#vardefine:image|Superheat IV}}{{#vardefine:type|spell}}}}<!--
        Special case to handle Basic/Standard/Generous Resupply shop items, which unusually are neither items nor upgrades
-->{{#switch:{{#var:link}}|Basic Resupply={{#vardefine:image|Lobster}}{{#vardefine:type|item}}|Standard Resupply={{#vardefine:image|Crab}}{{#vardefine:type|item}}|Generous Resupply={{#vardefine:image|Manta Ray}}{{#vardefine:type|item}}}}<!--
         Golbin + monster icon type links directly to Golbin (monster) to skip disambiguation page
         Golbin + monster icon type links directly to Golbin (monster) to skip disambiguation page
-->{{#ifeq:{{#var:link}}|Golbin|{{#ifeq:{{#var:type}}|monster|{{#vardefine:link|Golbin (monster)}}}}}}<!--
-->{{#ifeq:{{#var:link}}|Golbin|{{#ifeq:{{#var:type}}|monster|{{#vardefine:link|Golbin (monster)}}}}}}<!--