Extension:Vector

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Vector

Release status: stable

Description Improves on the user interface elements of the Vector skin
Author(s) Trevor Parscal, Roan Kattouw
MediaWiki 1.17+
License GPL v2
Download
README
Example Test Wikipedia
Parameters

$wgVectorFeatures
$wgCollapsibleNavBucketTest
$wgCollapsibleNavForceNewVersion
$wgVectorSectionEditLinksBucketTest
$wgVectorSectionEditLinksLotteryOdds
$wgVectorSectionEditLinksExperiment

Hooks used
BeforePageDisplay

GetPreferences
MakeGlobalVariablesScript
ResourceLoaderRegisterModules

Check usage (experimental)
Bugs: list open list all report

The Vector extension adds a few enhancements to the Vector skin. Note that these features are only available in Vector, not in other skins.

Contents

[edit] Installation

  1. Get the extension with distributor or svn and drop it into MediaWiki directory /extensions
  2. Setup your LocalSettings.php as explained in README file.

[edit] Features

[edit] EditWarning

Add a warning to editor when they leave the edit form without saving.

Enabled by adding:

$wgDefaultUserOptions['useeditwarning'] = 1;

Set false to disable EditWarning globally.

$wgVectorFeatures['editwarning']['global'] = false;

Allow users to enable EditWarning in their preferences

$wgVectorFeatures['editwarning']['user'] = true;

[edit] CollapsibleTabs

Collapse the navigation tabs on top when space is tight.

Enabled by default. Set false to disable CollapsibleTabs globally.

$wgVectorFeatures['collapsibletabs']['global'] = false;

Allow users to enable CollapsibleTabs in their preferences

$wgVectorFeatures['collapsibletabs']['user'] = true;

[edit] CollapsibleLeftNav

Make the sections in the left navigation collapsible/expandable.

Enabled by default. Set false to disable CollapsibleNav globally.

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

Allow users to enable CollapsibleNav in their preferences

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

[edit] FooterCleanup

FIXME

Disabled by default.

$wgVectorFeatures['footercleanup']['global'] = false;
$wgVectorFeatures['footercleanup']['user'] = false;

[edit] ExpandableSearch

Expands the Search box when focused.

Disabled by default.

$wgVectorFeatures['expandablesearch']['global'] = false;
$wgVectorFeatures['expandablesearch']['user'] = false;

[edit] SectionEditLinks

Moves section edit links over to be next to the heading text and add an icon to them. Also includes bucket-testing and click-tracking functionality for evaluating the impact of this feature. More information about the design behind this feature here.

[edit] SimpleSearch

Improve the look and feel of the search box.

$wgVectorUseSimpleSearch = true;

By default, the Vector skin does not use the simplified search box. To take advantage of the simplesearch feature you must add this to your LocalSettings.php file.


Language: English  • Español • Русский
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox