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.
- MediaWiki 1.35+
- Clone the repository into
extensionsfolder - Add
wfLoadExtension( 'CollapsibleSections' );to the bottom of yourLocalSettings.phpfile
$wgCollapsibleSectionsCollapsedByDefault— (default istrue) sets whether sections should have the collapsed state on page load$wgCollapsibleSectionsEnableDesktop— (default isfalse) sets whether extension should work on desktop views$wgCollapsibleSectionsTag— (default ish2) sets the root section tag to be used for finding collapsible content
- Run
npm ito install development dependencies - Run
npm testto run tests