Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(For Furniture Zones (labeled in game) and Clothing Zones (not labeled in game), do not append " Furniture" and " Clothing" to the category added to article, as this is redundant)
(Remove switch to simplify template)
Line 166: Line 166:
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag| |@@@@| {{#switch:@@@@
   {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag| |@@@@| {{tag|@@@@|{{{type|}}}}}}}
          |Bathroom
          |Bedroom
          |Dining Room
          |Kitchen
          |Living Room
          |Outdoors
          |Rec Room
          |Study
          |Back
          |Bracelets
          |Coats
          |Costumes
          |Dresses
          |Earrings
          |Glasses
          |Gloves
          |Hats
          |Neckwear
          |Pants
          |Shoes
          |Shorts
          |Skirts
          |Tops={{tag|@@@@}} [[Category:@@@@]]
          |#default={{tag|@@@@|{{{type|}}}}} [[Category:{{#switch:{{{type|}}}
          |Crafted Furniture
          |Furniture=@@@@ Furniture
          |Clothing=@@@@ Clothing
          |#default=@@@@}}]] }} }}
}}}}{{#if:{{{crop|}}}|<nowiki/>
}}}}{{#if:{{{crop|}}}|<nowiki/>
   {{!}}-
   {{!}}-

Revision as of 17:43, 22 August 2023

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