Changes

Jump to navigation Jump to search
1,145 bytes added ,  23:41, 16 January 2010
Created page with '{{Documentation subpage}} === Usage === This template will allow you to collapse a section of a page. The first parameter is the title of the collapse section, and the second (o…'
{{Documentation subpage}}

=== Usage ===
This template will allow you to collapse a section of a page. The first parameter is the title of the collapse section, and the second (optional parameter) is the width. To close the section, use '''<nowiki>{{divhide|end}}</nowiki>'''.

;Examples

<pre>
{{divhide|Test}}
These are the hidden contents.
{{divhide|end}}
</pre>

{{divhide|Test}}
These are the hidden contents.
{{divhide|end}}

<pre>
{{divhide|Half test|50%}}
These are the hidden contents, and the box only takes up 50% of the page.
{{divhide|end}}
</pre>

{{divhide|Half Test|50%}}
These are the hidden contents, and the box only takes up 50% of the page.
{{divhide|end}}

You may also use the parameter "show=yes" to show the contents by default.

<pre>
{{divhide|Show and test|show=yes}}
This section is shown by default.
{{divhide|end}}
</pre>

{{divhide|Show and test|show=yes}}
This section is shown by default.
{{divhide|end}}

=== See also ===
*{{tl|Divbox}} - allows you to create coloured text background
<includeonly>
[[Category:Collapse templates]]
[[Category:Wikipedia formatting and function templates|Divhide]]
</includeonly>
1,520

edits

Navigation menu