Extension:NearbyPages - MediaWiki
Jump to content
From mediawiki.org
Translate this page
Languages:
polski
português do Brasil
العربية
中文
Support level: Pending
The support level for this extension is currently under review. The
Reader Growth Team
is the maintainer of last resort for the time being.
MediaWiki extensions manual
NearbyPages
Release status:
stable
Description
Provides Special:Nearby
Latest version
1.40
MediaWiki
1.39
Database changes
No
Parameters
$wgNearbyPagesNamespaces
$wgNearbyPagesUrl
$wgNearbyRange
$wgNearbyPagesWikidataCompatibility
$wgNearbyRandomButton
Licence
GNU General Public License 2.0 or later
Download extension
Git
Browse repository
GitHub
Gerrit code review
Git commit log
Download source tarball
README
1.39
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:
Installation
and move the extracted
NearbyPages
folder to your
extensions/
directory.
Developers and code contributors should install the extension
from Git
instead, using:
cd
extensions/
git
clone
Add the following code at the bottom of your
LocalSettings.php
file:
wfLoadExtension
'NearbyPages'
);
$wgNearbyPagesUrl
$wgScriptPath
/api.php"
Done
– Navigate to
Special:Version
on your wiki to verify that the extension is successfully installed.
Using with local data
Nearby can be populated with articles on your wiki by installing
extension:Geodata
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.
Retrieved from "
Categories
Extensions maintained by Reader Teams
Extensions maintained by Reader Growth
Extensions maintained by Reader Teams - Level Pending
Stable extensions
Extensions with invalid or missing type
GPL licensed extensions
Extensions in Wikimedia version control
All extensions
Extensions used on Wikimedia
Extensions included in Miraheze
Extensions included in ProWiki
Hidden categories:
Extensions without an image
Extensions without a compatibility policy
Extensions with manual MediaWiki version
Extension
NearbyPages
Add topic