Extension:NearbyPages/en
File:OOjs UI icon information-progressive.svg | <translate> This extension is maintained by the [[<tvar|1>Special:MyLanguage/Reading/Web</>|Web team]].</translate> |
NearbyPages Release status: stable |
|
---|---|
Description | Provides Special:Nearby |
Latest version | 1.40 |
MediaWiki | 1.39 |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | README |
1.39 | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the NearbyPages extension if it is available at translatewiki.net | |
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:Nearby
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
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/NearbyPages</tvar>|Download]] and move the extracted <tvar name=name>
NearbyPages
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NearbyPages - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'NearbyPages' ); $wgNearbyPagesUrl = "{$wgScriptPath}/api.php";
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Using with local data
Nearby can be populated with articles on your wiki by installing extension:Geodata.
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
File:OOjs UI icon information-progressive.svg |
- Pages with script errors
- Pages with broken file links
- Stable extensions/en
- Extensions with invalid or missing type/en
- Extensions with manual MediaWiki version
- GPL licensed extensions/en
- Extensions in Wikimedia version control/en
- All extensions/en
- Extensions not in ExtensionJson
- Extensions used on Wikimedia/en