Extension:CollapsableText

Description
CollapsableText is an extension of Mediawiki to create automatically portions of text which are collapsable.

Installation

 * 1) Download CollapsableText,
 * 2) Unpack the archive in your Mediawiki directory
 * 3) add require_once('extensions/CollapsableText/CollapsableText.php'); in your LocalSettings.php.
 * 4) You should skip this step if your Mediawiki installation directory is the same as your Apache document directory.
 * Icons used by this extensions should be accessible from the web client navigator. Icons are inside the directory.
 * You must make this directory accessible from a browser with the URL :
 * on Unix operating systems (including MacOS X):
 * on other operating systems (including Windows&reg;): copy the content of  into

General Usage
CollapsableText extension provides only one HTML tag: &lt;collapsetext/&gt;. This tag permits to mark some part of the wikitext as collapsable:

'''&lt;collapsetext&gt;This is the Title (always visible). This is the collapsed text (visible when not collapse).&lt;/collapsetext&gt;'''

The text inside &lt;collapsetext/&gt; is parsed to detect a part which must be always visible and a part will could be invisible. The rules to detect both parts are (in preferred order):
 * 1) The first occurrence of the tag &lt;collapsetext/&gt; is the limit between the two parts. Example: &lt;collapsetext&gt;ABC. DEF.&lt;collapse&gt;GHI.&lt;/collapsetext&gt;
 * 2) The first part is enclosed by braces. Example: &lt;collapsetext&gt;{ABC. DEF.} GHI.&lt;/collapsetext&gt;
 * 3) The first part is the first sentence (first occurrence of the point). Example: &lt;collapsetext&gt;ABC. DEF. GHI.&lt;/collapsetext&gt;

Tag Parameters
Tag &lt;collapsetext/&gt; accepts parameters:
 * or : permits to force the visibility flag when showing up the page (default is  );
 * : permits to change the CSS class associated to the first part of the text (default is );
 * : permits to change the CSS class associated to the second part of the text (default is ).