Jump to content

Template:Collapsible option/doc

From Wikipedia

{{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. (For more info, see Wikipedia:Manual of Style § Scrolling lists and collapsible content.)

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]