Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(add conditionals for handling biomes param for Gems, Flowers for handling ingredient-biome combo categories - useful for gifts and new rotating duties)
(add handling for Ruby and Sapphire feeding a non-biome parameter)
Line 295: Line 295:
   {{!}} {{#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|}}}}}
           |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}} @@@@]]}}
           |Gem={{#arraydefine:a-biome|{{{biomes|}}}}}{{#arrayprint:a-biome|<br>|@@@@|{{#switch:@@@@
              |Plaza
              |Peaceful Meadow
              |Dazzle Beach
              |Forest of Valor
              |Glade of Trust
              |Sunlit Plateau
              |Frosted Heights
              |Forgotten Lands
              |Vitalys Mine={{name|@@@@|link=@@@@#Mining{{!}}@@@@}} [[Category:Gems from {{#ifeq:@@@@|Dazzle Beach||the}} @@@@]]
              |#default=@@@@}}}}
           |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}} @@@@]]}}

Revision as of 20:38, 3 July 2023

For usage guidelines, please see: Template:Infobox/doc