Template:Databox: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<div class="toccolours mw-collapsible mw-collapsed" style="width:600px; overflow:auto;">'''{{{1|{{{title}}} }}}'''<div class="mw-collapsible-content">{{{2|{{{text}}} }}}</div></div>
<includeonly><div class="toccolours mw-collapsible mw-collapsed" style="width:600px; overflow:auto;">'''{{{1|{{{title}}} }}}'''<div class="mw-collapsible-content">{{{2|{{{text}}} }}}</div></div></includeonly><noinclude>
This template creates a collapsible text box.
 
You type:
 
<pre>
{{Databox|Title|
Contents
}}
</pre>
 
You get:
 
{{{{FULLPAGENAME}}|Title|
Contents
}}
 
Note: To include the character <code>|</code>, it must be escaped as <code><nowiki>{{!}}</nowiki></code>.
</noinclude>

Revision as of 13:17, 22 June 2021

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 {{!}}.