Extension:CollapsibleSections

From mediawiki.org
Jump to navigation Jump to search
Other languages:
English • ‎Türkçe • ‎svenska • ‎العربية • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
CollapsibleSections
Release status: experimental
Description Allows users to collapse and expand content sections on demand
Author(s) WikiWorks team
Latest version 0.0.1
MediaWiki 1.35.0+
License MIT License
Download

  • $wgCollapsibleSectionsCollapsedByDefault
  • $wgCollapsibleSectionsEnableDesktop
  • $wgCollapsibleSectionsTag
Translate the CollapsibleSections extension if it is available at translatewiki.net

Check usage and version matrix.

The CollapsibleSections extension allows collapsing and expanding content sections as user wants. This extension was created for WikiWorks.

Installation

  • Download and place the file(s) in a directory called CollapsibleSections in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'CollapsibleSections' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

This extension has 3 configuration parameters:

  • $wgCollapsibleSectionsCollapsedByDefault - enables collapsing of sections. Per default, collapsing is enabled. If you want to disable this option, set value to false
  • $wgCollapsibleSectionsEnableDesktop - enables collapsing of sections on desktop. It is disabled per default, but if you want to enable this, set value to true
  • $wgCollapsibleSectionsTag - used for specifying heading of section which shouldn't be expanded. Per default, only the most important heading (h1) is expanded. If you want to enable expanding of the other headings, you can change default value (h2) to another one (headings from h1 to h6 are supported).

See also

Wikiteq - logo.png This extension is professionally maintained by the WikiTeq team.