Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(Add support for returning star path items)
(add conditional for furniture with category Trees)
(23 intermediate revisions by 2 users not shown)
Line 10: Line 10:
           |Other=<div id="infobox-universe">[[File:Non-Disney-Related_light.png{{!}}24px{{!}}link={{#ifeq:{{{type|}}}|Crafted Furniture|Crafting#Furniture|{{{type|}}}#Non-Disney-Related}}]] [[{{#ifeq:{{{type|}}}|Crafted Furniture|Crafting#Furniture|{{{type|}}}#General}}|Other]]</div>[[Category:Other_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |Other=<div id="infobox-universe">[[File:Non-Disney-Related_light.png{{!}}24px{{!}}link={{#ifeq:{{{type|}}}|Crafted Furniture|Crafting#Furniture|{{{type|}}}#Non-Disney-Related}}]] [[{{#ifeq:{{{type|}}}|Crafted Furniture|Crafting#Furniture|{{{type|}}}#General}}|Other]]</div>[[Category:Other_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |Aladdin
           |Aladdin
           |Aladdin Universe =<div id="infobox-universe">[[File:Aladdin_Universe_light.png{{!}}24px{{!}}link=Aladdin Universe{{!}}{{{universe|}}}]] [[Aladdin Universe{{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |Aladdin Universe =<div id="infobox-universe">[[File:Aladdin_light.png{{!}}24px{{!}}link=Aladdin (Universe){{!}}{{{universe|}}}]] [[Aladdin (Universe){{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |Beauty and the Beast -- 1991
           |Beauty and the Beast -- 1991
           |Beauty and the Beast -- 2017 =<div id="infobox-universe">[[File:Beauty and the Beast_light.png{{!}}24px{{!}}link=Beauty and the Beast{{!}}{{{universe|}}}]] [[Beauty and the Beast{{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |Beauty and the Beast -- 2017 =<div id="infobox-universe">[[File:Beauty and the Beast_light.png{{!}}24px{{!}}link=Beauty and the Beast{{!}}{{{universe|}}}]] [[Beauty and the Beast{{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |Brave
           |Brave
           |Brave Universe =<div id="infobox-universe">[[File:Brave_Universe_light.png{{!}}24px{{!}}link=Brave Universe{{!}}{{{universe|}}}]] [[Brave Universe{{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |Brave Universe =<div id="infobox-universe">[[File:Brave_light.png{{!}}24px{{!}}link=Brave{{!}}{{{universe|}}}]] [[Brave{{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |Alice in Wonderland
           |Alice in Wonderland
           |Ancient Civilization
           |Ancient Civilization
Line 38: Line 38:
           |Moana
           |Moana
           |Monsters, Inc.
           |Monsters, Inc.
          |Oswald the Lucky Rabbit
           |Peter Pan
           |Peter Pan
           |Pirates of the Caribbean
           |Pirates of the Caribbean
          |Pocahontas
           |Ratatouille
           |Ratatouille
           |Sleeping Beauty
           |Sleeping Beauty
Line 55: Line 57:
           |WALL-E
           |WALL-E
           |Wreck-It Ralph=<div id="infobox-universe">[[File:{{{universe|}}}_light.png{{!}}24px{{!}}link={{#switch:{{{universe|}}}
           |Wreck-It Ralph=<div id="infobox-universe">[[File:{{{universe|}}}_light.png{{!}}24px{{!}}link={{#switch:{{{universe|}}}
              |Aladdin
               |Cinderella
               |Cinderella
               |Dreamlight Valley
               |Dreamlight Valley
Line 65: Line 68:
               |Snow White
               |Snow White
               |WALL-E={{{universe|}}} (Universe)
               |WALL-E={{{universe|}}} (Universe)
              |#default={{{universe|}}}}}]] [[{{#switch:{{{universe|}}}
               |Aladdin
               |Aladdin
              |Aladdin Universe=Aladdin Universe
              |#default={{{universe|}}}}}]] [[{{#switch:{{{universe|}}}
               |Cinderella
               |Cinderella
               |Dreamlight Valley
               |Dreamlight Valley
Line 78: Line 80:
               |Snow White
               |Snow White
               |WALL-E={{{universe|}}} (Universe)
               |WALL-E={{{universe|}}} (Universe)
              |Aladdin
              |Aladdin Universe=Aladdin Universe
               |#default={{{universe|}}}}}{{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
               |#default={{{universe|}}}}}{{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{#ifeq:{{{craftingcategory|}}}|Timebending Furniture|Timebending Crafted Furniture|{{{type|}}}}}{{#ifeq:{{{type|}}}|Board Game|&nbsp;Pieces|}}]]<div style="clear:both;"></div>
           |#default=<div id="infobox-universe">{{{universe|}}}</div>[[Category:{{{universe|}}}_{{{type|}}}]]<div style="clear:both;"></div>}}}}{{#if:{{{character|}}}|[[{{{character|}}}#Quests|{{{character|}}} Quest]][[Category:{{{character|}}} Quests]]<br>|}}{{#if:{{{image_m|}}}|{{#Widget:BodyType}}
           |#default=<div id="infobox-universe">{{{universe|}}}</div>[[Category:{{{universe|}}}_{{{type|}}}]]<div style="clear:both;"></div>}}}}{{#if:{{{character|}}}|[[{{{character|}}}#Quests|{{{character|}}} Quest]][[Category:{{{character|}}} Quests]]<br>|}}{{#if:{{{image_m|}}}|{{#Widget:BodyType}}
Line 97: Line 97:
           |Meal
           |Meal
           |Meals=[[File:Menu_Icon_Meals.png|22px|link=Cooking#Meals]] [[Cooking#Meals|Meal]] [[Category: Meals]]
           |Meals=[[File:Menu_Icon_Meals.png|22px|link=Cooking#Meals]] [[Cooking#Meals|Meal]] [[Category: Meals]]
           |Seed=[[Crop Seeds|Seed]] [[Category: Seeds]]
           |Seed=[[File:Menu_Icon_Ingredients.png|22px|link=Crop Seeds]] [[Crop Seeds|Seed]] [[Category: Seeds]]
           |Ingredient
           |Ingredient
           |Ingredients=[[File:Menu_Icon_Ingredients.png|22px|link=Ingredients]] [[Ingredients|Ingredient]] [[Category: Ingredients]]
           |Ingredients=[[File:Menu_Icon_Ingredients.png|22px|link=Ingredients]] [[Ingredients|Ingredient]] [[Category: Ingredients]]
Line 141: Line 141:
           |Functional Items={{inlineIcon|Functional Items|link=Crafting#Functional Items}} [[Category: Functional Items]]
           |Functional Items={{inlineIcon|Functional Items|link=Crafting#Functional Items}} [[Category: Functional Items]]
           |Furniture={{inlineIcon|Furniture|link=Crafting#Furniture}}
           |Furniture={{inlineIcon|Furniture|link=Crafting#Furniture}}
           |Timebending Furniture=[[File:Lighting.png|22px|link=Timebending#Furniture]] [[Timebending#Furniture|Furniture]] [[Category: Timebending Furniture]]
           |Timebending Furniture={{name|Menu Icon Furniture|link=Timebending#Furniture{{!}}Furniture}} [[Category: Timebending Furniture]]
           |Gift={{name|Gift Icon|link=Timebending#Gifts{{!}}Gifts}} [[Category: Timebending Gifts]]
           |Timebending Fence & Paving={{name|Fencing Icon|link=Timebending#Furniture{{!}}Fence & Paving}} [[Category: Timebending Furniture]]
           |Quest=[[Timebending|Quest]]
           |Quest={{name|Menu Icon Quests|link=Timebending{{!}}Quest}}
          |Ancient Machines={{name|Ancient Machines|link=Timebending#Ancient Machines{{!}}Ancient Machines}} [[Category: Ancient Machines]]
          |Ancient Machine
           |Fragments={{name|Timebending Fragments|link=Timebending#Fragments{{!}}Fragments}} [[Category: Timebending Fragments]]
           |Ancient Machines={{name|Timebending Parts|link=Timebending#Ancient Machines{{!}}Ancient Machine}} [[Category: Timebending Furniture]]
           |Timebending Parts={{name|Timebending Parts|link=Timebending#Timebending Parts{{!}}Ancient Machines}} [[Category: Timebending Parts]]
           |Fragments={{name|Timebending Fragments|link=Timebending#Fragments{{!}}Fragments}}
           |Special={{name|Special|link=Timebending#Special{{!}}Special}}
           |Special={{name|Special|link=Timebending#Special{{!}}Special}}
           |#default={{{craftingcategory|}}}}}
           |#default={{{craftingcategory|}}}}}
Line 176: Line 176:
           |#default={{{ingtype|}}}}}</span>
           |#default={{{ingtype|}}}}}</span>
}}{{#if:{{{functions|}}}|{{#switch:{{{functions|}}}
}}{{#if:{{{functions|}}}|{{#switch:{{{functions|}}}
           |Arch
           |Arch=
           |Attraction=
           |Attraction=<!--[[Category:Attractions]]-->{{cleanup|Either create a new category or confirm if this category exclusively contains rideable furniture}}
           |Clock=[[Category:Clock]]
           |Clock=[[Category:Clock]]
           |Companion Interest=
           |Companion Interest=
Line 211: Line 211:
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Categories:
   {{!}} id="infobox-label" {{!}} Categories:
   {{!}} {{#arraydefine:a-category|{{{category|}}}}}{{#arrayprint:a-category|<br/>|@@@@|<span id="nametemplate">{{category|@@@@}}</span>}}
   {{!}} {{#arraydefine:a-category|{{{category|}}}}}{{#arrayprint:a-category|<br/>|@@@@|{{#ifeq:@@@@|Trees|{{#ifeq:{{{type|}}}|Furniture|<span id="nametemplate">{{category|@@@@ (Furniture)}}</span>|<span id="nametemplate">{{category|@@@@}}</span>}}|<span id="nametemplate">{{category|@@@@}}</span>}}}}
}}}}{{#if:{{{size|}}}|<nowiki/>
}}}}{{#if:{{{size|}}}|<nowiki/>
   {{!}}-
   {{!}}-
Line 234: Line 234:
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag| |@@@@| {{tag|@@@@|{{{type|}}}|category=yes}}}}{{#if:{{{eventTokens|}}}|{{tag|starpath|{{#switch:{{{from|}}}
   {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag| |@@@@| {{tag|@@@@|{{{type|}}}|category=yes}} {{#switch:{{{category|}}}
    |Hairstyle
    |Facial Hair={{#ifeq:@@@@|Hairstyle|<!--Do not create Hairstyle Hairstyle Category-->|[[Category:@@@@ Hairstyle]]<!--Also use Hairstyle Categories for Facial Hair-->}}
    |#default=}} }} {{#if:{{{eventTokens|}}}|{{tag|starpath|{{#switch:{{{from|}}}
           |Pixar Fest Star Path=Pixar Fest
           |Pixar Fest Star Path=Pixar Fest
           |Villains' Star Path=Villains
           |Villains' Star Path=Villains
Line 244: Line 247:
           |Royal Winter Star Path=Royal Winter
           |Royal Winter Star Path=Royal Winter
           |Lovely Monsters Star Path=Lovely Monsters
           |Lovely Monsters Star Path=Lovely Monsters
          |A Day at Disney Star Path=A Day at Disney
           |#default=}}|event={{{from|}}}}}|}}
           |#default=}}|event={{{from|}}}}}|}}
}}}}{{#if:{{{collection|}}}|<nowiki/>
}}}}{{#if:{{{collection|}}}|<nowiki/>
Line 251: Line 255:
           |Clothing=Clothing Sets Collection
           |Clothing=Clothing Sets Collection
           |Furniture=Furniture Sets Collection
           |Furniture=Furniture Sets Collection
          |Wallpaper=Furniture Sets Collection
          |Flooring=Furniture Sets Collection
           |Crafted Furniture=Crafting Collection
           |Crafted Furniture=Crafting Collection
           |Ingredient=Ingredients Collection
           |Ingredient=Ingredients Collection
Line 287: Line 293:
           |Crafted Furniture
           |Crafted Furniture
           |Furniture=[[Category: @@@@ Furniture]]
           |Furniture=[[Category: @@@@ Furniture]]
           |Clothing=[[Category: @@@@ Clothing]] {{#ifeq:{{{category|}}}|Hairstyle|[[Category:@@@@ Hairstyle]]|}}
           |Clothing=[[Category: @@@@ Clothing]] {{#switch:{{{category|}}}
    |Hairstyle
    |Facial Hair=[[Category:@@@@ Hairstyle]]<!--Also use Hairstyle Categories for Facial Hair-->
    |#default=}}
           |#default=[[Category: @@@@]]}} }}  
           |#default=[[Category: @@@@]]}} }}  
}}}}{{#if:{{{seed|}}}|<nowiki/>
}}}}{{#if:{{{seed|}}}|<nowiki/>
Line 334: Line 343:
     |Royal Winter Star Path={{price|{{{eventTokens|}}}|royalwintertoken}} [[Category:Royal Winter Star Path]]
     |Royal Winter Star Path={{price|{{{eventTokens|}}}|royalwintertoken}} [[Category:Royal Winter Star Path]]
     |Lovely Monsters Star Path={{price|{{{eventTokens|}}}|monstertoken}} [[Category:Lovely Monsters Star Path]]
     |Lovely Monsters Star Path={{price|{{{eventTokens|}}}|monstertoken}} [[Category:Lovely Monsters Star Path]]
    |A Day at Disney Star Path={{price|{{{eventTokens|}}}|dayatdisneytoken}} [[Category:A Day at Disney Star Path]]
     |#default={{{eventTokens|}}} Tokens}}
     |#default={{{eventTokens|}}} Tokens}}
}}{{#if:{{{bundle|}}}|<nowiki/>
}}{{#if:{{{bundle|}}}|<nowiki/>
Line 503: Line 513:
           |[[Scrooge's Store]]={{inlineIcon|Scrooge's Store|link=Scrooge's Store}}
           |[[Scrooge's Store]]={{inlineIcon|Scrooge's Store|link=Scrooge's Store}}
           |Scrooge's Catalog
           |Scrooge's Catalog
           |[[Scrooge's Store|Scrooge's Catalog]]={{inlineIcon|Scrooge's Catalog|link=Scrooge's Store#Catalog}}[[Category:Catalog]]
           |[[Scrooge's Store|Scrooge's Catalog]]={{inlineIcon|Scrooge's Catalog|link=Scrooge's Catalog}}[[Category:Catalog]]
           |Premium Bundle
           |Premium Bundle
           |[[Premium Bundle]]={{inlineIcon|Premium Bundle|link=Premium Shop}}
           |[[Premium Bundle]]={{inlineIcon|Premium Bundle|link=Premium Shop}}
           |Scrooge's Catalog, Scrooge's Store={{inlineIcon|Scrooge's Catalog|link=Scrooge's Store#Catalog}}[[Category:Catalog]]<br>{{inlineIcon|Scrooge's Store|link=Scrooge's Store}}
          |The Boutique={{name|The Boutique}}
           |Scrooge's Catalog, Scrooge's Store={{inlineIcon|Scrooge's Catalog|link=Scrooge's Catalog}}[[Category:Catalog]]<br>{{inlineIcon|Scrooge's Store|link=Scrooge's Store}}
           |Premium Shop={{name|Premium Shop}} [[Category:Premium Shop]]
           |Premium Shop={{name|Premium Shop}} [[Category:Premium Shop]]
           |Premium Shop (Removed)={{name|Premium Shop}} (Removed) [[Category:Premium Shop]]
           |Premium Shop (Removed)={{name|Premium Shop}} (Removed) [[Category:Premium Shop]]
Line 517: Line 528:
           |Haunted Holiday Star Path
           |Haunted Holiday Star Path
           |Royal Winter Star Path
           |Royal Winter Star Path
           |Lovely Monsters Star Path={{name|{{{from|}}}}} (T{{{tier|}}}{{#ifeq:{{{premium|}}}|yes|&nbsp;Premium[[Category:Premium]]||}}){{#if:{{{resold|}}}|<br>{{name|Premium Shop}}[[Category:Premium Shop]]|[[Category:Limited Time]]}}
           |Lovely Monsters Star Path
          |A Day at Disney Star Path={{name|{{{from|}}}}} (T{{{tier|}}}{{#ifeq:{{{premium|}}}|yes|&nbsp;Premium[[Category:Premium]]||}}){{#if:{{{bundleName|}}}|<br>{{name|Premium Shop}}[[Category:Premium Shop]]|[[Category:Limited Time]]}}
           |Redemption Codes=[[Redemption Codes]] [[Category:Redemption Code Items]]
           |Redemption Codes=[[Redemption Codes]] [[Category:Redemption Code Items]]
           |#default={{{from|}}}}}</span>
           |#default={{{from|}}}}}</span>
Line 532: Line 544:
   {{!}} id="infobox-label" {{!}} Respawn Location:
   {{!}} id="infobox-label" {{!}} Respawn Location:
   {{!}} <span id="nametemplate">{{{respawnLocation|}}}</span>
   {{!}} <span id="nametemplate">{{{respawnLocation|}}}</span>
}}<!--{{#if:{{{storeSlot|}}}|<nowiki/>
}}{{#if:{{{storeSlots|}}}|<nowiki/>
  {{!}}-
  {{!}} id="infobox-label" {{!}} Store Slot{{#arraydefine:a-storeslots|{{{storeSlots|}}}}}{{#ifeq:{{#arraysize:a-storeslots}}|1||s}}:
  {{!}} {{#arrayprint:a-storeslots|,&nbsp;|@@@@|{{#switch:@@@@
          |table 1=[[:Category:Table 1|Table 1]][[Category:Table 1]]
          |table 2=[[:Category:Table 2|Table 2]][[Category:Table 2]]
          |table 3=[[:Category:Table 3|Table 3]][[Category:Table 3]]
          |table 4=[[:Category:Table 4|Table 4]][[Category:Table 4]]
          |table=[[:Category:Table|Table]][[Category:Table]]
          |lower=[[:Category:Lower Platform|Lower Platform]][[Category:Lower Platform]]
          |upper sides=[[:Category:Upper Side Platforms|Upper Side Platforms]][[Category:Upper Side Platforms]]
          |upper middle=[[:Category:Upper Middle Platform|Upper Middle Platform]][[Category:Upper Middle Platform]]
          |ceiling=[[:Category:Upper Ceiling Mount|Upper Ceiling Mount]][[Category:Upper Ceiling Mount]]
          |paint=[[:Category:Upper Wallpaper & Flooring|Upper Wallpaper & Flooring]][[Category:Upper Wallpaper & Flooring]]
          |wall=[[:Category:Upper Wall Mount|Upper Wall Mount]][[Category:Upper Wall Mount]]
          |trio FL=[[Scrooge's Store#Store Slots|Trio Display - Front Left]]
          |trio FR=[[Scrooge's Store#Store Slots|Trio Display - Front Right]]
          |trio B=[[Scrooge's Store#Store Slots|Trio Display - Back]]
          |trio=[[Scrooge's Store#Store Slots|Trio Display]]
          |clothing table 1=[[Scrooge's Store#Store Slots|Clothing Table 1]]
          |clothing table 2=[[Scrooge's Store#Store Slots|Clothing Table 2]]
          |clothing table 3=[[Scrooge's Store#Store Slots|Clothing Table 3]]
          |clothing table 4=[[Scrooge's Store#Store Slots|Clothing Table 4]]
          |clothing table=[[Scrooge's Store#Store Slots|Clothing Table]]
          |window L=[[Scrooge's Store#Store Slots|Left Window]]
          |window R=[[Scrooge's Store#Store Slots|Right Window]]
          |window=[[Scrooge's Store#Store Slots|Window Display]]
          |#default=@@@@[[Category:Store Slots Entry Issue]]}}}}
}}{{#if:{{{storeSlot|}}}|[[Category:Store Slot Cleanup]]}}<!--<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Store Slot:
   {{!}} id="infobox-label" {{!}} Store Slot:

Revision as of 22:58, 13 June 2024

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