Template:Collapsible option/doc

The  template gives a standardised message for transclusion on template pages whose templates include a state parameter (through which their collapsibility may be managed).

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
If, in a template where has been transcluded, that template's state parameter has been enabled such that it need not be named when the template is called – i.e., the state parameter includes , e.g.:
 * or
 * etc
 * etc
 * etc

then:

removes the instances of state from the message, and will appear as:

Changing default
To change the state default from "autocollapse", use either "collapsed" or "expanded", as in the following:



This will appear as: