Extension:CollapsibleSections

This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
Category:Extensions by WikiTeq Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:MIT licensed extensions
MediaWiki extensions manual
CollapsibleSections
Release status: stableCategory:Stable extensions
Description Allows users to collapse and expand content sections on demand
Author(s) WikiWorks team
Maintainer(s) WikiTeq team
Latest version 0.0.1
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.Category:Extensions with long-term support release branches compatibility policy
MediaWiki 1.35+Category:Extensions with manual MediaWiki version
License MIT License
Download Category:Extensions in Wikimedia version control
  • $wgCollapsibleSectionsCollapsedByDefault
  • $wgCollapsibleSectionsEnableDesktop
  • $wgCollapsibleSectionsTag
Quarterly downloads 25 (Ranked 71st)
Translate the CollapsibleSections extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The CollapsibleSections extension allows collapsing and expanding content sections as user wants. This extension was created for WikiWorks.

Installation

  • Download and move the extracted CollapsibleSections folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CollapsibleSections
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'CollapsibleSections' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

This extension has 3 configuration parameters:

  • $wgCollapsibleSectionsCollapsedByDefault - enables collapsing of sections. Per default, collapsing is enabled. If you want to disable this option, set value to false
  • $wgCollapsibleSectionsEnableDesktop - enables collapsing of sections on desktop. It is disabled per default, but if you want to enable this, set value to true
  • $wgCollapsibleSectionsTag - (default is `h2`) sets the root section tag to be used for finding collapsible content

See also

Category:All extensions Category:BeforePageDisplay extensions Category:Extensions by WikiTeq Category:Extensions in Wikimedia version control Category:Extensions included in MyWikis Category:Extensions with invalid or missing type Category:Extensions with long-term support release branches compatibility policy Category:Extensions with manual MediaWiki version Category:Extensions without an image Category:MIT licensed extensions Category:ResourceLoaderGetConfigVars extensions Category:Stable extensions