Tillägg:CollapsibleSections

This page is a translated version of the page Extension:CollapsibleSections and the translation is 33% complete.
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
Manual för MediaWikitillägg
CollapsibleSections
Utgivningsstatus: stabil
Beskrivning Allows users to collapse and expand content sections on demand
Författare WikiWorks team
Ansvarig(a) WikiTeq team
Senaste versionen 0.0.1
Kompatibilitetsregler For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.35+
Licenser MIT-licens
Ladda ner

  • $wgCollapsibleSectionsCollapsedByDefault
  • $wgCollapsibleSectionsEnableDesktop
  • $wgCollapsibleSectionsTag
Quarterly downloads 51 (Ranked 100th)
Översätt tillägget CollapsibleSections om det finns tillgängligt på translatewiki.net
Ärenden Öppna ärenden · Rapportera en bugg

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 din extensions/-mapp.
    Utvecklare och personer som bidrar med kod borde istället installera tillägget från Git, med:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CollapsibleSections
  • Lägg till följande kod längst ner i din LocalSettings.php -fil:
    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 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 - (default is `h2`) sets the root section tag to be used for finding collapsible content

See also