Template:Buildings and structures infobox templates
This template's initial visibility currently defaults to 25|white-space: wrap;|}} ">{{#switch:expanded|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}, meaning that {{#switch:expanded|collapsed=it is hidden apart from its title bar.|expanded=it is fully visible.|autocollapse|#default=if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.}}
To change this template's initial visibility, the |{{SAFESUBST:#if:state|state=}} parameter may be used:
-
{{#ifeq:expanded|collapsed||
- <syntaxhighlight lang="wikitext" inline="1">{{{{{{#if:| |BASE}}PAGENAME}}|state=collapsed}}</syntaxhighlight> will show the template collapsed, i.e. hidden apart from its title bar. }} {{#ifeq:expanded|expanded||
- <syntaxhighlight lang="wikitext" inline="1">{{{{{{#if: | |BASE}}PAGENAME}}|state=expanded}}</syntaxhighlight> will show the template expanded, i.e. fully visible. }} {{#ifeq:expanded|autocollapse||
- <syntaxhighlight lang="wikitext" inline="1">{{{{{{#if: | |BASE}}PAGENAME}}|state=autocollapse}}</syntaxhighlight> will show the template autocollapsed, i.e. if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar, but if not, it is fully visible. }}
|{{SAFESUBST:#if:align|align=}}value is also available; where value can be either right or left. The default is center.
}}{{#if:||{{SAFESUBST:#if:title-background|title-background=}}value is also available; where value can be either navbox or a color. The default is none, and navbox defaults to the default navbox color.
}}{{#if:|
|{{SAFESUBST:#if:width|width=}}value is also available; where value can be either N [em/%/px] or auto. The default is 100%.
}}{{safesubst:#if:{{safesubst:#ifeq:Buildin|sandbox|1}}{{safesubst:#ifeq:Buildings and structures infobox templates|doc|1}}||}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#if: |Lua error in Module:Effective_protection_level at line 64: attempt to index field 'ext' (a nil value).
| {{#if: |Lua error in Module:Effective_protection_level at line 53: attempt to index field 'ext' (a nil value). }}
}}
| other | #default = }}