Extension:NearbyPages

Other languages:
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
NearbyPages
Release status: stable
Implementation Parser function
Description Provides Special:Nearby
Latest version (in development)
MediaWiki >= 1.35.0
Database changes No
License GNU General Public License 2.0 or later
Download
README
  • $wgNearbyPagesNamespaces
  • $wgNearbyRandomButton
  • $wgNearbyRange
  • $wgNearbyPagesUrl
  • $wgNearbyPagesWikidataCompatibility
  • $wgNearbyCardUrl
Translate the NearbyPages extension if it is available at translatewiki.net

Check usage and version matrix.

Issues Open tasks · Report a bug

The NearbyPages extension provides location based articles via Special:Nearby special page. It was previously part of Extension:MobileFrontend but decoupled and rewritten with Vue.js . The extension can also be deployed as a static web app that is demoed as a standalone app for Wikipedia and Wikidata.

Special:NearbyEdit

The page Special:Nearby lists articles that are geotagged nearest to the user's current location, as provided by their browser. Due to the limit of the geosearch API, only articles within a 10 km radius are listed by default, although this can be changed using the $wgMaxGeoSearchRadius and $wgNearbyRange variables.

It is also possible to manually specify a location by including its latitude and longitude as URL parameters. For example, this URL will generate a list of articles near the w:Statue of Liberty in New York City, US:

https://en.wikipedia.org/wiki/Special:Nearby#/coord/40.69,-74.04

InstallationEdit

  • Download and place the file(s) in a directory called NearbyPages in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'NearbyPages' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.