From PinataIsland.info, the Viva Piñata wiki
|
|
(2 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | <includeonly> | + | <includeonly>{| class="navbox collapsible collapsed" style="text-align: left; border: 0px; margin-top: 0.2em;" |
− | {{ #ifeq: {{{1}}} | end | </div></div> |
| + | |- |
− | <div class="NavFrame" style="width:{{{2|100%}}}"><div class="NavHead"
| + | ! style="background-color: #87CEEB;" | {{{1|Title}}} |
− | 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="border: solid 1px silver; padding: 8px; background-color: white;" |</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>
| |
Latest revision as of 16:18, 23 August 2008