Skin:Vector/zh

Vector在2010年（，），繼MonoBook之後成為MediaWiki的預設佈景主題. 它于2009年创建，是所做工作的一部分.

向量相較於前一版的預設佈景主題，在可用性方面有了許多改進. 它是第一個將 flat level content_actions 推進到 categorized content_navigation 的佈景主題.

一開始，基本功能包含在核心佈景主題中，而向量的一些特殊功能則由一個單獨的擴充套件（）處理. 此后，此扩展被合并至皮肤中.

In recent years the skin underwent a number of changes, e.g. the switch to and the addition of new features. The latter are controlable by feature switches so that users can still be served to legacy layout.

Setting the default skin to Vector
A default skin should be set for new users of a wiki by setting the variable $wgDefaultSkin in LocalSettings.php to the lowercase skin name specified in the skin file:

wgVectorUseIconWatch

 * Watch and unwatch as an icon rather than a link.
 * true=使用图标搜索按钮
 * false =使用监视/取消监视文本链接

wgVectorResponsive

 * 实验设置：使向量皮肤响应稍微快一些. 还没有在生产环境中进行测试或使用，但默认情况下相对稳定并且默认为false.
 * true = Use responsiveness to improve usability in narrow viewports
 * false = No responsiveness

wgVectorPrintLogo
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.

功能

 * 向量皮肤的基本特征
 * 减少混乱（主要是通过减少屏幕上的行数）
 * 搜索框的位置更加突出
 * Visual separation of the content-action and namespace links, the former of which being divided into view tabs and action menu items
 * 根据浏览器大小自动增加/减少整个用户界面的页边距
 * 使用星型图标查看和取消查看操作


 * 添加了Vector extension的特性(其中一些特性后来被合并到向量皮肤或MediaWiki内核中，或已被删除)
 * 简化搜索框，包括建议
 * 可折叠的导航门户
 * 在不保存编辑页面时发出警告
 * 自动隐藏屏幕上不适合的选项卡


 * 实验性向量皮肤扩展功能
 * 简化页脚内容
 * Search box expands on focus
 * 部分编辑链接被移动到标题旁边而不是右侧，并使用图标


 * 通过CollapsibleVector extension支持CollapsibleNav

Collapsible navigation
可折叠导航门户现在由扩展提供，该扩展必须另外安装.

Poor smartphone and tablet web design

 * ''See also Manual:Mobiles, tablets and responsive design

Vector will work on many mobile devices (i.e. smartphones and tablets), but it is not optimized for mobile devices. The Skin:Timeless skin is already bundled with MediaWiki 1.31 and is considered a good alternative according to Manual:Mobiles, tablets and responsive design

Vector currently has a poor implementation of responsive web design, in which the  buttons might overlap the   buttons due to width shortage, with no fallback icons like on skin: Monobook, skin: MinervaNeue and skin: Timeless viewed on narrow displays.

In addition, the left side bar navigation links inside, as well as the top links inside  , move to the bottom of the page on narrow displays, beneath the content area, requiring the user to scroll to the bottom before being able to access it.

參見

 * - MediaWiki之前的默认皮肤
 * - Dark theme of the same skin