Extension:CollapsibleVector

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎日本語 • ‎한국어 • ‎polski • ‎中文
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
CollapsibleVector

Release status:Extension status stable

ImplementationTemplate:Extension#type MyWiki, Skin
DescriptionTemplate:Extension#description Improves on the user interface elements of the Vector skin
Author(s)Template:Extension#username Paladox
Latest versionTemplate:Extension#version 0.1.10 (2015-07-15)
MediaWikiTemplate:Extension#mediawiki 1.24+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ParametersTemplate:Extension#parameters
  • $wgCollapsibleVectorFeatures
Hooks usedTemplate:Extension#hook
BeforePageDisplayManual:Hooks/BeforePageDisplay
GetPreferencesManual:Hooks/GetPreferences
ResourceLoaderGetConfigVarsManual:Hooks/ResourceLoaderGetConfigVars
MakeGlobalVariablesScriptManual:Hooks/MakeGlobalVariablesScript

Translate the CollapsibleVector extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

The CollapsibleVector extension is used for bring back the collapsible navigation portals to the sidebar that were removed from Vector skin.

Installation[edit]

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

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'CollapsibleVector' );, you need to use:

require_once "$IP/extensions/CollapsibleVector/CollapsibleVector.php";

Features[edit]

CollapsibleNav[edit]

Make the sections in the left navigation collapsible/expandable.

Enabled by default. Set false to disable CollapsibleNav globally.

$wgCollapsibleVectorFeatures['collapsiblenav']['global'] = false;

Allow users to enable CollapsibleNav in their preferences.

$wgCollapsibleVectorFeatures['collapsiblenav']['user'] = true;