Extension:CollapsibleVector

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎español • ‎polski • ‎中文 • ‎日本語 • ‎한국어
MediaWiki extensions manual
Crystal Clear action run.svg
CollapsibleVector
Release status: stable
Implementation MyWiki, Skin
Description Improves on the user interface elements of the Vector skin
Author(s) Paladox
Latest version 0.1.10 (2015-07-15)
MediaWiki 1.24+
Database changes No
License GNU General Public License 2.0 or later
Download
Parameters
$wgCollapsibleVectorFeatures
Hooks used
BeforePageDisplay
GetPreferences
ResourceLoaderGetConfigVars
MakeGlobalVariablesScript
Translate the CollapsibleVector extension if it is available at translatewiki.net
Check usage and version matrix.
Issues 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' );
    
  • Yes 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;