Tillägg:CollapsibleSections

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:CollapsibleSections and the translation is 29% complete.
Other languages:
English • ‎Türkçe • ‎svenska • ‎العربية • ‎日本語
Manual för MediaWikitillägg
OOjs UI icon advanced.svg
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

  • $wgCollapsibleSectionsCollapsedByDefault
  • $wgCollapsibleSectionsEnableDesktop
  • $wgCollapsibleSectionsTag
Översätt tillägget CollapsibleSections om det finns tillgängligt på translatewiki.net

Kontrollera användning och versionsmatris.

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.
  • Lägg till följande kod längst ner i dina LocalSettings.php:
    wfLoadExtension( 'CollapsibleSections' );
    
  • Yes 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 - 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.