Extension:Mapsources

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Mapsources

Release status: beta

Implementation Special page
Description The Mapsources extension tries to incorporate Toolserver's geohack capabilities into MediaWiki.
Author(s) Egil Kvaleberg, Magnus Manske, Tim Landscheidt (Tim.landscheidtTalk)
Last version 0.2dev (2011-12-30)
MediaWiki 1.19alpha
PHP 5.2.13
License GPL 3
Download Project page

Git [Help]
Commit history

Check usage (experimental)

Contents

[edit] What can this extension do?

The Mapsources extension tries to incorporate Toolserver's geohack capabilities into MediaWiki. The objectives are to:

  • Spread load and traffic from Toolserver's geohack over the Wikimedia server farm,
  • increase availability and decrease response time,
  • allow squids to cache anonymous users' queries,
  • allow mapsources template to be shown in the user's skin,
  • allow mapsources template to make use of parser functions and other goodies and
  • enable dump reusers to use coordinates without setting up a separate Toolserver.

Intermediate term objective is to:

  • Allow users to configure that they will be:
    • immediately redirected/redirected after a x second delay
    • to:
      • Mapservice A for coordinates in region CH,
      • Mapservice B for coordinates in region DE-HH,
      • Mapservice C for coordinates in region DE and
      • Mapservice D for all others.

[edit] Usage

Mapsources provides a special page Special:Mapsources similar to Special:Booksources. It uses parameters given (lat, lon, type, dim, pagename) to fill a template Template:Mapsources. Template:Mapsources is in structure similar to Template:GeoTemplate used by geohack with the exception that parameters are delimited by three curly brackets ("{{{scale}}}") as in other MediaWiki templates.

[edit] Download instructions

Download the repository from GitHub and copy the code to $IP/extensions/Mapsources/.

[edit] Installation

To install this extension, add the following to LocalSettings.php:

require_once ("$IP/extensions/Mapsources/Mapsources.php");

Caveat: There are some input checks still missing that could lead to security vulnerabilities. Use at your own risk.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox