扩展:跨wiki排序
Jump to navigation
Jump to search
InterwikiSorting 发布状态: 稳定版 |
|
---|---|
实现 | 用户界面 |
作者 | Wikimedia Germany (WMDE) |
最新版本 | 持续更新 |
兼容性方针 | 发行分支 |
MediaWiki | 1.27+ |
PHP | 5.5+ |
数据庫更改 | 否 |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下载 | |
|
|
翻譯InterwikiSorting擴充功能如在translatewiki.net可用 | |
问题 | 尚未完成的工作 · 回報錯誤 |
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 will be used alongside the Cognate extension and Wikibase.
下载
此扩展可直接从Git检索到 [?]:
- 浏览代码
- 部分扩展有稳定版本标签。
- 浏览标签
- 选择标签
- 点击“快照”
- 每个分支与过去的MediaWiki发布版本相关联。 这里也有一个“主线”分支,包含最新alpha版本(可能需要MediaWiki的alpha版本)。
- 浏览分支
- 选择一个分支名称
- 点击“继续”
提取快照,并将它放置在您的MediaWiki安装副本的extensions/InterwikiSorting/目录中。
如果您对git熟悉,并且拥有您服务器的shell访问权,您也可以通过以下方法获得扩展:
cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InterwikiSorting.git
Installation
- 下载文件,并将其放置在您
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页面找到。 |