Difference between revisions of "Template:Divhide/doc"

From blackwiki
Jump to navigation Jump to search
imported>Iritscen
m (typo + grammar fixes)
imported>RockMFR
(+Category:Collapse templates)
Line 41: Line 41:
 
*{{tl|Divbox}} - allows you to create coloured text background
 
*{{tl|Divbox}} - allows you to create coloured text background
 
<includeonly>
 
<includeonly>
 +
[[Category:Collapse templates]]
 
[[Category:Wikipedia formatting and function templates|Divhide]]
 
[[Category:Wikipedia formatting and function templates|Divhide]]
 
</includeonly>
 
</includeonly>

Revision as of 03:30, 24 August 2009

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}}
Test

These are the hidden contents.

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

These are the hidden contents, and the box only takes up 50% of the page.

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}}
Show and test

This section is shown by default.

See also

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