Template:Infobox: Difference between revisions

Jump to navigation Jump to search
(Remove testing content)
(add "default" placement value for items that can be placed on untiled or tiled ground, not surfaces - basically the most common category. Perhaps not the best name, could be changed later.)
Line 341: Line 341:
}}{{#if:{{{placement|}}}|<nowiki/>
}}{{#if:{{{placement|}}}|<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} {{#ifeq:{{{placement|}}}|surfaces|Can Place on Surfaces:|Environment:}}
   {{!}} id="infobox-label" {{!}} {{#switch:{{{placement|}}}
          |surfaces
          |default=Can Place on Surfaces:
          |#default=Environment:}}
   {{!}} {{#switch:{{{placement|}}}
   {{!}} {{#switch:{{{placement|}}}
           |surfaces=[[Category:Surfaces]][[:Category:Surfaces|Yes]]
           |surfaces=[[Category:Surfaces]][[:Category:Surfaces|Yes]]
          |default=No<!--Tiled or Untiled Ground-->
           |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]]