Template:Divhide/doc
From FORwiki
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | |||
- | |||
=== Usage === | === 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>'''. | 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>'''. | ||
Line 39: | Line 37: | ||
=== See also === | === See also === | ||
- | *{{tl| | + | *{{tl|divbox}} - Allows you to create coloured text background. |
Current revision as of 18:17, 13 January 2010
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.