Template:Divhide

Revision as of 23:41, 16 January 2010 by Bench (talk | contribs) (Created page with '<includeonly>{{#ifeq:{{{1}}}|end|</div></div>| <div class="NavFrame {{#ifeq:{{{show}}}|yes||collapsed}}" {{#if:{{{2|}}}|style="width:{{{2}}}"}}><div class="NavHead">{{{1}}}</div>…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[edit]
Error creating thumbnail: Unable to save thumbnail to destination
Template documentation

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 {{divhide|end}}.

Examples
{{divhide|Test}}
These are the hidden contents.
{{divhide|end}}
{{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.

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

See also

  • {{Divbox}} - allows you to create coloured text background