Template:Collapsible option/testcases

From WikiProjectMed
Jump to navigation Jump to search


Note: Section headers here are not part of the sandbox code; bold text is.

Purge

Default

Default
{{Collapsible option}}

{{Collapsible option}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.

{{Collapsible option/sandbox}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.

Collapsed

Collapsed
{{Collapsible option |default=collapsed}}

{{Collapsible option}}

This template's initial visibility currently defaults to collapsed, meaning that it is hidden apart from its title bar.

To change this template's initial visibility, the |state= parameter may be used:

  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.
  • {{Collapsible option|state=autocollapse}} will show the template autocollapsed, i.e. 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, but if not, it is fully visible.

{{Collapsible option/sandbox}}

This template's initial visibility currently defaults to collapsed, meaning that it is hidden apart from its title bar.

To change this template's initial visibility, the |state= parameter may be used:

  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.
  • {{Collapsible option|state=autocollapse}} will show the template autocollapsed, i.e. 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, but if not, it is fully visible.

Expanded

Expanded
{{Collapsible option |default=expanded}}

{{Collapsible option}}

This template's initial visibility currently defaults to expanded, meaning that it is fully visible.

To change this template's initial visibility, the |state= parameter may be used:

  • {{Collapsible option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=autocollapse}} will show the template autocollapsed, i.e. 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, but if not, it is fully visible.

{{Collapsible option/sandbox}}

This template's initial visibility currently defaults to expanded, meaning that it is fully visible.

To change this template's initial visibility, the |state= parameter may be used:

  • {{Collapsible option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=autocollapse}} will show the template autocollapsed, i.e. 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, but if not, it is fully visible.

Addenda

Align
{{Collapsible option |align=yes}}

{{Collapsible option}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.
|align=value is also available; where value can be either right or left. The default is center.

{{Collapsible option/sandbox}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.
|align=value is also available; where value can be either right or left. The default is center.
Title background
{{Collapsible option |title-background=yes}}

{{Collapsible option}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.
|title-background=value is also available; where value can be either navbox or a color. The default is none, and navbox defaults to the default navbox color.

{{Collapsible option/sandbox}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.
|title-background=value is also available; where value can be either navbox or a color. The default is none, and navbox defaults to the default navbox color.
Width
{{Collapsible option |width=yes}}

{{Collapsible option}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.
|width=value is also available; where value can be either N [em/%/px] or auto. The default is 100%.

{{Collapsible option/sandbox}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.
|width=value is also available; where value can be either N [em/%/px] or auto. The default is 100%.

Set title=(blank)

{{Collapsible option/sandbox|title=}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.

Set title=My Title

{{Collapsible option/sandbox|title=My Title}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.

Set title=...

{{Collapsible option/sandbox|title=;Parameter option {{para|state}}}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.

Set outside section

Setting |title= to suppress
the section title (=== ===) is added in the page (not by the template)
{{Collapsible option/sandbox|title=}}

Section header about state

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.

Current live version

{{Collapsible option}}

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 option|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Collapsible option|state=expanded}} will show the template expanded, i.e. fully visible.