Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Skin:Vector

From mediawiki.org
(Redirected fromVector 2010)
Translate this page
Languages:
MediaWiki skins manual -category
Vector
Release status: stable
Compatibility policySnapshots releases along with MediaWiki. Master is not backwards compatible.
Composermediawiki/vector-skin
LicenseGNU General Public License 2.0 or later
Download
Example
Parameters
Quarterly downloads0
Public wikis using14,010 (Ranked 2nd)
Public wikis using as default skin5,943
Translate the Vector skin if it is available at translatewiki.net
Vagrant rolevector
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.

Installation

[edit]
This skincomes with MediaWiki 1.16 and later, so you do not need to download it. The remaining configuration instructions must still be followed.
  • If usingVagrant, install withvagrant roles enable vector -p

Manual installation

  • Download and place the file(s) in a directory calledVector in yourskins/ folder.
  • Add the following code at the bottom of yourLocalSettings.php file:
    wfLoadSkin('Vector');
  • YesDone - Navigate toSpecial:Version on your wiki to verify that the skin is successfully installed.

Setting the default skin to Vector

[edit]

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)

Configuration

[edit]

$wgVectorUseIconWatch

[edit]

Watch and unwatch as an icon rather than a link.

  • Supported values:
    • true — use an icon watch/unwatch button
    • false — use watch/unwatch text link
$wgVectorUseIconWatch=true;

$wgVectorResponsive

[edit]
MediaWiki version:
1.26

Experimental setting to make Vector a responsive skin that adapts to mobile phones.false by default.

  • Supported values:
    • true — Use responsiveness to improve usability in narrow viewports
    • false — No responsiveness

$wgVectorPrintLogo

[edit]
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];

Features

[edit]
Basic features of the Vector skin
  • Reduced clutter, primarily by reducing the number of lines on screen
  • More prominent placement of the search portal
  • Visual separation of the content-action and namespace links, the former of which being divided into view tabs and action menu items
  • Automatic increase/decrease of margins throughout the user interface based on browser size
  • Use of a star icon for watch and unwatch actions
Added features of theVector extension (some of these features have later been merged into the Vector skin or into the MediaWiki Core or have been removed)
  • Simplified search portal, including suggestions
  • Collapsible navigation portals
  • Alert when leaving an edit page without saving
  • Automatic hiding of tabs that do not fit on screen
Experimental Vector extension features
  • Simplified footer content
  • Search box expands on focus
  • Section edit links are moved to be directly next to heading instead of on the right, and use an icon
CollapsibleNav support viaCollapsibleVector extension

Notes

[edit]

Collapsible navigation

[edit]

The collapsible navigation portals are now provided by theCollapsibleVector extension which will have to be installed additionally.

Smartphone and tablet design

[edit]
See also:Manual:Mobiles, tablets and responsive design

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.

History of the skin

[edit]

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.

Dark mode customizations

[edit]
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.

See also

[edit]

New Vector skin in 1.38+

[edit]
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.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Skin:Vector&oldid=7799797"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp