Template:Databox: Difference between revisions

Inthar (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 2: Line 2:
This template creates a collapsible text box. If you want the box to be expanded by default, set the parameter <code>defaultstate=expanded</code>.
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:
{{doc}}
 
<pre>
{{Databox|Title|
Contents
}}
</pre>
 
You get:
 
{{{{PAGENAME}}|Title|
Contents
}}
 
Note: To include the character <code>|</code>, it must be escaped as <code><nowiki>{{!}}</nowiki></code>, unless it appears inside preformatted text (such as a <nowiki><syntaxhighlight></nowiki> tag).


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>