皮肤:Minerva Neue

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Skin:Minerva Neue and the translation is 46% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎Tiếng Việt • ‎Türkçe • ‎español • ‎français • ‎polski • ‎português • ‎português do Brasil • ‎slovenčina • ‎русский • ‎中文 • ‎日本語 • ‎한국어
MediaWiki佈景主題手冊 - 分類
Crystal Clear device blockdevice.png
Minerva Neue (Minerva)
發行狀態: 穩定版
MediaWiki Minerva skin screenshot.png
MediaWiki 1.30+
許可協議 GNU通用公眾授權條款2.0或更新版本
翻譯Minerva Neue佈景主題(如果在translatewiki.net可用)
問題 : 進行中的工作 · 回報錯誤
Minerva is a responsive screen and will adapt to mobile devices.


它经过优化,可与wgMFDefaultSkinClass一起在MobileFrontend使用。在撰写本文时,这是一个重要的依赖。 If using the 1.34 release or earlier it is a hard dependency.


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

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

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

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


  • “注意”:设置$wgDefaultSkin = 'minerva'将使“Minerva”成为您的默认皮肤,即使在桌面版中也是如此。

Ignore this line and instead use $wgDefaultMobileSkin = "minerva"; if you want only MobileFrontend to use the Minerva skin.


MobileFrontend integration

With MobileFrontend integrated the Minerva experience will be enhanced to include various other features including:

  • Red link edit confirmation
  • Reference pop-up drawer
  • An enhanced search
  • Better integration on mobile with many popular Wikipedia-style templates.

To benefit from these:






MobileFrontend提供了MediaWiki Core中没有的附加功能。您可以比较desktopmobile mode


  • 选区(sections)可以被折叠或展开
  • 存在不同选项的菜单,比如 Special:Preferences(简体中文版 MediaWiki 为 特殊:参数设置),可以在桌面版上使用
  • MediaWiki:Mobile.css (对于移动版) 或 MediaWiki:Common.css (对于桌面版)将会被加载。
  • 很多页面已经对移动版进行了优化,例如 Special:Watchlist(简体中文版 MediaWiki 为 特殊:监视列表)。你可以对比下 MediaWiki 官网上的这个页面:监视列表(桌面版)监视列表(移动版)


The desktop mode of the site is experimental. Bug reports and patches are appreciated.


Advanced details


This skin is equipped with several custom JavaScript-enabled overlay interfaces for editing, browsing legacy (non-flow) discussion boards and viewing page notice boxes, including multiple ones inside w:template:multiple issues.

If JavaScript is activated in the user's browser, the custom mobile-optimized editing interface overlay (URL fragment: #/editor/all, where all may be replaced with a section number starting at 0) will be shown. The edit summary is entered on a separate page within it.

If JavaScript is deactivated or unsupported, the normal action=edit URL will be opened as fallback.

Page notice boxes are opened in the URL fragment: #/issues/0, and notice boxes for individual sections starting at #/issues/1.

The overlay interface for discussion pages shows a list of sections and has a “Read as wiki page” button at the bottom.

The sidebar menu works with or without JavaScript. For those interested a non-JavaScript fallback page for the side bar menu (Special:MobileMenu) has been removed in 2020.

Dedicated pages

Instead of MediaWiki's native history (action=history) and difference viewers, this skin uses its dedicated special pages: Special:History and Special:MobileDiff respectively.

Special:History shows a minimalistic and coarse view of the page history, excluding some features such as the ability to select two non-consecutive revisions for comparison.

Special:MobileDiff shows page differences in a unified, rather than a split view, and does not include the page title in the URL.

While this skin also uses Special:Contributions to list iser contributions, its layout in this skin resembles the mobile Special:History by default.

Further distinctions

Search suggestions
In addition to page titles, the search suggestions include preview pictures and short descriptions of the results where available.
Tag lines
On the German Wikipedia, an article's description from WikiData is adopted as tag line below the page title.



What do I get when I install MobileFrontend?

Minerva works without MobileFrontend but installing MobileFrontend will provide several enhancements – notably reference and red link pop-up drawers, and a mobile optimized search and custom editor. These optimizations will apply to the desktop and mobile version. Currently it is not possible to disable the mobile view link but patches to that effect will gladly be accepted!