Template:Collapsible option
Initial visibility: currently defaults to {{#switch:|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}
To set this template's initial visibility, the |{{SAFESUBST:#if:state|state=}}
parameter may be used:
|{{SAFESUBST:#if:state|state=}}collapsed
:{{{{#if:| |BASE}}PAGENAME|state=collapsed}}
to show the template collapsed, i.e., hidden apart from its title bar|{{SAFESUBST:#if:state|state=}}expanded
:{{{{#if: | |BASE}}PAGENAME|state=expanded}}
to show the template expanded, i.e., fully visible|{{SAFESUBST:#if:state|state=}}autocollapse
:{{{{#if: | |BASE}}PAGENAME|state=autocollapse}}
- shows the template collapsed to the title bar if there is a
{{Template:Collapsible option}}
, a{{Template:Collapsible option}}
, or some other table on the page with the collapsible attribute - shows the template in its expanded state if there are no other collapsible items on the page
- shows the template collapsed to the title bar if there is a
If the |{{SAFESUBST:#if:state|state=}}
parameter in the template on this page is not set, the template's initial visibility is taken from the |{{SAFESUBST:#if:default|default=}}
parameter in the Collapsible option template. For the template on this page, that currently evaluates to {{#switch:|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}
.{{#if:|
|{{SAFESUBST:#if:align|align=}}Template:Var
is also available; where Template:Var can be eitherright
orleft
. The default is Template:Kbd.
}}{{#if:|:|{{SAFESUBST:#if:title-background|title-background=}}Template:Var
is also available; where Template:Var can be either Template:Kbd or a Template:Kbd. The default is Template:Kbd, and {Template:Kbd defaults to the default navbox color.
}}{{#if:|
|{{SAFESUBST:#if:width|width=}}Template:Var
is also available; where Template:Var can be either Template:Kbd or Template:Kbd. The default is Template:Kbd.
}}{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#if: |{{#switch:Lua error in Module:Effective_protection_level at line 46: attempt to index field 'TitleBlacklist' (a nil value). |*= |autoconfirmed=[[Category:{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Module | module | other }} }}
| module = Modules subject to page protection | other | #default = Semi-protected templates }}|Collapsible option]] |sysop=[[Category:{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Module | module | other }} }}
| module = Modules subject to page protection | other | #default = Fully protected templates }}|Collapsible option]] }}
| {{#if: |Template:Pp-move }} }}
| other | #default = }}