Template:Collapsible option/doc
| This is a documentation subpage for Template:Collapsible option It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 144,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
{{Collapsible option}} be utility template wey dey give standard message for transclusion for template documentation pages of templates wey their collapsibility fit be controlled by the parameter |state=.
You fit use am for the template page itself (inside <noinclude>...</noinclude> tags), but most times e better make you put am for the template {{documentation subpage}}.
How to change the default state
[edit source]To change the default state wey {{Collapsible option}} dey use, add the parameter |default=collapsed or |default=expanded depending on which one you want. To bring am back to the original default, remove any |default= parameter wey you add before.
The |default=collapsed option no suppose dey used for main article content for mainspace, like hiding tables of information or forcing too much extra details inside infoboxes.
This option fit dey used for navboxes, because navboxes no be part of article content per se.
Slashes and the nobase parameter
[edit source]If the template name wey you give to {{Collapsible option}} get forward-slash (virgule) character – / – then you go need add the parameter |nobase= (set am to Template:Kbd, Template:Kbd, or something similar) so the name go show correctly.
That one mean say {{PAGENAME}} go dey used instead of the default {{BASEPAGENAME}} to show the template name.
See also
[edit source]- {{Navbox documentation}}, wey include this template
- {{Collapsible lists option}}
- {{Collapsible sections option}}
- Collapsing tables and more