- Notifications
You must be signed in to change notification settings - Fork3
A Mediawiki extension to: Collapse sections of text under headers
License
NotificationsYou must be signed in to change notification settings
labster/HideSection
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Mediawiki extension that adds links on each header to collapse the section.This allows users to easily wade through long wiki pages and jump to the sectionthey want to read.
This extension hides sections hierarchically. That means if you hide a top levelheader, any headers below it are automatically hidden. Additionally, there is a"show all"/"hide all" button.
Requires Mediawiki 1.25 or higher, as we use extension registration. Just do thestandard phrase in your LocalSettings.php:
wfLoadExtension("HideSection" );
- $wgHideSectionImages - Use these images as hide/show links. Default is null.If this array is set, images will be added according the the place marked inlocation. Location "begin" is before the first text of the header, while "end"places it at the very end of the header.
$wgHideSectionImages = ["show" =>"https://upload.wikimedia.org/wikipedia/commons/f/f7/Arrow-down-navmenu.png","hide" =>"https://upload.wikimedia.org/wikipedia/commons/0/01/Arrow-up-navmenu.png","location" =>"begin"# or "end"];
- $wgHideSectionHideText - If set to a true value, text show/hide links aredisabled. Useful whenonly images are wanted.
- $wgHideSectionTitleLink - If set to a true value, adds a show all/hide allto the right of the page title.
About
A Mediawiki extension to: Collapse sections of text under headers
Resources
License
Stars
Watchers
Forks
Packages0
No packages published