Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(add Biomes section for handling ingredient-biome combo categories - useful for gifts and new rotating duties)
(fix generated wording for fish from dazzle beach category)
Line 294: Line 294:
   {{!}} {{#switch:{{{type|}}}
   {{!}} {{#switch:{{{type|}}}
           |Ingredient={{#switch:{{{ingtype|}}}
           |Ingredient={{#switch:{{{ingtype|}}}
               |Fish={{#arraydefine:a-biome|{{{biomes|}}}}}{{#arrayprint:a-biome|<br>|@@@@|{{name|@@@@|link=@@@@#Fishing{{!}}@@@@}} [[Category:{{{ingtype|}}} from the @@@@]]}}
               |Fish={{#arraydefine:a-biome|{{{biomes|}}}}}{{#arrayprint:a-biome|<br>|@@@@|{{name|@@@@|link=@@@@#Fishing{{!}}@@@@}} [[Category:{{{ingtype|}}} from {{#ifeq:@@@@|Dazzle Beach||the}} @@@@]]}}
               |#default={{{found|}}}}}
               |#default={{{found|}}}}}
           |#default={{{found|}}}}}
           |#default={{{found|}}}}}

Revision as of 19:12, 3 July 2023

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