Template:Collapsible

From Trinity Desktop Project Wiki
Jump to navigation Jump to search

Template:Collapsible is a simple collapsible box with a caption.

This template is based on this entry of the MediaWiki manual.

Usage

To use this template, use {{Collapsible|caption=...|content=...|width=...}} on the target page.

  • caption (required) is the collapsible box caption;
  • content (required) is the collapsible box contents;
  • width (optional) is the collapsible box's width (default: 400px, can be any CSS unit).


Examples

{{Collapsible
 |caption=Listing 1.1
 |content=(Some source code here)
}}
Listing 1.1
(Some source code here)