commit | 81f44c66c1abaf3a107d6a4ed16651b0cfe95bf5 | [log] [tgz] |
---|---|---|
author | Translation updater bot <[email protected]> | Wed Aug 28 09:39:18 2024 +0200 |
committer | Translation updater bot <[email protected]> | Wed Aug 28 09:39:18 2024 +0200 |
tree | bb277edf45d671903537937cdfe59a3b9843e8fb | |
parent | 4632f11fd6af54b9abf85a58aa43d4c268fbcd07 [diff] |
Localisation updates from https://translatewiki.net. Change-Id: Ic2b1e9be3b9927d5ccf3b6e0b2d4223aba83fe25
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