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.
extensions
folderwfLoadExtension( 'CollapsibleSections' );
to the bottom of your LocalSettings.php
file$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 contentnpm i
to install development dependenciesnpm test
to run tests