Difference between revisions of "Template:Divhide/doc"
Jump to navigation
Jump to search
imported>Xeno m (fix cat) |
imported>RussBot m (Robot: moving pages out of redirected category) |
||
| 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:Wikipedia formatting templates|Divhide]] | + | [[Category:Wikipedia formatting and function templates|Divhide]] |
</includeonly> | </includeonly> | ||
Revision as of 06:05, 20 August 2008
| This is a documentation subpage for Template:Divhide. It contains usage information, categories and other content that is not part of the original template page. |
Usage
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}}
Test
This is the hidden contents.
{{divhide|Half test|50%}}
This is the hidden contents and only takes up 50% of the page.
{{divhide|end}}
Half Test
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}}
Show and test
This section is shown by default.
See also
- {{Divbox}} - allows you to create coloured text background