commit | 2c83421192558e6d2ebb86d360366db09107a4da | [log] [tgz] |
---|---|---|
author | Translation updater bot <[email protected]> | Mon Oct 14 09:29:42 2024 +0200 |
committer | Translation updater bot <[email protected]> | Mon Oct 14 09:29:42 2024 +0200 |
tree | 303e6f0311cc5c1afb44d233488586b251daf41d | |
parent | c7a0cbb5bd8fffdbf072502d4481ea7b7d9b3d98 [diff] |
Localisation updates from https://translatewiki.net. Change-Id: I9ea5991dc1b4f7fd5ce62aa6184e96746351ac1c
wfLoadExtension( 'NearbyPages' );
To get NearbyPages showing articles from your favorite mediawiki instance you'll need to first config the $wgNearbyPagesUrl config variable.
$wgNearbyPagesUrl = "https://en.wikipedia.org/w/api.php";
For wikidata wikis a little more configuration is required like so:
$wgNearbyPagesNamespaces = [ 640, 146, 0 ]; $wgNearbyPagesWikidataCompatibility = true; $wgNearbyPagesUrl = "https://www.wikidata.org/w/api.php";
To avoid compatibility issues, ensure that MobileFrontend version 2.3.0 is running.
You can begin development on Special:NearbyPages with 2 simple commands:
npm install npm start
To develop on Wikidata using this mode, edit resources/ext.nearby.scripts/config.json before running the command substituting the following values:
NearbyPagesNamespaces: [ 640, 146, 0 ], NearbyPagesUrl: 'https://www.wikidata.org/w/api.php', NearbyPagesWikidataCompatibility: true