Template:Collapsible option: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
m removed italics from value
meta>Sardanaphalus
m →‎top: corrected inline template's scope
Line 22: Line 22:
* {{#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 {{mono|100%|autocollapse}}.
   }}<!--
   }}<!--



Revision as of 11:57, 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}}