Manual:Collapsible elements

jQuery.makeCollapsible

 * See also jQuery.makeCollapsible documentation for more information about how it works.

Add the class " " to an element.

For example: Gives: This text is collapsible.

To set the initial state as collapsed add " ", such as seen in the following table:

You can specify which part is the collapsible content.

Gives: This text is not collapsible; but the next is collapsible and hidden by default:

Example
Result:

Source (javascript)
Copy and paste the following text into your wiki's MediaWiki:Common.js (or, if you have Gadgets extension installed, create a gadget for it).

Example
Hello world

Result: Hello world

Source (javascript)
Copy and paste the following text into your wiki's MediaWiki:Common.js (or, if you have Gadgets extension installed, create a gadget for it).