Templat:Divhide
Penggunaan[sunting sumber]
Template ini akan memungkinkan Anda untuk menutup bagian dari halaman. Parameter pertama adalah judul bagian runtuh, dan yang kedua (parameter opsional) adalah lebarnya. Untuk menutup bagian, gunakan {{divhide|end}}
.
parameter 1[sunting sumber]
Parameter tanpa nama pertama digunakan di bagian atas untuk judul dan di bagian bawah untuk menandai bagian akhir yang tersembunyi.{{divhide|Test}} These are the hidden contents. {{divhide|end}}
Test
These are the hidden contents.
parameter 2[sunting sumber]
Parameter tanpa nama kedua digunakan untuk menentukan lebar.
{{divhide|Half test|50%}} These are the hidden contents, and the box only takes up 50% of the page. {{divhide|end}}
Half test
These are the hidden contents, and the box only takes up 50% of the page.
width[sunting sumber]
Parameter width
{{divhide|Width test|width=75%}} These are the hidden contents, and the box only takes up 75% of the page. {{divhide|end}}
Width test
These are the hidden contents, and the box only takes up 75% of the page.
show[sunting sumber]
Parameter |show=yes
{{divhide|Show test|show=yes}} This section is shown by default. {{divhide|end}}
Show test
This section is shown by default.
color[sunting sumber]
{{divhide|Color test|color=#90EE90}} The header of this section has different background color. {{divhide|end}}
Color test
The header of this section has different background color.
Lihat pula[sunting sumber]
- {{Divbox}}
- {{Collapse}}, {{Collapse top}} dan {{Collapse bottom}}
- {{Hidden}}, {{Hidden begin}} dan {{Hidden end}}
- {{Show}}