Extension:ToggleDisplay

Abstract
This extension allows to show and hide regions on a page by clicking on a link.

Installation
Copy the Source into a file extensions/ToggleDisplay/ToggleDisplay.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:

To change the defaults, you can redefine ExtToggleDisplay::$mDefaultArgs in your LocalSettings.php.

Variant
Toggledisplay can be used to do a link that show, when clicked, the hided text; this can be used for example for a simple FAQ page like in 101 modi per.... In this case hidetext will be equal to showtext. To do this you have to add this line to file source just after "extract" of toggleDisplay function.