扩展:跨wiki排序
Appearance
发行状态: 稳定版 |
|
---|---|
实现 | 用户界面 |
作者 | Wikimedia Germany (WMDE) |
最新版本 | 持续更新 |
兼容性政策 | 快照跟随MediaWiki发布。 master分支不向后兼容。 |
MediaWiki | 1.27+ |
PHP | 7.4+ |
数据库更改 | 否 |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
|
|
前往translatewiki.net翻譯InterwikiSorting扩展 | |
問題 | 开启的任务 · 报告错误 |
The InterwikiSorting extension allows for sorting of interwiki links.
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 Wikibase .
Installation
- 下载文件,并解压
InterwikiSorting
文件夹到extensions/
目录中。
开发者和代码贡献人员应改从Git安装此扩展,输入:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InterwikiSorting
- 請新增下列代码到您的LocalSettings.php 文件的底部:
wfLoadExtension( 'InterwikiSorting' );
- 按需求配置
完成 – 請导航至您的wiki上的Special:Version,以验证此扩展已成功安装。
Configuration
$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.
此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |
此扩展在以下wiki农场/托管网站和/或软件包中提供: 這不是一份權威名單。 即使某些wiki农场/托管网站和/或软件包未在这里列出,它们也可能提供此扩展。 请检查你的wiki农场/托管网站或软件包以确认提供情况。 |