Template:Collapsible sections option/testcases
This is the template test cases page for the sandbox of Template:Collapsible sections option. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Within Template:Documentation
[edit]using hlist
[edit]{{Sandbox}}
- 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 name"
- concepts
- details
- related
- For example:
{{Collapsible sections option/testcases |two-word name}}
- The group/section named
overview
has been set to be visible when the template appears.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Main template}}
- 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 name"
- concepts
- details
- related
- For example:
{{Collapsible sections option/testcases |two-word name}}
- The group/section named
overview
has been set to be visible when the template appears.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Followed by Template:Collapsible option
[edit]{{Sandbox}}
- 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): - item1
- item2
- item3
This template's initial visibility currently defaults to autocollapse
, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
{{Collapsible sections option|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{Collapsible sections option|state=expanded}}
will show the template expanded, i.e. fully visible.
{{Main template}}
- 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): - item1
- item2
- item3
This template's initial visibility currently defaults to autocollapse
, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
{{Collapsible sections option|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{Collapsible sections option|state=expanded}}
will show the template expanded, i.e. fully visible.
Single section
[edit]{{Collapsible sections option/sandbox |name}}
produces:
If, by default, this template's collapsible group/section is hidden ("collapsed") when the template is shown, use {{Collapsible sections option/testcases |name}}
to set it to be visible ("expanded", "uncollapsed").