Skin:ベクター/2022年版
![]() リリースの状態: 安定 |
|||
---|---|---|---|
![]() |
|||
互換性の方針 | Snapshots releases along with MediaWiki. Master is not backwards compatible. | ||
Composer | mediawiki/vector-skin | ||
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 | ||
ダウンロード | |||
例 | https://en.wikipedia.org/ https://vi.wikipedia.org/ https://test.wikipedia.org/ |
||
|
|||
Quarterly downloads | 899 (Ranked 1st) | ||
Public wikis using | 15,890 (Ranked 1st) | ||
Public wikis using as default skin | 6,923 | ||
translatewiki.net で翻訳を利用できる場合は、Vector/2022 外装の翻訳にご協力ください | |||
Vagrant role | vector | ||
問題点 : | 未解決のタスク · バグを報告 |
Vector 2022 は MediaWiki の Vector 外装の第二進化版であり、デスクトップの改善プロジェクトの一部として開発されています。 MediaWiki MediaWiki 1.38 以降に同梱されてます。 ウィキメディアのさまざまなプロジェクト群で既定の外装として使用されています。
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.
インストール
- ダウンロードして、ファイルを
skins/
フォルダー内のVector
という名前のディレクトリ内に配置します。 LocalSettings.php
の末尾に以下のコードを追加してください:
wfLoadSkin( 'Vector' );
完了 - 自分のウィキの Special:Version に移動して、外装が正しくインストールされたことを確認してください。
Optional dependencies
Vector 2022 makes use of the following extensions, though none are hard requirements:
- Extension:UniversalLanguageSelector - for the language switch button
- Extension:PageImages - if you want to include an image for the page (if available) in the new search bar
- Extension:ShortDescription - if you want to include a description for the page in the new search bar (Wikimedia projects do not use this; the description comes from the Wikibase extensions)
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';
1.38 リリースについての注意事項
MediaWiki 1.36 から 1.38 までの間、この外装のサード パーティーでの利用は自己責任でしたが、1.38 リリースでサード パーティーが公式にサポートされました。
MediaWiki 1.36 または 1.37 を実行しているサイトでベクター 2022 を使用している場合、1.38 リリースへのアップグレード時に課題に直面することになります。 これは避けられないことであり、MediaWiki 1.38 未満でこの外装の使用が非推奨だった理由の 1 つでもあります。
サイトが利用者に新しい体験を選択できるようにした場合、これらの利用者はアップグレード後にレガシー ベクターが提供されるため、外装設定をベクター 2022 に更新するために Special:Preferences を再訪問する必要があります。
大規模なウィキでは、外装を変更するとログイン済み利用者に迷惑がかかる場合があるため、データベース内の既存の個人設定をアップグレードするためのメンテナンス スクリプトを書くことを検討するといいでしょう。 詳細は T299104 と Extension:WikimediaMaintenance を参照してください。
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).