Recent News
All news
2024-09-24 | Maven 3.9.9 |
2024-08-13 | Noble Numbat |
2024-06-21 | Maven 3.9.8 |
2024-02-02 | Maven 3.9.6 |
2023-10-11 | P2 repository deleted |
2023-10-10 | Maven 3.9.5 |
Search
Mailing List
MediaWiki Extension CollapsableText
CollapsableText is an extension of MediaWiki to create automatically portions of text which are collapsable.
Installation
- Download CrossReference,
- Unpack the archive in your Mediawiki directory
- add
require_once($IP.'/extensions/CollapsableText/CollapsableText.php');
in yourLocalSettings.php
. - 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
extensions/CollapsableText/public
. You must make this directory accessible from a browser with the URL/extensions/CollapsableText/
:- on Unix operating systems (including MacOS X):
$> ln -s /path/to/mediawiki/extensions/CollapsableText/public /path/to/apache/document/root/wiki/extensions/CollapsableText
- on other operating systems (including Windows®): copy the content of
/path/to/mediawiki/extensions/CollapsableText/public
into/path/to/apache/document/root/wiki/extensions/CollapsableText
- on Unix operating systems (including MacOS X):
Usage
General Usage
CollapsableText extension provides only one HTML tag: <collapsetext>. This tag permits to mark some part of the wikitext as collapsable:<collapsetext>This is the Title (always visible). This is the collapsed text (visible when not collapse).</collapsetext>
The text inside <collapsetext/> is parsed to detect a part which must be always visible and a part will should be invisible. The rules to detect both parts are (in prefered order):
- The first occurrence of the tag <collapse> is the limit between the two parts.
Example:<collapsetext>ABC. DEF.<collapse>GHI.</collapsetext>
,ABC. DEF. - The first part is enclosed by braces.
Example:<collapsetext>ABC. DEF. GHI.</collapsetext>
,ABC. DEF. - The first part is the first sentence (first occurrence of the point).
Example:<collapsetext>ABC. DEF. GHI.</collapsetext>
,ABC.
Tag Parameters
Tag <collapsetext/> accepts parameters:
show="true"
orshow="false"
: permits to force the visibility flag when showing up the page (default isfalse
);titleclass="css_style"
: permits to change the CSS class associated to the first part of the text (default iscollapsedtexttitle
);bodyclass="css_style"
: permits to change the CSS class associated to the second part of the text (default iscollapsedtextbody
).
Details
- Main authors: GALLAND Stéphane
- License: GPL
- Implementation: Php
- Stable Version: 1.0