Jump to content

Template:Divhide/doc

From Meta, a Wikimedia project coordination wiki

Usage

[edit]

This template will allow you to collapse a section of a page. The first paramater is the title of the collapse section, and the second (optional paramater) is the width. To close the section, use {{divhide|end}}.

Examples
{{divhide|Test}}
This is the hidden contents.
{{divhide|end}}
 

This is the hidden contents.

{{divhide|Half test|50%}}
This is the hidden contents and only takes up 50% of the page.
{{divhide|end}}
 

This is the hidden contents and only takes up 50% of the page.

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

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

This section is shown by default.

See also

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