Template:collapse/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:collapse. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template is a simple wrapper for {{box-top}} / {{box-bottom}}. The templates have the same appearance, but {{collapse}} takes the box content as a parameter, instead of the content being sandwiched between the two separate templates.

Usage

[edit]

Code:

{{collapse|title=My title|
* Some collapsible content
* Another entry
}}

Result:

Available parameters

[edit]
  • content (defaults to the first unnamed parameter)
  • title (defaults to the second unnamed parameter)
  • bg — background color for the title bar