Template:Collapsible option: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus m a space |
meta>Sardanaphalus m removed italics from value |
||
Line 21: | Line 21: | ||
|} | |} | ||
* {{#if:{{{state|}}}{{{default|}}} | * {{#if:{{{state|}}}{{{default|}}} | ||
| | | {{plaincode|'''{{#if:{{{state|}}} |{{{state}}} |{{{default}}}}}'''}} ''has been set as the default state.'' | ||
| Unless set otherwise (see the{{plaincode|state}}parameter in the template's code), the template's default state is{{plaincode|autocollapse.}} | | Unless set otherwise (see the{{plaincode|state}}parameter in the template's code), the template's default state is{{plaincode|autocollapse.}} | ||
}}<!-- | }}<!-- |
Revision as of 11:56, 26 October 2014
How to manage this template's initial visibility
|
Example | |
|state=collapsed | ... to show it in its collapsed state, i.e. hidden apart from its titlebar. | {{BASEPAGENAME |state=collapsed}} |
|state=expanded | ... to show it in its expanded state, i.e. fully visible. | {{BASEPAGENAME |state=expanded}} |
|state=autocollapse | ... to show it in its collapsed state but only if there is another template of the same type on the page. |
{{BASEPAGENAME |state=autocollapse}} |
- Unless set otherwise (see theTemplate:Plaincodeparameter in the template's code), the template's default state isTemplate:PlaincodeTemplate:When on template page