Difference between revisions of "Template:Collapsible option/doc"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(updte, ce)
(Undid revision 493269694 by Funandtrvl (talk))
Line 3: Line 3:
 
The {{tlx|collapsible option}} template gives a standardised message for transclusion on template pages whose templates include a ''state'' parameter (through which their collapsibility may be managed).
 
The {{tlx|collapsible option}} template gives a standardised message for transclusion on template pages whose templates include a ''state'' parameter (through which their collapsibility may be managed).
  
===Usage===
 
 
It may be used on either the template page itself (wrapped within <tt><nowiki><noinclude></noinclude></nowiki></tt> tags), or on the template's {{tl|documentation}} subpage.
 
It may be used on either the template page itself (wrapped within <tt><nowiki><noinclude></noinclude></nowiki></tt> tags), or on the template's {{tl|documentation}} subpage.
 
To change the default from "autocollapse", use the {{para|state}} parameter.
 
 
===Examples===
 
====Default====
 
<code><nowiki>{{Collapsible option}}</nowiki></code><br>
 
will display as:<br>
 
{{Collapsible option}}
 
 
====Options====
 
To change the ''state'' default, use either "collapsed" or "expanded", as in the following:<br>
 
<code><nowiki>{{Collapsible option |state=collapsed}}</nowiki></code><br>
 
 
will display as:<br>
 
{{collapsible option|state=collapsed}}
 
  
 
===See also===
 
===See also===

Revision as of 12:47, 31 May 2012

The {{collapsible option}} 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 <noinclude></noinclude> tags), or on the template's {{documentation}} subpage.

See also