Template:Tag: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(Remove duplicate Tops in switch, reorder a few items to alpha sort in switch)
(Move switch into an array to simplify the template - limit 'type' after tag to only furniture, crafted furniture, and clothing, move category generation into this template from infobox (to unify assembly))
Line 1: Line 1:
<includeonly><div class="tag-box" id="{{#switch:{{{1|}}}
<includeonly>{{#arraydefine:a-tagtype|{{#switch:{{{1|}}}
           |Bathroom
           |Bathroom
           |Bedroom
           |Bedroom
Line 7: Line 7:
           |Outdoors
           |Outdoors
           |Rec Room
           |Rec Room
           |Study=tag-room
           |Study
           |Back
           |Back
           |Bracelets
           |Bracelets
Line 22: Line 22:
           |Shorts
           |Shorts
           |Skirts
           |Skirts
           |Tops=tag-room
          |Bracelets
           |Tops=zone
           |Lavish
           |Lavish
           |Simple
           |Simple
Line 30: Line 31:
           |Strong
           |Strong
           |Familiar
           |Familiar
           |Wondrous=tag-trait
           |Wondrous=trait
           |Alice in Wonderland
           |Alice in Wonderland
           |Ancient Civilization
           |Ancient Civilization
Line 65: Line 66:
           |Up
           |Up
           |WALL-E
           |WALL-E
           |Wreck-It Ralph=tag-universe
           |Wreck-It Ralph
           |Other
           |Other
           |other
           |other
           |General
           |General
           |general=tag-universe
           |general=universe
           |non-themed=
           |non-themed=
           |none=
           |none=
          |#default=}}}}<div class="tag-box" id="{{#switch:{{#arrayprint:a-tagtype}}
          |zone=tag-room
          |trait=tag-trait
          |universe=tag-universe
           |#default=}}" style="background:{{#switch:{{lc:{{{1|}}}}}
           |#default=}}" style="background:{{#switch:{{lc:{{{1|}}}}}
           |blue=rgb(87, 162, 244)
           |blue=rgb(87, 162, 244)
Line 84: Line 89:
           |purple=rgb(144, 115, 216)
           |purple=rgb(144, 115, 216)
           |gray=rgb(143, 143, 143)
           |gray=rgb(143, 143, 143)
           |#default=}}">[[:Category:{{#if:{{{2|}}}|{{{1|}}} {{#switch:{{{2|}}}
           |#default=}}">[[:Category:{{#if:{{{2|}}}|{{{1|}}} {{#switch:{{#arrayprint:a-tagtype}}
          |zone=
          |#default={{#switch:{{{2|}}}
           |Crafted Furniture=Furniture
           |Crafted Furniture=Furniture
           |Wallpaper=
           |Wallpaper=
           |Flooring=
           |Flooring=
           |#default={{{2|}}}}}|{{{1|}}}}}|{{{1|}}}]]</div></includeonly><noinclude>
           |#default={{{2|}}}}}}}|{{{1|}}}}}|{{{1|}}}]]{{#switch:{{#arrayprint:a-tagtype}}
<!--
          |zone=[[Category:{{{1|}}}]]
          |#default={{#switch:{{{2|}}}
          |Furniture
          |Crafted Furniture=[[Category:{{{1|}}} Furniture]]
          |Clothing=[[Category:{{{1|}}} Clothing]]
          |Wallpaper=[[Category:{{{1|}}}]]
          |Flooring=[[Category:{{{1|}}}]]
          |#default=}}}}</div></includeonly><noinclude><!--
{{tag|Lavish|Clothing}}
{{tag|Lavish|Clothing}}
{{tag|Playful|Furniture}}
{{tag|Playful|Furniture}}
Line 96: Line 110:
{{tag|WALL-E|Clothing}}
{{tag|WALL-E|Clothing}}
{{tag|brown|Clothing}}
{{tag|brown|Clothing}}
-->
{{tag|Living Room|Clothing}}
</noinclude>
{{tag|Hats|Clothing}}--></noinclude>

Revision as of 17:38, 22 August 2023