Template:Collapsible option/doc

Collapsible option provides a standardised message for transclusion on the pages of collapsible templates whose collapsibility may be managed by the parameter.

It may be used on either the template page itself (wrapped within  tags) or on the template's documentation subpage.

Indicating optional use of state name
The  parameter used to manage collapsible templates need not always be named explicitly, i.e. {{[Template name]|state}} can be the same as {{[Template name]|state&#61;state}}. To indicate this in the message, add the parameter optional. This modifies the message so that it reads (if it were used for itself):

(This possibility is enabled by including: If, however, the template includes collapsible sections within itself (e.g. Navbox with collapsible groups), then enabling this possibility may introduce ambiguity as regards what is to be collapsed or expanded. In those instances, therefore, the requirement to use state should be retained.)
 * as part of a collapsible template's  parameter – for instance, as state or state, etc.
 * , as part of a collapsible template's  argument – for instance, as state

Changing the default state reported
To change the default state reports in its second bullet-point, add the parameter collapsed or expanded accordingly. To restore the default report, remove any default previously included.

nobase
If the template name given to includes a (forward-)slash character ("/"), the parameter nobase (set to "on", "true", etc.) will need to be added so that the name is displayed correctly (i.e. so that  rather than the default  is used to display it).