Template:Divhide/testcases
| This is the template test cases page for the sandbox of Template:Divhide. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
if preview
|show=preview: will show in preview only.- {{divhide/sandbox}}
- show=preview
These are the hidden contents. Only show when in preview.
- show=yes
These are the hidden contents.
- test show=foo
These are the hidden contents.
- test show=foo notsandbox
These are the hidden contents.
Usage
- (from /doc page)
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}}.
1st parameter
The first unnamed parameter is used at the top for the title and at the bottom to mark the end of the hidden section.
{{divhide|Test}}
These are the hidden contents.
{{divhide|end}}
These are the hidden contents.
2nd parameter
The second unnamed parameter is used to specify the width.
{{divhide|Half test|50%}}
These are the hidden contents, and the box only takes up 50% of the page.
{{divhide|end}}
These are the hidden contents, and the box only takes up 50% of the page.
width parameter
The width parameter may be used to specify the width.
{{divhide|Width test|width=75%}}
These are the hidden contents, and the box only takes up 75% of the page.
{{divhide|end}}
These are the hidden contents, and the box only takes up 75% of the page.
show parameter
The parameter |show=yes may be used to show the contents by default.
{{divhide|Show test|show=yes}}
This section is shown by default.
{{divhide|end}}
This section is shown by default.
color parameter
The color parameter may be used to specify the background color.
{{divhide|Color test|color=#90EE90}}
The header of this section has different background color.
{{divhide|end}}
The header of this section has different background color.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.