Тема оформления:MinervaNeue

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 27% 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 skins manual - category
Crystal Clear device blockdevice.png
Minerva Neue (Minerva)
Release status: stable
MediaWiki Minerva skin screenshot.png
MediaWiki 1.30+
License GNU General Public License 2.0 or later
Download
Translate the Minerva Neue skin if it is available at translatewiki.net
Check usage and version matrix;
Issues : Open tasks · Report a bug
Minerva является адаптивной мобильной темой оформления.

Minerva is the skin that serves mobile traffic for Wikimedia projects across the world. Compared to other skins such as Vector, it provides a much more simplistic user interface and is much more aggressive about optimizing for performance so that it can cater for mobile users.

It is optimized for use with Расширение:MobileFrontend as the $wgDefaultMobileSkin but at the time of writing (current master and 1.35 release) this is a soft dependency and it will function without the extension installed. If using the 1.34 release or earlier it is a hard dependency.

Установка

  • Скачайте и распакуйте файл(ы) в папку с именем «MinervaNeue» в папке skins/ вашего сайта.
  • Добавьте следующий код в ваш LocalSettings.php (в конец):
wfLoadSkin( 'MinervaNeue' );
$wgDefaultSkin = 'minerva';
  • Yes Готово - Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что тема оформления успешно установлена.

Для использующих MediaWiki 1.24 или более ранние:

В приведенных выше инструкциях описывается новый способ установки этого расширения с использованием wfLoadSkin(), начиная с MediaWiki 1.25. Если вам нужно установить эту тему оформления на более ранние версии (MediaWiki $1 и более ранние), вместо wfLoadSkin( 'MinervaNeue' );, вам необходимо использовать:

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

(Чтобы установить тему оформления в более ранней версии, вам может потребоваться загрузить её версию с тегом для этой версии из Special:SkinDistributor.)

  • Примечание: настройка $wgDefaultSkin = 'minerva' сделает Minerva темой оформления по умолчанию даже в режиме просмотра с компьютера. Игнорируйте эту строку и вместо неё используйте $wgDefaultMobileSkin = "minerva";, если вы хотите, чтобы MobileFrontend использовал только Minerva как тему оформления.

Убедитесь, что вызова wfLoadSkin после wfLoadExtension.

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:

Настройка

Configuration is listed in the Minerva readme in your local download or online.

Recently deprecated configuration

  • $wgMinervaCountErrors - previously used to count errors via statsd. In the unlikely event you were using it as a 3rd party please refer to Extension:WikimediaEvents for client side error logging.

Configuration of menus

Certain URLs in the main menu can be tweaked. These include:

Certain menu items will be enabled automatically when the relevant extension is added.

Desktop vs mobile modes

Мобильный интерфейс обеспечивает дополнительные возможности, которые не доступны в ядре МедиаВики You can compare desktop vs mobile mode.

When operating in mobile mode the following features are available:

  • Sections can be collapsed and expanded
  • The menu contains different options depending on the current mode, e.g. Special:Preferences is available on desktop
  • MediaWiki:Mobile.css (for mobile mode) or MediaWiki:Common.css (for desktop mode) will be loaded
  • Various pages are optimized for mobile e.g. Special:Watchlist (compare desktop vs mobile)

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

When operating in desktop mode there are various issues that we are working towards fixing. Your patches and help are welcomed.

Advanced details

Overlays

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.

The language selector overlay is in #/languages, with Special:MobileLanguages as fallback page.

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.
Time of last change
At the bottom of a page, the absolute date and time of the last edit (example: Last edited on 24 October 2020, at 00:46) get substituted by JavaScript with the relative time and last edited user name (example: Last edited 2 days ago by UserName).
Registration date
Unlike other known skins, Minerva Neue displays the join date under the user name on user pages. JavaScript, if enabled, substitutes the absolute time (e.g. Joined 12 June 2015) with a relative time (e.g. Joined 5 years ago).

Вопросы и ответы

If you have a question not answered by the page – please feel free to use the talk page to raise them.

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!