皮肤:Vector

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Skin:Vector and the translation is 43% complete.

Other languages:
Deutsch • ‎English • ‎Tagalog • ‎català • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎беларуская (тарашкевіца)‎ • ‎български • ‎русский • ‎українська • ‎العربية • ‎سنڌي • ‎فارسی • ‎中文 • ‎日本語 • ‎한국어
此skin已绑定在MediaWiki 1.17及以上版本 因此您不需要再次下载。 然而,您仍需要跟随提供的其他指导。
MediaWiki皮肤手册 - 分类
Crystal Clear device blockdevice.png
Vector
发布状态: 稳定版
Dantman-Skin-vector.png
Composer mediawiki/vector-skin
许可 GPL-2.0+
下载
例子 https://en.wikipedia.org/
参数
* $wgVectorUseSimpleSearch
翻译Vector皮肤(如果在translatewiki.net可用)
检查使用和版本矩阵。
问题 : 开放的工作 · 报告错误

Vector 在 2010-05-13 (MediaWiki 1.17,git#2833b07a),繼MonoBook之後成為MediaWiki的預設皮膚。維基媒體基金會於2009年創建了它,並於2010年將其布署到所有wiki上,成為維基百科可用性計劃的一部分。

Vector相較於前一版的預設皮膚,在可用性方面有了許多改進。它是第一個將 flat level content_actions 推進到 categorized content_navigation 的皮膚。

一開始,基本功能包含在核心皮膚中,而Vector的一些特殊功能則由一個單獨的擴展( Extension:Vector)處理。此後,擴展已合併到皮膚本身。

安装

  • 下载文件,并将其放置在您skins/文件夹中的Vector目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
wfLoadSkin( 'Vector' );
  • Yes 完成 - 在您的wiki上打开至Special:Version,以确认扩展已成功安装。

致使用MediaWiki 1.24或更早版本的用户:

上面的说明介绍的是自MediaWiki 1.25以来,使用wfLoadSkin()安装皮肤的新方法。 如果您需要在早期版本中安装此皮肤,您需要使用这样的代码(而不是 wfLoadSkin( 'Vector' );):

require_once "$IP/skins/Vector/Vector.php";

(要在早期发布版本中运行皮肤,您可能需要下载标记为来自Special:SkinDistributor发布的版本。)

配置选项

wgVectorUseSimpleSearch

  • Search form look.
    • true = use an icon search button
    • false = use Go & Search buttons
$wgVectorUseSimpleSearch = true;

wgVectorUseIconWatch

  • Watch and unwatch as an icon rather than a link.
    • true = use an icon watch/unwatch button
    • false = use watch/unwatch text link
$wgVectorUseIconWatch = true;

wgVectorResponsive

Template:MW version/list1

MediaWiki版本: 1.26 or later
  • Experimental setting to make Vector slightly more responsive. Not ready for production purposes and false by default.
    • true = Use responsiveness to improve usability in narrow viewports
    • false = No responsiveness
$wgVectorResponsive = false;


功能

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 the Vector 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 via CollapsibleVector extension

注释

The collapsible navigation portals are now provided by the 扩展:CollapsibleVector extension which will have to be installed additionally.

Another skin that follows vector is a more modern version of vector please visit Apex.

参见