MediaWiki extension CollapsibleSections

Clone this repo:
  1. 7bf50aa build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 by libraryupgrader · 6 weeks ago REL1_42 master
  2. d272271 build: Updating dependencies by libraryupgrader · 3 months ago
  3. 38ec1e6 Localisation updates from https://translatewiki.net. by Translation updater bot · 3 months ago
  4. d2af245 Localisation updates from https://translatewiki.net. by Translation updater bot · 8 months ago
  5. 70b5dda Localisation updates from https://translatewiki.net. by Translation updater bot · 9 months ago

CollapsibleSections

This extension (for MediaWiki) makes it possible for users to collapse and expand content sections. This feature is always available to mobile users, and can be configured to be available to desktop users as well.

Requirements

  • MediaWiki 1.35+

Installation

  • Clone the repository into extensions folder
  • Add wfLoadExtension( 'CollapsibleSections' ); to the bottom of your LocalSettings.php file

Configuration

  • $wgCollapsibleSectionsCollapsedByDefault — (default is true) sets whether sections should have the collapsed state on page load
  • $wgCollapsibleSectionsEnableDesktop — (default is false) sets whether extension should work on desktop views
  • $wgCollapsibleSectionsTag — (default is h2) sets the root section tag to be used for finding collapsible content

Development

  • Run npm i to install development dependencies
  • Run npm test to run tests