Jump to content

Extension:InterwikiSorting

From mediawiki.org
This page is a translated version of the page Extension:InterwikiSorting and the translation is 46% complete.
MediaWiki 拡張機能マニュアル
InterwikiSorting
リリースの状態: 安定
実装 ユーザー インターフェイス
作者 Wikimedia Germany (WMDE)
最新バージョン 継続的な更新
互換性の方針 MediaWiki とともにリリースされるスナップショット。 master には後方互換性がありません。
MediaWiki 1.27+
PHP 7.4+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード

  • $wgInterwikiSortingSort
  • $wgInterwikiSortingSortPrepend
  • $wgInterwikiSortingInterwikiSortOrders
translatewiki.net で翻訳を利用できる場合は、InterwikiSorting 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

InterwikiSorting 拡張機能はインターウィキのリンクのソートを可能にします。

The code was originally created in 2012 as part of the Wikibase Client extension, and has been factored out.

Within the Wikimedia Foundation this extension is being used alongside the Cognate extension and ウィキベース .

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のInterwikiSortingという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InterwikiSorting
    
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'InterwikiSorting' );
    
  • 必要に応じて設定します
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

$wgInterwikiSortingSort
The default sort order to use. 'code' is built in and orders alphabetically by interwiki code.
Example sort orders are currently stored in WMF configuration and can be seen at Phabricator
These can be seen used in noc.wikimedia.org under wgInterwikiSortingSort
$wgInterwikiSortingSortPrepend
Codes that should appear at the start of the list of interwiki links.
$wgInterwikiSortingInterwikiSortOrders
Definition of sort orders. Each sort order key should be the sort order name, for example 'alphabetical'. Each key should have a value of an array of interwiki codes in the order to be sorted.