Template:Databox: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class="toccolours mw-collapsible {{#ifeq:{{{defaultstate}}}|expanded||mw-collapsed}}" style="overflow:auto;">'''{{{1|{{{title}}} }}}'''<div class="mw-collapsible-content">{{{2|{{{text}}} }}}</div></div></includeonly><noinclude> | <includeonly><div class="toccolours mw-collapsible {{#ifeq:{{{defaultstate|}}}|expanded||mw-collapsed}}" style="overflow:auto;">'''{{{1|{{{title}}} }}}'''<div class="mw-collapsible-content">{{{2|{{{text}}} }}}</div></div></includeonly><noinclude> | ||
This template creates a collapsible text box. | This template creates a collapsible text box. If you want the box to be expanded by default, set the parameter <code>defaultstate=expanded</code>. | ||
You type: | You type: | ||
Revision as of 21:17, 7 February 2024
This template creates a collapsible text box. If you want the box to be expanded by default, set the parameter defaultstate=expanded.
You type:
{{Databox|Title|
Contents
}}
You get:
Title
Contents
Note: To include the character |, it must be escaped as {{!}}, unless it appears inside preformatted text (such as a <syntaxhighlight> tag).