Giao diện:Vector/2022

This page is a translated version of the page Skin:Vector/2022 and the translation is 92% complete.
This skin comes with MediaWiki 1.38 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 2022
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 https://en.wikipedia.org/
https://vi.wikipedia.org/
https://test.wikipedia.org/
Parameters
Quarterly downloads 890 (Ranked 1st)
Public wikis using 14,010 (Ranked 2nd)
Public wikis using as default skin 5,943
Translate the Vector/2022 skin if it is available at translatewiki.net
Vagrant role vector
Issues : Open tasks · Report a bug

Vector 2022 là bước phát triển thứ hai của giao diện MediaWiki Vector và đang được phát triển như một phần của dự án Cải tiến máy tính để bàn. Nó đã được đóng gói trong MediaWiki kể từ $2. It has been bundled in MediaWiki since MediaWiki 1.38 . Nó là giao diện mặc định cho các dự án Wikimedia khác nhau.

Vector 2022 differs from most skins in that it does not have its own code base; rather, its code is part of the Vector skin's, and the two are downloaded together.

Cài đặt

  • 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' );
  •   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.

Optional dependencies

Vector 2022 can make use of the following extensions if they are installed, though none are required:

  • UniversalLanguageSelector - for the language switch button
  • PageImages - to include an image for each page (if available) in the search bar
  • ShortDescription - to include a description for each page (retrieved from a Wikibase installation) in the search bar (Wikimedia projects have similar functionality, but not using this extension)

Making Vector 2022 the default skin

For MediaWiki versions 1.38 and higher, add the following to LocalSettings.php to make Vector 2022 the default skin:

$wgDefaultSkin = 'vector-2022';

For versions 1.36 and 1.37, you should instead add the following:

$wgVectorResponsive = true;
$wgVectorDefaultSkinVersion = '2';

Lưu ý về bản phát hành 1.38

Bản phát hành 1.38 đánh dấu sự hỗ trợ chính thức của bên thứ 3 cho giao diện; tuy nhiên, giữa 1,36 và 1,38, giao diện có sẵn với rủi ro của chính bên thứ 3.

Nếu một trang web đang chạy MediaWiki 1.36 hoặc 1.37 đang sử dụng Vector 2022, trang web đó sẽ gặp phải những thách thức khi nâng cấp lên bản phát hành 1.38. Điều này là không thể tránh khỏi và một trong những lý do tại sao việc sử dụng giao diện này không được khuyến khích trước 1.38.

Nếu trang web cho phép người dùng chọn tham gia trải nghiệm mới, thì những người dùng này sẽ được cung cấp Vector kế thừa sau khi nâng cấp và sẽ cần truy cập lại Special:Preferences để cập nhật tùy chọn giao diện của họ lên Vector 2022.

Đối với các wiki lớn, nơi thay đổi giao diện có thể gây khó chịu cho người dùng đã đăng nhập, bạn có thể cân nhắc viết một tập lệnh bảo trì để nâng cấp các tùy chọn cơ sở dữ liệu hiện có. Xem T299104Extension:WikimediaMaintenance để biết thêm chi tiết.

Configuration parameters

Note that Vector has several unstable feature flags, which may disappear at any time. Most of these feature flags relate to incomplete features. We do not recommend changing any feature flag from its default value unless listed here.

$wgVectorMaxWidthOptions

Can be used to configure whether the max-width applies. Relatively stable at this point.

$wgVectorLanguageInMainPageHeader

Controls whether the language button shows on the main page in the header.

$wgVectorWvuiSearchOptions

Associative array with keys showDescription and showThumbnail (both booleans).

See also