Release status: stable | |||
|---|---|---|---|
| Compatibility policy | Snapshots releases along with MediaWiki. Master is not backwards compatible. | ||
| Composer | mediawiki/vector-skin | ||
| License | GNU General Public License 2.0 or later | ||
| Download | |||
| Example | |||
| |||
| Quarterly downloads | 0 | ||
| Public wikis using | 14,010 (Ranked 2nd) | ||
| Public wikis using as default skin | 5,943 | ||
| Translate the Vector skin if it is available at translatewiki.net | |||
| Vagrant role | vector | ||
| Issues: | Open tasks ·Report a bug | ||
Vector is a MediaWikiskin that has been MediaWiki's default skin since 2010, replacingMonoBook.
In recent years the skin has undergone a number of technical changes, e.g. the switch toMustache to support the construction ofSkin:Vector/2022 as part of the work done by theReading/Web/Desktop Improvements initiative.
vagrant roles enable vector -pVector in yourskins/ folder.wfLoadSkin('Vector');
A default skin should be set for new users of a wiki by setting the variable$wgDefaultSkin inLocalSettings.php to the lowercase skin name specified in the skin file:
$wgDefaultSkin='vector';// "Legacy" Vector (2010)$wgDefaultSkin='vector-2022';// New Vector (2022)
Watch and unwatch as an icon rather than a link.
true — use an icon watch/unwatch buttonfalse — use watch/unwatch text link$wgVectorUseIconWatch=true;
| MediaWiki version: | ≥ 1.26 |
Experimental setting to make Vector a responsive skin that adapts to mobile phones.false by default.
true — Use responsiveness to improve usability in narrow viewportsfalse — No responsiveness| MediaWiki versions: | 1.30 – 1.35 |
Logo used in print styles.
Keys are'url','width','height' (in pixels).Note that this solution only works correctly if the image pointed to by'url' is an SVG that does not specify width and height attributes, or its width and height match the corresponding variables below.Alternatively, a PNG or other type of image can be used, but its dimensions also need to match the corresponding variable below.That in turn may result in blurry images, though.
For MediaWiki 1.36 and higher, the print logo will simply be set fromManual:$wgLogos.
$wgVectorPrintLogo=['url'=>'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg','width'=>174,'height'=>27];
The collapsible navigation portals are now provided by theCollapsibleVector extension which will have to be installed additionally.
Vector will work on many mobile devices, but it is not fully optimized for mobile devices.This latest version of Vector,Vector 2022, has better support for mobile devices.
Vector was created in 2009 as part of the work done by theWikipedia Usability Initiative.It became MediaWiki's default skin in 2010 (MediaWiki 1.17,git #2833b07a), succeedingSkin:MonoBook.In 2022, as part of the MediaWiki 1.38 release, it was updated as part of the work done by theReading/Web/Desktop Improvements initiative.
Vector provides a number of usability improvements over its predecessor MonoBook.It was the first skin to separate the flat levelcontent_actions into the categorizedcontent_navigation.
At the beginning, the basic functionality was included in the core skin, while some of Vector's special features were handled by a separate extension,Extension:Vector.In MediaWiki 1.22, the extension was merged into the skin.
Parts of this page (those related to section) areoutdated. It was written for an older version of MediaWiki and may not apply to the most recent version. If you have checked or updated this page and found the content to be suitable, please remove this notice. See thetalk page for a possible discussion on this. |
A dark color scheme can be applied to Vector usingCSS, for example withuser styles,[1] which are enabled by default.Dark mode derivatives of the Vector skin, such asSkin:DarkVector, can be loaded into a wiki as a separate option.
Note all of these are supported by third parties, not theWikimedia Foundation.
| MediaWiki version: | ≥ 1.38 |
In MediaWiki 1.38 a new variant of Vector,Vector 2022, was created as part of theDesktop Improvements project.
| This skin is being used on one or moreWikimedia projects. This probably means that the skin is stable and works well enough to be used by such high-traffic websites. Look for this skin's name in Wikimedia'sCommonSettings.php andInitialiseSettings.php configuration files to see where it's installed. A full list of the skins installed on a particular wiki can be seen on the wiki'sSpecial:Version page. |
| This skin is included in the following wiki farms/hosts and/or packages:This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this skin even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |