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

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(→‎Usage: parameter name)
imported>Sardanaphalus
(correction (listnames not optional))
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-----
 
Note: Please only add metadata (e.g. categories) within the <includeonly> section at the bottom of this page.
 
------>
 
 
* When this template is [[Wikipedia:Transclusion|transcluded]], the texts within square brackets will either not appear or be replaced accordingly.
 
* When this template is [[Wikipedia:Transclusion|transcluded]], the texts within square brackets will either not appear or be replaced accordingly.
  
 
===Usage===
 
===Usage===
 
<pre>
 
<pre>
{{collapsible lists option
+
{{Collapsible lists option
|listnames =  
+
| listnames =  
|example =    <!--(one of the listnames)-->
+
| example =    <!--(one of the listnames)-->
|default =    <!--("all" or a listname, if either set to be shown)-->
+
| default =    <!--("all" or a listname, if either set to be shown)-->
 
}}
 
}}
 
</pre>
 
</pre>
The parameters are all optional.
+
Parameters ''example'' and ''default'' are optional.
  
 
===See also===
 
===See also===

Revision as of 12:42, 10 May 2014

  • When this template is transcluded, the texts within square brackets will either not appear or be replaced accordingly.

Usage

{{Collapsible lists option
| listnames = 
| example =     <!--(one of the listnames)-->
| default =     <!--("all" or a listname, if either set to be shown)-->
}}

Parameters example and default are optional.

See also