From mediawiki.org
This page is a translated version of the page Extension:HideSection and the translation is 29% complete.
Other languages:
मीडियाविकि एक्सटेंशन मैन्युअल
OOjs UI icon advanced.svg
प्रकाशन की स्थिति: बीटा
कार्यान्वयन सदस्य इंटरफ़ेस, स्किन
विवरण A MediaWiki extension that adds links on each header to hide/show the section.
लेखक Brent Laabs (BrentLaabsवार्ता)
MediaWiki 1.25+
PHP 5.5+
डेटाबेस बदलता है नहीं
लाइसेंस MIT लाइसेंस
डाउनलोड करें
उदाहरण allthetropes.org
$wgHideSectionImages, $wgHideSectionHideText, $wgHideSectionTitleLink

उपयोग और संस्करण के मैट्रिक्स को देखें

HideSection is a MediaWiki extension that adds links on each header to collapse and expand the section. This allows users to easily wade through long wiki pages and jump to the section they want to read.

This extension hides sections hierarchically. That means if you hide a top level header, any headers below it are automatically hidden. Typically, the header will display a "show" or "hide" link next to the edit link, though this can be configured to display an image instead. Additionally, there is a "show all"/"hide all" button, either on the first header or next to the page title.

For reporting an issue or a bug, please use Miraheze Phabricator.


  • फाइलों को Download और अपने extensions/ फोल्डर के HideSection नामक डिरेक्ट्री में डालें।
  • अपनी $LocalSettings के नीचे निम्नलिखित कोड जोड़ें:
    wfLoadExtension( 'HideSection' );
  • Yes पूर्ण – अपने विकि पर Special:Version पर जाकर देखें कि एक्सटेंशन को सफलतापूर्वक स्थापित किया गया है कि नहीं।


Use these images as hide/show links. Default is null. If this array is set, images will be added according the place marked in location. 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/b/bc/Vector_right_arrow_link.png",
	"hide" => "https://upload.wikimedia.org/wikipedia/commons/2/27/Vector_down_arrow_link.png",
	"location" => "begin" # or "end"
If set to a true value, text show/hide links are disabled. Useful when only images are wanted.
If set to a true value, adds a show all/hide all button to the right of the page title.

ज्ञात पहलु

  • Strange interaction with disabled VisualEditor:

टास्क T146564

  • Prevents hiding of sections with Skin:Minerva, which is actually a default feature of that skin.

यह भी देखें