Extension:InterwikiSorting
![]() Release status: stableCategory:Stable extensions |
|
---|---|
Implementation | User interfaceCategory:User interface extensions |
Author(s) | Wikimedia Germany (WMDE) |
Latest version | continuous updates |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy |
MediaWiki | 1.27+Category:Extensions with manual MediaWiki version |
PHP | 7.4+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | Category:Extensions in Wikimedia version control |
|
|
Translate the InterwikiSorting extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
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
- Download and move the extracted
InterwikiSorting
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InterwikiSorting
- Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'InterwikiSorting' );
- Configure as required
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
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.
![]() | This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
![]() | This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
Category:All extensions
Category:ContentAlterParserOutput extensions
Category:Extensions in Wikimedia version control
Category:Extensions included in Miraheze
Category:Extensions included in WikiForge
Category:Extensions used on Wikimedia
Category:Extensions with manual MediaWiki version
Category:Extensions with release branches compatibility policy
Category:Extensions without an image
Category:GPL licensed extensions
Category:Interwiki extensions
Category:Stable extensions
Category:User interface extensions