Extension:Whats Nearby
From Linux Web Expert
<translate> This extension is currently not actively maintained!</translate> <translate> Although it may still work, any bug reports or feature requests will more than likely be ignored.</translate> |
Whats Nearby Release status: unmaintained |
|
---|---|
Implementation | Parser function |
Description | Provides geolocation information to templates |
Author(s) | James Hong Kong (MWJamestalk) |
Latest version | 1.0.0-alpha |
MediaWiki | 1.23+ |
PHP | 5.3+ |
Database changes | No |
Composer | mediawiki/whats-nearby |
License | GNU General Public License 2.0 or later |
Download | GitHub: README CHANGELOG |
Compatibility:
|
|
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'). |
The Whats Nearby extension that adds geolocation (HTML5) detection information to templates in order to generate adaptive content. See the README file for detailed instructions on how to install and use this extension.
Having the Maps extension installed is a precondition for this extension to work. Best used in conjunction with the Semantic MediaWiki extension, though this is not a hard requirement.
Usage
The #nearby:
parser function allows for the following parameters:
Parameter | Aliases | Type | Default | Example of values (separated by a "|") | Description |
---|---|---|---|---|---|
querytemplate
|
Local libraries,Point of interest | ||||
coordinates
|
47° 37' 13.9368'' N,122° 20' 56.8860'' W | ||||
interval
|
450 | ||||
radius
|
300 m | ||||
limit
|
integer | 1 | |||
max
|
|||||
format
|
category | openlayers | embedded | table | googlemaps | ||||
geolocation
|
boolean | ||||
detectLocation
|
boolean | ||||
watchLocation
|
|||||
nolocation
|
boolean | ||||
localcache
|
no | ||||
controls
|
slider | ||||
class
|
right-side | ||||
querytemplate
|
semantic.nearby.query.tmpl | SightseeingSpot |
- Example
{{#nearby:
|querytemplate=Local libraries,Point of interest
|coordinates=47° 37' 13.9368'' N,122° 20' 56.8860'' W
|radius=300 m
|interval=450
|max=10000
|format=googlemaps
|detectLocation=true
|watchLocation=false
|localCache=300
|controls=slider
|class=extra-nearby-location
}}
See also
Categories:
- Pages with script errors
- Pages with syntax highlighting errors
- Pages with broken file links
- Unmaintained extensions
- Extensions without an image
- Parser function extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- Extensions supporting Composer
- GPL licensed extensions
- Extensions in GitHub version control
- ParserFirstCallInit extensions
- ResourceLoaderGetConfigVars extensions
- All extensions
- Extensions not in ExtensionJson
- Map extensions