FANDOM


Template documentation (for the template shown above, sometimes hidden or invisible)

This template creates a section of collapsible and expandable content.

Usage

{{Collapsible content|style=font-family:verdana;|style hidden=font-family:arial;|show=Click to see more...|hide=Close|
*Content placed here will always show on page load. This section accepts [[Help:Wikitext|wiki markup language]].
|
*Content placed here will always be hidden on page load and only show when the "expand" link is clicked. This section also accepts [[Help:Wikitext|wiki markup language]].
}}

Parameters

Icon required
<unnamed1>
Content that you wish to always show on page load.
Icon optional
<unnamed2>
Content that you wish to show hidden on page load, but be visible once the "expand" link is clicked.
Icon optional
show
Text defined in this parameter will overwrite the standard mw-collapsible "expand" link text.
Icon optional
hide
Text defined in this parameter will overwrite the standard mw-collapsible "collapse" link text.
Icon optional
style
CSS style elements placed here will effect the non-collapsible content section, and the collapsible content section if {{{style hidden}}} is not defined.
Icon optional
style hidden
CSS style elements placed here will effect the collapsed on page load content section only.

Examples

{{Collapsible content|
*Content placed here will always show on page load. This section accepts [[Help:Wikitext|wiki markup language]].
|
*Content placed here will always be hidden on page load and only show when the "expand" link is clicked. This section also accepts [[Help:Wikitext|wiki markup language]].
}}

results in:

  • Content placed here will always be hidden on page load and only show when the "expand" link is clicked. This section also accepts wiki markup language.
{{Collapsible content|style=font-family:verdana;|style hidden=font-family:arial;|show=Click to see more...|hide=Close|
*Content placed here will always show on page load. This section accepts [[Help:Wikitext|wiki markup language]].
|
*Content placed here will always be hidden on page load and only show when the "expand" link is clicked. This section also accepts [[Help:Wikitext|wiki markup language]].
}}

results in:

  • Content placed here will always be hidden on page load and only show when the "expand" link is clicked. This section also accepts wiki markup language.
Documentation transcluded from Template:Collapsible content/doc.
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+