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

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(div)
imported>Sardanaphalus
(update)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
===Usage===
 
===Usage===
 
<pre>
 
<pre>
{{collapsible sections option
+
{{Collapsible sections option
|list =  
+
| list =  
|example =
+
| example =
 +
| default =  
 
}}
 
}}
 
</pre>
 
</pre>
 +
Parameters ''example'' and ''default'' are optional.
  
 
====Example====
 
====Example====
(from [[Template:American Civil War]])
 
 
<pre>
 
<pre>
{{collapsible sections option
+
{{Collapsible sections option
|list = "Origins", "CTCBS", "Leaders", "After", "RTC" or "Sisters"
+
| list = overview, "two-word groupname", concepts, details, related
|example = Leaders
+
| example = two-word groupname
 +
| default = overview
 
}}
 
}}
 
</pre>
 
</pre>
 
produces:
 
produces:
 
<div style="clear:both;background:whitesmoke;">
 
<div style="clear:both;background:whitesmoke;">
{{collapsible sections option
+
{{Collapsible sections option |list=overview, "two-word groupname", concepts, details, related |example=two-word groupname |default=overview}}
|list = "Origins", "CTCBS", "Leaders", "After", "RTC" or "Sisters"
 
|example = Leaders
 
}}
 
 
</div>
 
</div>
  

Revision as of 09:46, 15 May 2014

Usage

{{Collapsible sections option
| list = 
| example = 
| default = 
}}

Parameters example and default are optional.

Example

{{Collapsible sections option
| list = overview, "two-word groupname", concepts, details, related
| example = two-word groupname
| default = overview
}}

produces:

How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following words that identify the groups/sections (omit any speech or quotation marks):
  • overview, "two-word groupname", concepts, details, related
  • For example: {{Collapsible sections option/doc |two-word groupname}}
  • The group/section named overview has been set to be visible when the template appears.

See also