Extension:CollapsibleSections
From Linux Web Expert
<translate> This extension is professionally maintained by the WikiTeq team.</translate>
<translate> WikiTeq provides official support for [[<tvar name=1>Special:MyLanguage/Version lifecycle</tvar>|MediaWiki LTS releases only]].</translate> <translate> It may work with other MediaWiki releases.</translate>
CollapsibleSections Release status: stable |
|
---|---|
Description | Allows users to collapse and expand content sections on demand |
Author(s) | WikiWorks team |
Maintainer(s) | WikiTeq team |
Latest version | 0.0.1 |
Compatibility policy | For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension. |
MediaWiki | 1.35+ |
License | MIT License |
Download | |
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the CollapsibleSections extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The CollapsibleSections extension allows collapsing and expanding content sections as user wants. This extension was created for WikiWorks.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/CollapsibleSections</tvar>|Download]] and move the extracted <tvar name=name>
CollapsibleSections
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CollapsibleSections - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'CollapsibleSections' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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 tofalse
$wgCollapsibleSectionsEnableDesktop
- enables collapsing of sections on desktop. It is disabled per default, but if you want to enable this, set value totrue
$wgCollapsibleSectionsTag
- (default is `h2`) sets the root section tag to be used for finding collapsible content
See also
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Extensions by WikiTeq
- Stable extensions
- Extensions without an image
- Extensions with invalid or missing type
- Extensions with long-term support release branches compatibility policy
- Extensions with manual MediaWiki version
- MIT licensed extensions
- Extensions in Wikimedia version control
- BeforePageDisplay extensions
- ResourceLoaderGetConfigVars extensions
- All extensions