Template:collapse

From Wiktionary, the free dictionary
Jump to navigation Jump to search

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

Code:

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

Result:

Available parameters

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