Template:Infobox: Difference between revisions

196 bytes added ,  18:50, 26 January 2023
Create category links for Color/type combinations - Furniture (Crafted + Furniture as one), Clothing, Wallpaper, Flooring. Still have to fix Landscaping. Putting everything in one Color category was resulting in huge categories.
(Tweak environment display language to "Indoor Only" and "Outdoor Only" - consistent with labels used in game (remove s))
(Create category links for Color/type combinations - Furniture (Crafted + Furniture as one), Clothing, Wallpaper, Flooring. Still have to fix Landscaping. Putting everything in one Color category was resulting in huge categories.)
Line 171: Line 171:
     {{!}} id="infobox-label" {{!}} Color:
     {{!}} id="infobox-label" {{!}} Color:
     {{!}} {{#arrayprint:a-color|, |@@@@| {{color|@@@@}}}} |
     {{!}} {{#arrayprint:a-color|, |@@@@| {{color|@@@@}}}} |
  {{#arrayprint:a-color| |@@@@| [[Category:@@@@|@@@@]]}}
    {{#switch:{{{type|}}}
          |Crafted Furniture
          |Furniture={{#arrayprint:a-color| |@@@@| [[Category:@@@@ Furniture|@@@@ Furniture]]}}
          |#default={{#arrayprint:a-color| |@@@@| [[Category:@@@@ {{{type|}}}|@@@@ {{{type|}}}]]}} }}
   |}}
   |}}
}}
}}
moderator
26,807

edits