Template:Collapsible option
From Shealladh's Wiki
Revision as of 21:08, 23 April 2016 by Shealladh (Talk | contribs) (Created page with "'''How to manage this template's initial visibility'''<br /> To manage this template's visibility when it first appears, add the parameter: :{{par...")
How to manage this template's initial visibility
To manage this template's visibility when it first appears, add the parameter:
- Template:Para to show the template in its collapsed state, i.e. hidden apart from its titlebar – e.g.
{{BASEPAGENAME |state=collapsed}} - Template:Para to show the template in its expanded state, i.e. fully visible – e.g.
{{BASEPAGENAME |state=expanded}} - Template:Para to show the template in its collapsed state but only if there is another template of the same type on the page – e.g.
{{BASEPAGENAME |state=autocollapse}}
Unless set otherwise (see the Template:Para parameter in the template's code), the template's default state is {{#switch:|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}.{{#if:|
- Template:Para is also available; where value can be either
rightorleft. The default iscenter
}}{{#if:|:Template:Para 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:|
- Template:Para is also available; where value can be either
N [em/%/px]orauto. The default is100%