Difference between revisions of "Template:Collapsible sections option/doc"
Jump to navigation
Jump to search
imported>Sardanaphalus (div) |
imported>Sardanaphalus (update) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{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 |
| − | + | | list = | |
| − | + | | example = | |
| + | | default = | ||
}} | }} | ||
</pre> | </pre> | ||
| + | Parameters ''example'' and ''default'' are optional. | ||
====Example==== | ====Example==== | ||
| − | |||
<pre> | <pre> | ||
| − | {{ | + | {{Collapsible sections option |
| − | + | | list = overview, "two-word groupname", concepts, details, related | |
| − | + | | 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 |list=overview, "two-word groupname", concepts, details, related |example=two-word groupname |default=overview}} |
| − | |||
| − | |||
| − | }} | ||
</div> | </div> | ||
Revision as of 09:46, 15 May 2014
| File:Edit-copy green.svg | This is a documentation subpage for Template:Collapsible sections option. It contains usage information, categories and other content that is not part of the original template page. |
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
|namewhere 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
overviewhas been set to be visible when the template appears.
See also