Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
Marblemadmax (talk | contribs) No edit summary |
(Add logic for items that can only be placed in a specific village - very few items this currently impacts (Rapunzel's Art Class Banner, Dreamlight Day Banner, which can also be placed inside, not fully sure how to handle that yet)) |
||
Line 665: | Line 665: | ||
}}{{#if:{{{environment|}}}|<nowiki/> | }}{{#if:{{{environment|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infobox-label" {{!}} Environment: | {{!}} id="infobox-label" {{!}} <!--{{#if:{{{village|}}}|Village:|Environment:}}-->Environment: | ||
{{!}} {{#switch:{{{environment|}}} | {{!}} {{#switch:{{{environment|}}} | ||
|indooronly=[[Category:Indoor Only]][[:Category:Indoor Only|Indoor Only]] | |indooronly=[[Category:Indoor Only]][[:Category:Indoor Only|Indoor Only]] | ||
|outdooronly=[[Category:Outdoor Only]][[:Category:Outdoor Only|Outdoor Only]] | |outdooronly=[[Category:Outdoor Only]][[:Category:Outdoor Only|Outdoor Only]] | ||
|wateronly=[[Category:Outdoor Only]][[:Category:Outdoor Only|Outdoor Only, On Water]] | |wateronly=[[Category:Outdoor Only]][[:Category:Outdoor Only|Outdoor Only, On Water]] | ||
|#default=}} | |#default=}} {{#if:{{{village|}}}|{{#switch:{{{village|}}} | ||
|Eternity Isle=([[:Category:Eternity Isle Village Environment|Eternity Isle]][[Category:Eternity Isle Village Environment]]) | |||
|Dreamlight Valley=([[:Category:Dreamlight Valley Village Environment|Dreamlight Valley]][[Category:Dreamlight Valley Village Environment]]) | |||
|#default=}}|}} | |||
}}{{#if:{{{pieces|}}}|<nowiki/> | }}{{#if:{{{pieces|}}}|<nowiki/> | ||
{{!}}- | {{!}}- |
Revision as of 18:54, 18 February 2024
For usage guidelines, please see: Template:Infobox/doc