Template:Collapsible

From Trinity Desktop Project Wiki
Revision as of 09:50, 8 June 2022 by Blu256 (talk | contribs) (Added collapsible box template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)