Template:Divhide/testcases

if preview

 * 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  .

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.

These are the hidden contents.

These are the hidden contents.

2nd parameter
The second unnamed parameter is used to specify the width.

These are the hidden contents, and the box only takes up 50% of the page.

These are the hidden contents, and the box only takes up 50% of the page.

width parameter
The  parameter may be used to specify the width.

These are the hidden contents, and the box only takes up 75% of the page.

These are the hidden contents, and the box only takes up 75% of the page.

show parameter
The parameter yes may be used to show the contents by default.

This section is shown by default.

This section is shown by default.

color parameter
The  parameter may be used to specify the background color.

The header of this section has different background color.

The header of this section has different background color.