Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(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.)
(Add type+tag category combination, similar to traits and colors)
Line 166: Line 166:
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag| |@@@@| {{tag|@@@@}} [[Category:@@@@]] }}
   {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag| |@@@@| {{tag|@@@@|{{{type|}}}}} [[Category:{{#switch:{{{type|}}}
          |Crafted Furniture
          |Furniture=@@@@ Furniture
          |Clothing=@@@@ Clothing
          |#default=@@@@}}]] }}
}}}}{{#if:{{{crop|}}}|<nowiki/>
}}}}{{#if:{{{crop|}}}|<nowiki/>
   {{!}}-
   {{!}}-

Revision as of 13:59, 16 August 2023

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