Extension:ToggleDisplay2

Abstract
This extension allows to show and hide regions on a page by clicking on a link. It is an enhancement of ToggleDisplay by RV1971 and uses features of MediaWiki 1.16 that allow it to be used in templates.

Installation
Copy the Source into a file extensions/ToggleDisplay/ToggleDisplay2.php and add the following line to your LocalSettings.php:

Usage
The simplest usage is:

hidable text

What you will see is a link "[show details]" in small font and nothing else. When you click on the link, the hidable text will be shown and the link text changes to "[hide details]". When you click again, you return to the initial state.

The following optional parameters can be provided in the   tag: