Template:Databox/doc: Difference between revisions

ArrowHead294 (talk | contribs)
Make doc page
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}
This template creates a collapsible text box. If you want the box to be expanded by default, set the parameter <code>defaultstate=expanded</code>.
=== Usage ===
You type:  
You type:  


Line 16: Line 19:
}}
}}


Note: To include the pipe ({{!}}) character, it must be escaped as <code>{{((}}!{{))}}</code>, unless it appears inside preformatted text (such as a <code><syntaxhighlight></code> tag).
To make a databox permanently expanded, pass <code>collapse=false</code> as follows:
 
<pre>
{{Databox|collapse=false
| Title
| Contents
}}
</pre>
 
{{{{ROOTPAGENAME}}|collapse=false
| Title
| Contents
}}
 
{{Escape notice}}