Template:Infobox: Difference between revisions

Jump to navigation Jump to search
(fix generated wording for fish from dazzle beach category)
(add conditionals for handling biomes param for Gems, Flowers for handling ingredient-biome combo categories - useful for gifts and new rotating duties)
Line 81: Line 81:
           |Flooring=[[File:Menu_Icon_Flooring.png|22px|link=Flooring]] [[Flooring]]
           |Flooring=[[File:Menu_Icon_Flooring.png|22px|link=Flooring]] [[Flooring]]
           |Crafting=[[File:Crafting.png|22px|link=Crafting]] [[Crafting]]
           |Crafting=[[File:Crafting.png|22px|link=Crafting]] [[Crafting]]
           |Gem=[[File:Menu_Icon_Gems.png|22px|link=Gems]] [[Gems|Gem]] [[Category: Gems]]
           |Gem
          |Gems=[[File:Menu_Icon_Gems.png|22px|link=Gems]] [[Gems|Gem]] [[Category: Gems]]
           |Currency=[[File:Menu_Icon_Currency.png|22px|link=Currency]] [[Currency]]
           |Currency=[[File:Menu_Icon_Currency.png|22px|link=Currency]] [[Currency]]
           |Quest Item=[[File:Menu_Icon_Quests.png|22px|link=Quests]] [[Quests|Quest Item]] [[Category: Quest Item]]
           |Quest Item=[[File:Menu_Icon_Quests.png|22px|link=Quests]] [[Quests|Quest Item]] [[Category: Quest Item]]
Line 293: Line 294:
   {{!}} id="infobox-label" {{!}} Found:
   {{!}} id="infobox-label" {{!}} Found:
   {{!}} {{#switch:{{{type|}}}
   {{!}} {{#switch:{{{type|}}}
          |Foraging={{#ifeq:{{{category|}}}|Flowers|{{#arraydefine:a-biome|{{{biomes|}}}}}{{#arrayprint:a-biome|<br>|@@@@|{{name|@@@@|link=@@@@#Flowers{{!}}@@@@}} [[Category:{{{category|}}} from {{#ifeq:@@@@|Dazzle Beach||the}} @@@@]]}}|{{{found|}}}}}
          |Gem={{#arraydefine:a-biome|{{{biomes|}}}}}{{#arrayprint:a-biome|<br>|@@@@|{{name|@@@@|link=@@@@#Mining{{!}}@@@@}} [[Category:Gems from {{#ifeq:@@@@|Dazzle Beach||the}} @@@@]]}}
           |Ingredient={{#switch:{{{ingtype|}}}
           |Ingredient={{#switch:{{{ingtype|}}}
               |Fish={{#arraydefine:a-biome|{{{biomes|}}}}}{{#arrayprint:a-biome|<br>|@@@@|{{name|@@@@|link=@@@@#Fishing{{!}}@@@@}} [[Category:{{{ingtype|}}} from {{#ifeq:@@@@|Dazzle Beach||the}} @@@@]]}}
               |Fish={{#arraydefine:a-biome|{{{biomes|}}}}}{{#arrayprint:a-biome|<br>|@@@@|{{name|@@@@|link=@@@@#Fishing{{!}}@@@@}} [[Category:{{{ingtype|}}} from {{#ifeq:@@@@|Dazzle Beach||the}} @@@@]]}}
               |#default={{{found|}}}}}
               |#default={{{biomes|}}}}}
           |#default={{{found|}}}}}
           |#default={{{biomes|}}}}}
}}{{#if:{{{biomeunlock|}}}|<nowiki/>
}}{{#if:{{{biomeunlock|}}}|<nowiki/>
   {{!}}-
   {{!}}-