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

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(→‎See also: sandbox non-categorisation)
imported>Sardanaphalus
(sandbox handling)
Line 21: Line 21:
 
produces:
 
produces:
 
<div style="clear:both;background:whitesmoke;">
 
<div style="clear:both;background:whitesmoke;">
{{Collapsible sections option |list=overview, "two-word groupname", concepts, details, related |example=two-word groupname |default=overview}}
+
{{Collapsible sections option{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
 +
| list = overview, "two-word groupname", concepts, details, related
 +
| example = two-word groupname
 +
| default = overview
 +
}}
 
</div>
 
</div>
  

Revision as of 11:32, 7 July 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