This is the documentation page for Collapsible.
It contains usage information, categories, and other content not part of the original template page.

Create a collapsible using collapsible elements.

Syntax

{{Collapsible|collapsible content|button text|collapsed = set to 1 to collapsed}}

Examples

{{Collapsible}} yields:

Placeholder Content

{{Collapsible|This content is visible by default|Default Expanded}} yields:

This content is visible by default

{{Collapsible|This content is not visible by default|Press me to see content|collapsed = 1}} yields:

Template Data

Create a collapsible using Collapsible elements.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Collapsible Content1

The content to display in collapsible.

Default
Placeholder Content
Stringsuggested
Button Text2

Text to display on collapsible toggle.

Default
Placeholder Button
Stringsuggested
Set Collapsedcollapsed

Set to "1" to display content as collapsed.

Booleanoptional
Expand Button Textexpand_text

Text prompt on button text expand.

Default
Placeholder Button
Stringoptional
Collapse Button Textcollapse_text

Text prompt on button to collapse.

Default
Placeholder Button
Stringoptional
Expand Arrow Textexpand_arrow

Text on sides of button text to expand.

Default
Stringoptional
Collapse Arrow Textcollapse_arrow

Text on sides of button text to collapse.

Default
Stringoptional
No Arrow Textno_arrow

Set to "1" to hide sides of button text.

Booleanoptional
No Left Arrow Textno_left_arrow

Set to "1" to hide left side of button text.

Booleanoptional
No Right Arrow Textno_right_arrow

Set to "1" to hide right side of button text.

Booleanoptional
Collapsible's CSSstyle

Custom CSS to apply on the collapsible element, without enclosing quotation marks

Example
padding-top: 10px
Stringsuggested