Template:Databox

From Xenharmonic Reference
Revision as of 19:25, 8 April 2026 by Inthar (talk | contribs) (Created page with "<includeonly><div class="toccolours {{#ifeq: {{{collapse|}}}|false||mw-collapsible {{#ifeq: {{{defaultstate|}}}|expanded||mw-collapsed}}}}" style="overflow: auto;">'''{{{1|{{{title|}}}}}}'''{{#if: {{{2|{{{text|}}}}}}|<div class="mw-collapsible-content">{{{2|{{{text}}}}}}</div>|}}</div></includeonly><noinclude> {{documentation}} Category:Templates </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<templatestyles src="documentation/styles.css" />

Template documentation[view] [edit] [history] [purge]

Template:Dochead 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

Template:Escape notice