Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Installation

Requires Mediawiki 1.25 or higher, as we use extension registration. Just do thestandard phrase in your LocalSettings.php:

wfLoadExtension("HideSection" );

Configuration

  • $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

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp