Template:Databox: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Remove fixed width
Inthar (talk | contribs)
mNo edit summary
Line 1: Line 1:
<includeonly><div class="toccolours mw-collapsible 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.  



Revision as of 21:15, 7 February 2024

This template creates a collapsible text box.

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).