Extension:InterwikiSorting/ja

From Linux Web Expert

Revision as of 18:14, 18 January 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

  • $wgInterwikiSortingSort
  • $wgInterwikiSortingSortPrepend
  • $wgInterwikiSortingInterwikiSortOrders
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
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 will be used alongside the Cognate extension and ウィキベース .

ダウンロード

<translate> The extension can be retrieved directly from Git</translate> [?]:

  • <translate> Browse code</translate>
  • <translate> Some extensions have tags for stable releases.</translate>
  • <translate> Each branch is associated with a past MediaWiki release.</translate> <translate> There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).</translate>

<translate> Extract the snapshot and place it in the <tvar name=name>extensions/InterwikiSorting/</tvar> directory of your MediaWiki installation.

If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows: </translate>

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InterwikiSorting.git

インストール

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/InterwikiSorting/ja</tvar>|Download]] and move the extracted <tvar name=name>InterwikiSorting/ja</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InterwikiSorting%2Fja
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'InterwikiSorting/ja' );
    
  • 必要に応じて設定します
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

設定

$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.