Jump to content

Extension:Vector

From mediawiki.org
Revision as of 17:24, 6 March 2015 by Reedy Bot (talk | contribs) (clean up, replaced: {{Extension → {{TNT|Extension, {{WikimediaDownload → {{TNT|WikimediaDownload)
Some capabilities provided by this extension are bundled with MediaWiki 1.18 and above and replaced by core functionality included in MW 1.22 and thus obsoleted.
MediaWiki extensions manual
Vector
Release status: stable
Implementation MyWiki , Skin
Description Improves on the user interface elements of the Vector skin
Author(s) Trevor Parscal, Roan Kattouw
Latest version 0.3.0
MediaWiki 1.16.x-1.21.x
Database changes No
License GPL v2
Download
README
Example test.wikipedia.org
  • $wgVectorFeatures
  • $wgCollapsibleNavBucketTest
  • $wgCollapsibleNavForceNewVersion
  • $wgVectorSectionEditLinksBucketTest
  • $wgVectorSectionEditLinksLotteryOdds
  • $wgVectorSectionEditLinksExperiment
Public wikis using 7,582 (Ranked 22nd)
Translate the Vector extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

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

MediaWiki version:
1.21

Installation

  • Download and move the extracted Vector folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Vector
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/Vector/Vector.php";
    
  • Yes Erledigt – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Eigenschaften

EditWarning

The EditWarning feature warns the editor when they leave the edit form without saving. This feature has been integrated in MediaWiki core as of MediaWiki 1.22.

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;

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;

CollapsibleNav

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;

When this extension was merged into core in MediaWiki 1.22, it was enabled by default, but the configuration options to disable it, even from preferences, were removed, so all sections were collapsed by default. Since MediaWiki 1.24 this feature has been removed entirely.

FooterCleanup

  • Makes the "View templates on this page" and "View hidden categories on this page" lists collapsible and collapsed by default.
  • Also, if WikiEditor is loaded, removes the .editHelp (link to MediaWiki:Edithelppage with label MediaWiki:Edithelp) element and the "|" from after the cancel link.
  • Various additional CSS adjustments.

Disabled by default. Set true to enable FooterCleanup globally.

$wgVectorFeatures['footercleanup']['global'] = true;

Allow users to enable FooterCleanup in their preferences.

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

ExpandableSearch

Expands the Search box when focused.

Disabled by default. Set true to enable ExpandableSearch globally.

$wgVectorFeatures['expandablesearch']['global'] = true;

Allow users to enable ExpandableSearch in their preferences.

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

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.

Disabled by default. Set true to enable SectionEditLinks globally.

$wgVectorFeatures['sectioneditlinks']['global'] = true;

Allow users to enable SectionEditLinks in their preferences.

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

SimpleSearch

Improve the look and feel of the search box. The Vector skin has a basic version of simple search, which must be enabled to take advantage of the enhanced version, by adding the following to LocalSettings.php.

$wgVectorUseSimpleSearch = true;