Template:Collapsible sections option/testcases

From Wikipedia, the free encyclopedia


Within Template:Documentation[edit]

using hlist[edit]

{{Sandbox}}


{{Main template}}


Followed by Template:Collapsible option[edit]

{{Sandbox}}


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):
    • 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}}


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):
    • 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:

Collapsible group/section

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").