Giao diện:Vector

From mediawiki.org
This page is a translated version of the page Skin:Vector and the translation is 36% complete.
Outdated translations are marked like this.
This skin comes with MediaWiki 1.16 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.
MediaWiki skins manual - category
Vector
Release status: stable
Compatibility policy Snapshots releases along with MediaWiki. Master is not backwards compatible.
Composer mediawiki/vector-skin
License GNU General Public License 2.0 or later
Download
Example
Parameters
Quarterly downloads 735 (Ranked 1st)
Public wikis using 14,010 (Ranked 2nd)
Public wikis using as default skin 5,943
Translate the Vector skin if it is available at translatewiki.net
Vagrant role vector
Issues : Open tasks · Report a bug

Vectơ là một giao diện mặc định cho MediaWiki từ 2010, nối tiếp giao diện Giao diện:MonoBook .

Trong những năm gần đây, giao diện đã trải qua một số thay đổi kỹ thuật, ví dụ: việc chuyển sang Mustache để hỗ trợ xây dựng Giao diện:Vector/2022 như một phần công việc được thực hiện bởi sáng kiến ​​Đọc/Web/Cải thiện phiên bản máy tính .

Cài đặt

  • Nếu đang dùng Vagrant , cài đặt bằng vagrant roles enable vector -p

Cài đặt thủ công

  • Tải và đặt (các) tệp trong một thư mục với tên Vector trong thư mục skins/ của bạn.
  • Thêm mã sau vào dưới cùng tệp LocalSettings.php của bạn:
    wfLoadSkin( 'Vector' );
    
  • Yes Xong - Chuyển tới Special:Version trên wiki của bạn để xác nhận skin được cài đặt thành công.

Đặt giao diện mặc định thành Vector

Giao diện mặc định nên được đặt cho người dùng mới của wiki bằng cách đặt biến $wgDefaultSkin trong LocalSettings.php thành tên giao diện viết thường được chỉ định trong tập tin giao diện:

$wgDefaultSkin = 'vector'; // "Legacy" Vector (2010)
$wgDefaultSkin = 'vector-2022'; // New Vector (2022)

Tham số cấu hình

$wgVectorUseIconWatch

Xem và bỏ xem dưới dạng biểu tượng thay vì liên kết.

  • Các giá trị được hỗ trợ:
    • true — sử dụng nút xem/bỏ xem biểu tượng
    • false — sử dụng liên kết xem/bỏ xem văn bản
$wgVectorUseIconWatch = true;

$wgVectorResponsive

Các phiên bản MediaWiki:
1.26 – 1.35

Cài đặt thử nghiệm để biến Vector thành giao diện phản hồi thích ứng với điện thoại di động. false by default.

  • Các giá trị được hỗ trợ:
    • true — Sử dụng khả năng phản hồi để cải thiện khả năng sử dụng trong các khung nhìn hẹp
    • false — Không đáp ứng

Các phiên bản MediaWiki:
1.30 – 1.35

Biểu trưng được sử dụng trong kiểu in.

Các khóa là 'url', 'width', 'height' (tính bằng pixel). Lưu ý rằng giải pháp này chỉ hoạt động chính xác nếu hình ảnh do 'url' trỏ tới là một SVG không chỉ định các thuộc tính chiều rộng và chiều cao hoặc chiều rộng và chiều cao của nó khớp với các biến tương ứng bên dưới. Ngoài ra, có thể sử dụng PNG hoặc loại hình ảnh khác, nhưng kích thước của nó cũng cần khớp với biến tương ứng bên dưới. Tuy nhiên, điều đó có thể dẫn đến hình ảnh bị mờ.

For MediaWiki 1.36 and higher, the print logo will simply be set from Manual:$wgLogos .

$wgVectorPrintLogo = [
	'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
	'width' => 174,
	'height' => 27
];

$wgVectorShareUserScripts

Setting to false prevents Vector 2022 skin from loading MediaWiki:Vector.css and MediaWiki:Vector.js.


Tính năng

Các tính năng cơ bản của giao diện Vector
  • Reduced clutter, primarily by reducing the number of lines on screen
  • More prominent placement of the search portal
  • Visual separation of the content-action and namespace links, the former of which being divided into view tabs and action menu items
  • Automatic increase/decrease of margins throughout the user interface based on browser size
  • Use of a star icon for watch and unwatch actions
Added features of the Vector extension (some of these features have later been merged into the Vector skin or into the MediaWiki Core or have been removed)
  • Simplified search portal, including suggestions
  • Collapsible navigation portals
  • Alert when leaving an edit page without saving
  • Automatic hiding of tabs that do not fit on screen
Experimental Vector extension features
  • Simplified footer content
  • Search box expands on focus
  • Section edit links are moved to be directly next to heading instead of on the right, and use an icon
CollapsibleNav support via CollapsibleVector extension

Ghi chú

Collapsible navigation

The collapsible navigation portals are now provided by the CollapsibleVector extension which will have to be installed additionally.

Smartphone and tablet design

Vector will work on many mobile devices, but it is not fully optimized for mobile devices. This latest version of Vector, Vector 2022, has better support for mobile devices.

History of the skin

Vector was created in 2009 as part of the work done by the Wikipedia Usability Initiative . It became MediaWiki's default skin in 2010 (MediaWiki 1.17 , git #2833b07a), succeeding Giao diện:MonoBook . In 2022, as part of the MediaWiki 1.38 release, it was updated as part of the work done by the Đọc/Web/Cải thiện phiên bản máy tính initiative.

Vector provides a number of usability improvements over its predecessor MonoBook. It was the first skin to separate the flat level content_actions into the categorized content_navigation.

At the beginning, the basic functionality was included in the core skin, while some of Vector's special features were handled by a separate extension, Extension:Vector . In MediaWiki 1.22, the extension was merged into the skin.

Dark mode customizations

A dark color scheme can be applied to Vector using CSS , for example with user styles, [1] which are enabled by default. Dark mode derivatives of the Vector skin, such as Skin:DarkVector , can be loaded into a wiki as a separate option.

Note all of these are supported by third parties, not the Wikimedia Foundation .

Xem thêm

New Vector skin in 1.38+

Phiên bản MediaWiki:
1.38

In MediaWiki 1.38 a new variant of Vector, Vector 2022 , was created as part of the Desktop Improvements project.