Template:Collapsible option: Difference between revisions
From WikiMD's Wellness Encyclopedia
m 1 revision imported |
en>FlightTime m Update lnk trgt(s) |
||
| Line 1: | Line 1: | ||
This template's '''initial visibility currently defaults to {{param value|{{#switch:{{{default|}}}|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}}}''', meaning that {{#switch:{{{default|}}}|collapsed=it is hidden apart from its title bar.|expanded=it is fully visible.|autocollapse|#default=if there is another collapsible item on the page (a [[Wikipedia:Navigation_template#Types|navbox, sidebar]], or [[Help:Collapsing|table with the collapsible attribute]]), it is hidden apart from its title bar; if not, it is fully visible.}} | This template's '''initial visibility currently defaults to {{param value|{{#switch:{{{default|}}}|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}}}''', meaning that {{#switch:{{{default|}}}|collapsed=it is hidden apart from its title bar.|expanded=it is fully visible.|autocollapse|#default=if there is another collapsible item on the page (a [[Wikipedia:Navigation_template#Types|navbox, sidebar]], or [[Help:Collapsing tables and more|table with the collapsible attribute]]), it is hidden apart from its title bar; if not, it is fully visible.}} | ||
To change this template's initial visibility, the {{para|{{{parameter_name|state}}}}} [[Help:Template#Parameters|parameter]] may be used: | To change this template's initial visibility, the {{para|{{{parameter_name|state}}}}} [[Help:Template#Parameters|parameter]] may be used: | ||
| Line 10: | Line 10: | ||
}}{{#if:{{{width|}}}| | }}{{#if:{{{width|}}}| | ||
{{para|width|{{var|value}}}} is also available; where {{var|value}} can be either {{kbd|{{var|N}} [em/%/px]}} or {{kbd|auto}}. The default is {{kbd|100%}}. | {{para|width|{{var|value}}}} is also available; where {{var|value}} can be either {{kbd|{{var|N}} [em/%/px]}} or {{kbd|auto}}. The default is {{kbd|100%}}. | ||
}}<!-- | }}{{sandbox other|__EXPECTUNUSEDTEMPLATE__}}<!-- | ||
Add {{pp-template}} if template page where this template is transcluded is protected: | Add {{pp-template}} if template page where this template is transcluded is protected: | ||
-->{{template other | -->{{template other | ||
| Line 19: | Line 19: | ||
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --> | <!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --> | ||
</noinclude> | </noinclude> | ||
Revision as of 21:14, 26 November 2024
This template's initial visibility currently defaults to autocollapse, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state= parameter may be used:
{{BASEPAGENAME|state=collapsed}}will show the template collapsed, i.e. hidden apart from its title bar.{{BASEPAGENAME|state=expanded}}will show the template expanded, i.e. fully visible.