Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(add params for touch of magic colors (tomcolor1, tomcolor2))
(Change trait type checking conditional from if to switch so that crafted furniture articles get furniture categories added. If type is not Crafted Furniture, Clothing, or Furniture, just the Trait is added to the article.)
Line 211: Line 211:
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Traits:
   {{!}} id="infobox-label" {{!}} Traits:
   {{!}} {{#arraydefine:a-trait|{{{traits|}}}}}{{#arrayprint:a-trait| |@@@@| {{tag|@@@@|{{{type|}}}}} [[Category:{{#if:{{{type|}}}|@@@@ {{{type|}}}|@@@@}}]] }}  
   {{!}} {{#arraydefine:a-trait|{{{traits|}}}}}{{#arrayprint:a-trait| |@@@@| {{tag|@@@@|{{{type|}}}}} [[Category:{{#switch:{{{type|}}}
          |Crafted Furniture
          |Furniture=@@@@ Furniture
          |Clothing=@@@@ Clothing
          |#default=@@@@}}]] }}  
}}}}
}}}}
{{#if:{{{seed|}}}|<nowiki/>
{{#if:{{{seed|}}}|<nowiki/>

Revision as of 18:45, 15 August 2023

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