Template:Collapsible option: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
Update via sandbox/testcases (primarily to satisfy Template talk:Collapsible option#Rephrasing)
meta>Sardanaphalus
m a space
Line 21: Line 21:
|}
|}
* {{#if:{{{state|}}}{{{default|}}}
* {{#if:{{{state|}}}{{{default|}}}
   | ''{{plaincode|'''{{#if:{{{state|}}} |{{{state}}} |{{{default}}}}}'''}}has been set as the default state.''
   | ''{{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:51, 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}}