mediawiki/extensions/CollapsibleSections - Gitiles

MediaWiki extension CollapsibleSections

Clone this repo:
  1. 06c84bf build: Updating micromatch to 4.0.8 by libraryupgrader · 8 weeks ago master
  2. 022f376 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0 by libraryupgrader · 10 weeks ago
  3. c028aff Localisation updates from https://translatewiki.net. by Translation updater bot · 3 months ago
  4. fd3ba89 build: Updating npm dependencies by libraryupgrader · 4 months ago
  5. 05522d5 build: Updating npm dependencies by libraryupgrader · 5 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