Tillägg:CollapsibleSections
Jump to navigation
Jump to search
This extension is professionally maintained by the WikiTeq team.
CollapsibleSections Utgivningsstatus: experimentell |
|
---|---|
Beskrivning | Allows users to collapse and expand content sections on demand |
Författare | WikiWorks team |
Senaste versionen | 0.0.1 |
MediaWiki | 1.35.0+ |
Licenser | MIT-licens |
Ladda ner | |
|
|
Översätt tillägget CollapsibleSections om det finns tillgängligt på translatewiki.net | |
The CollapsibleSections extension allows collapsing and expanding content sections as user wants. This extension was created for WikiWorks.
Installation
- Ladda ner och placera filen/filerna i en katalog som heter
CollapsibleSections
i dinextensions/
-mapp. - Lägg till följande kod längst ner i dina LocalSettings.php:
wfLoadExtension( 'CollapsibleSections' );
Klart – Ta dig till Special:Version på din wiki för att bekräfta att tillägget har installerats ordentligt.
Konfiguration
Det här tillägget har 3 konfigurationsparametrar:
$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
- 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
