Erweiterung:NearbyPages

From mediawiki.org
This page is a translated version of the page Extension:NearbyPages and the translation is 30% complete.
MediaWiki-Erweiterungen
NearbyPages
Freigabestatus: stabil
Beschreibung Bietet Special:Nearby
Letzte Version 1.40
MediaWiki 1.39
Datenbankänderungen Nein
Lizenz GNU General Public License 2.0 oder neuer
Herunterladen
README
  • $wgNearbyPagesNamespaces
  • $wgNearbyRandomButton
  • $wgNearbyRange
  • $wgNearbyPagesWikidataCompatibility
  • $wgNearbyPagesUrl
1.39
Quarterly downloads 14 (Ranked 130th)
Übersetze die NearbyPages-Erweiterung, wenn sie auf translatewiki.net verfügbar ist
Probleme Offene Aufgaben · Einen Fehler melden

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

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens NearbyPages im Ordner extensions/ ablegen.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NearbyPages
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    wfLoadExtension( 'NearbyPages' );
    $wgNearbyPagesUrl = "{$wgScriptPath}/api.php";
    
  • Yes Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.

Using with local data

Nearby can be populated with articles on your wiki by installing extension:Geodata.