Skin:Vector/2022/zh

随附于MediaWiki 1.38及更高版本。 其余配置说明仍必须遵循。
Category:Skins bundled with MediaWiki 1.38/zh
MediaWiki手冊 -
Vector 2022
Category:GPL licensed skins/zhCategory:Stable skins/zh
政策 快照跟随MediaWiki发布。 master分支不
Composer mediawiki/vector-skin Category:Skins supporting Composer/zh
GNU2.0或更新版本
Category:Skins in Wikimedia version control/zh
https://en.wikipedia.org/
https://vi.wikipedia.org/
https://test.wikipedia.org/
  • $wgVectorNightMode
  • $wgVectorResponsive
  • $wgVectorStickyHeader
  • $wgVectorMaxWidthOptions
  • $wgVectorFontSizeConfigurableOptions
  • $wgVectorLanguageInHeader
  • $wgVectorLanguageInMainPageHeader
  • $wgVectorWvuiSearchOptions
  • $wgVectorTableOfContentsCollapseAtCount
  • $wgVectorPromoteAddTopic
  • $wgVectorWrapTablesTemporary
  • $wgVectorWebABTestEnrollment
  • $wgVectorDefaultSkinVersionForNewAccounts
  • $wgVectorDefaultSkinVersionForExistingAccounts
Quarterly downloads 5 (Ranked 1st)
正在使用的公开wiki数 14,010 (Ranked 2nd)
作为默认皮肤使用的公开wiki数 5,943
Vector/2022(如在translatewiki.net可用)
Vagrant角色 vector
: 的任务 ·
Category:All skins/zh

Vector 2022Vector皮肤的二次修改版。它是作为桌面版改进项目的一部分开发的。 它从MediaWiki 1.38起被加入到MediaWiki中。 它是多个维基媒体项目的默认皮肤。

Vector 2022 与大多数皮肤的不同之处在于它没有自己的代码库;相反,它的代码是 Vector 皮肤的一部分,两者一起下载。

该皮肤自 MediaWiki 1.38 版起有第三方的正式支持。 请注意:运行MediaWiki 1.36或1.37的网站若在使用Vector 2022,则在升级到1.38版本时会遇到困难。 详情请见T299104擴展:WikimediaMaintenance

安裝

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

可选依赖

如果安装了以下扩展,Vector 2022 可以使用它们,尽管并不是必需的:

将Vector 2022设为默认皮肤

自MediaWiki 1.38版本以来,将以下内容添加到LocalSettings.php即可使Vector 2022成为默认皮肤:

$wgDefaultSkin = 'vector-2022';

Night mode

MediaWiki版本:
1.43

Vector 2022具有夜间模式或深色模式,其有三种可能的状态:

  • day - also known as light mode
  • night - also known as dark mode
  • os - also known as automatic. This mode will automatically adapt to the state of the operating system or browser

夜间模式由功能标志控制。 要启用它,请按如下方式设置$wgVectorNightMode

$wgVectorNightMode['beta'] = true;
$wgVectorNightMode['logged_out'] = true;
$wgVectorNightMode['logged_in'] = true;

When enabled, the default theme mode is day. To change the default theme for all users to automatic mode or night mode, you set the default for the user option with either:

$wgDefaultUserOptions['vector-theme'] = 'os';
// 或者 
$wgDefaultUserOptions['vector-theme'] = 'night';

Please note that your content has to be night mode compatible. You might want to read the recommendations for Wikimedia wikis.

参数

请注意,Vector 2022有几个不稳定的特性标志,它们可能随时消失。 这些特性标志中的大多数都与不完整的特性有关。 除非此处列出,否则建议不要更改任何特性标志的默认值。

  • $wgVectorMaxWidthOptions - 可用于配置是否适用 max-width。 目前相对稳定。
  • $wgVectorLanguageInMainPageHeader - 控制语言按钮是否显示在主页的页眉中。
  • $wgVectorWvuiSearchOptions - 键为showDescriptionshowThumbnail(均为布尔值)的关联数组。

Vector 2022 allows control over whether various menus appear pinned in the sidebar or collapsed into the header. These options can be configured both by users in their preferences and by administrators as default settings.

The following pinning options are available:

  • vector-main-menu-pinned - Controls the main navigation menu position
    • 1 () - Menu is pinned in the left sidebar
    • 0 - Menu is collapsed into header hamburger icon
  • vector-page-tools-pinned - Controls the page tools menu position
    • 1 () - Tools are pinned in the right sidebar
    • 0 - Tools are collapsed into header icon
  • vector-toc-pinned - Controls the table of contents position
    • 1 () - Table of contents is pinned in the left sidebar
    • 0 - Table of contents is collapsed into a floating button
  • vector-appearance-pinned - Controls the appearance menu position
    • 1 () - Appearance options are pinned in the sidebar
    • 0 - Appearance options are collapsed into header icon

To change any of these defaults, add the corresponding lines to LocalSettings.php:

// 示例:折叠所有菜单
$wgDefaultUserOptions['vector-main-menu-pinned'] = 0;
$wgDefaultUserOptions['vector-page-tools-pinned'] = 0;
$wgDefaultUserOptions['vector-toc-pinned'] = 0;
$wgDefaultUserOptions['vector-appearance-pinned'] = 0;

参见

Category:Vector skin/zh Category:Skins with dark mode/zh
Category:All skins/zh Category:GPL licensed skins/zh Category:Skins available as Debian packages/zh Category:Skins bundled with MediaWiki 1.38/zh Category:Skins in Wikimedia version control/zh Category:Skins included in Canasta/zh Category:Skins included in Miraheze/zh Category:Skins included in MyWikis/zh Category:Skins included in ProWiki/zh Category:Skins included in ShoutWiki/zh Category:Skins included in Telepedia/zh Category:Skins included in WikiForge/zh Category:Skins included in semantic::core/zh Category:Skins included in wiki.gg/zh Category:Skins supporting Composer/zh Category:Skins with dark mode/zh Category:Stable skins/zh Category:Vector skin/zh