Skin: Вектор
Vector Release status: stable |
|||
---|---|---|---|
![]() |
|||
Composer | mediawiki/vector-skin | ||
License | GNU General Public License 2.0 or later | ||
Download | |||
Example | https://en.wikipedia.org/ | ||
|
|||
Translate the Vector skin if it is available at translatewiki.net | |||
Check usage and version matrix; | |||
Issues : | Open tasks · Report a bug |
Vector
Сучасна версія MonoBook з оновленим оформленням #і багатьмаполіпшеннями у юзабилити
|
Векторное — тема оформлення для MediaWiki, котра стала по умолчанию з 2010 (MediaWiki 1.17 , git #2833b07a), замінивши MonoBook. It had been created in 2009 as part of the work done by the Wikipedia Usability Initiative .
Тема оформлення Векторное предоставляет ряд поліпшень юзабилити у порівнянні з йогопопередником. Це була першатема оформлення, котра відділила content_actions
і категоризованную content_navigation
.
На початку основна функціональність була включена в основну шкіру, а деякі з особливостей Vector були оброблені окремою розширенням (Extension:Vector ). The extension has since been merged into the skin itself.
In recent years the skin underwent a number of changes, e.g. the switch to Mustache and the addition of new features. The latter are controlable by feature switches so that users can still be served to legacy layout.
Встановлення
- Download and place the file(s) in a directory called
Vector
in yourskins/
folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadSkin( 'Vector' );
- Готово - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
To users running MediaWiki 1.24 or earlier:
The instructions above describe the new way of installing skins using wfLoadSkin()
, since MediaWiki 1.25. If you need to install this skin in earlier versions, instead of wfLoadSkin( 'Vector' );
, you need to use:
require_once "$IP/skins/Vector/Vector.php";
(To run a skin on an earlier release, you may need to download the version of it tagged for that release from Special:SkinDistributor.)
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:
$wgDefaultSkin = 'vector';
Змінні конфігурації
wgVectorUseIconWatch
- Дивіться і не переглядайте як значок, аніж посилання.
true
— використовувати кнопки «Перейти» та «Знайти»;false
— використовуйте текстові посилання watch / unwatch
$wgVectorUseIconWatch = true;
wgVectorResponsive
Версії MediaWiki: | ≥ 1.26 |
- Експериментальні налаштування, щоб зробити вектор трохи більш чутливим. Not actively being tested or used in production (yet) but relatively stable and false by default.
true
— Використовуйте чуйність для підвищення зручності використання в вузьких вікнах переглядуfalse
— Немає відгуку
$wgVectorResponsive = false;
wgVectorPrintLogo
Версії MediaWiki: | ≥ 1.30 |
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.
$wgVectorPrintLogo = [
'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
'width' => 174,
'height' => 27
];
Характеристики
Основні особливості векторної шкіри
- Зниження безладності, перш за все зменшення кількості ліній на екрані
- Більш помітне розміщення пошукового порталу
- Візуальне відокремлення посилань на зміст-дії та області імен, перші з яких розділені на вкладки перегляду та пункти меню дій
- Автоматичне збільшення / зменшення маржів у всьому користувальницькому інтерфейсі на основі розміру браузера
- Використання значка зірки для перегляду та відстеження дій
- Додані функції розширення розширення Vector (деякі з цих функцій пізніше були об'єднані в колі Vector або в MediaWiki Core або були видалені)
- Спрощений пошуковий портал, включаючи пропозиції
- Збірні навігаційні портали
- Попередження при виході з сторінки редагування без збереження
- Автоматичне приховування вкладок, які не підходять на екрані
Експериментальні векторні можливості розширення
- Спрощений вміст нижнього колонтитула
- Поле пошуку розширюється в фокусі
- Редагування посилань переноситься безпосередньо на заголовок, а не справа, і використовуйте піктограму
- Підтримка CollapsibleNav через розширення CollapsibleVector
Примітки
Розбірні навігаційні портали тепер надаються розширенням CollapsibleVector , який також буде встановлено додатково.
Poor smartphone and tablet web 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 #right-navigation
buttons might overlap the #left-navigation
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 #mw-panel
, as well as the top links inside #p-personal
, 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.
Див. також
- Skin:MonoBook – Предыдущая тема оформлення MediaWiki по умолчанию
- Skin:DarkVector – Dark theme of the same skin
- Skin:Vector/VectorBook.css – CSS code to get the book background image from Skin:MonoBook in this skin.
Цей скін використовується в одному або декількох проектах Вікімедіа. Це, мабуть, означає, що скін стабільний і працює досить добре, щоб його могли використовувати веб-сайти з великим трафіком. Шукайте назву цього скіна у файлах конфігурації Wikimedia CommonSettings.php та InitialiseSettings.php, щоб побачити, де це встановлене. Повний перелік скінів, встановлених на певній вікі, можна переглянути на сторінці Special:Version вікі. |