Difference between revisions of "User:Xenocidic/UX/hide"
From PinataIsland.info, the Viva Piñata wiki
< User:Xenocidic | UX
(source http://en.wikipedia.org/w/index.php?title=Template:Divhide&oldid=224148465 by User:Xenocidic) |
(document source http://en.wikipedia.org/w/index.php?title=Template:Divhide/doc&oldid=224148564 by User:Xenocidic) |
||
Line 4: | Line 4: | ||
style="background:87 CE EB;">{{{1}}}</div><div class="NavContent" | style="background:87 CE EB;">{{{1}}}</div><div class="NavContent" | ||
style="display:{{#ifeq:{{{show}}}|yes|show|none}}; text-align:left; background:240 248 255;"> | style="display:{{#ifeq:{{{show}}}|yes|show|none}}; text-align:left; background:240 248 255;"> | ||
− | }}</includeonly> | + | }}</includeonly><noinclude> |
− | < | + | === 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 '''<nowiki>{{divhide|end}}</nowiki>'''. | ||
+ | |||
+ | ;Examples | ||
+ | |||
+ | <pre> | ||
+ | {{divhide|Test}} | ||
+ | This is the hidden contents. | ||
+ | {{divhide|end}} | ||
+ | </pre> | ||
+ | |||
+ | {{divhide|Test}} | ||
+ | This is the hidden contents. | ||
+ | {{divhide|end}} | ||
+ | |||
+ | <pre> | ||
+ | {{divhide|Half test|50%}} | ||
+ | This is the hidden contents and only takes up 50% of the page. | ||
+ | {{divhide|end}} | ||
+ | </pre> | ||
+ | |||
+ | {{divhide|Half Test|50%}} | ||
+ | This is the hidden contents and only takes up 50% of the page. | ||
+ | {{divhide|end}} | ||
+ | |||
+ | You may also use the paramater "show=yes" to show the contents by default. | ||
+ | |||
+ | <pre> | ||
+ | {{divhide|Show and test|show=yes}} | ||
+ | This section is shown by default. | ||
+ | {{divhide|end}} | ||
+ | </pre> | ||
+ | |||
+ | {{divhide|Show and test|show=yes}} | ||
+ | This section is shown by default. | ||
+ | {{divhide|end}} | ||
+ | </noinclude> |
Revision as of 17:43, 22 August 2008
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}}
Template:Divhide This is the hidden contents. Template:Divhide
{{divhide|Half test|50%}} This is the hidden contents and only takes up 50% of the page. {{divhide|end}}
Template:Divhide This is the hidden contents and only takes up 50% of the page. Template:Divhide
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}}
Template:Divhide This section is shown by default. Template:Divhide