Template:Databox

From Xenharmonic Wiki
Revision as of 18:17, 30 January 2025 by ArrowHead294 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template creates a collapsible text box. If you want the box to be expanded by default, set the parameter defaultstate=expanded.

Usage

You type:

{{Databox
| Title
| Contents
}}

You get:

Title
Contents

To make a databox permanently expanded, pass collapse=false as follows:

{{Databox|collapse=false
| Title
| Contents
}}
Title
Contents

Note: Pipe characters (|) must be escaped as {{!}} or {{pipe}}, equals signs must be escaped as {{=}} (this may apply to tags as well, e.g. <div style{{=}}"…">), and other special characters and character sequences may need to be escaped accordingly, except for ones inside <nowiki>, <pre>, <math>, and <syntaxhighlight> tags.