Extension:IncludeBikemap

What can this extension do?
The IncludeBikemap extension is a simple tag extension to embed a bicycle tour map from bikemap.net in a mediawiki page. Bikemap.net offers to embed maps in an iframe in personal homepages (note: this extension is not offered by bikemap.net but written by a user).

Usage
ID

ID is the number of the bike route in the url. For example ID for www.bikemap.net/route/817755 is 817755.


 * Optionally

Change the size of the embeded map:

ID

Size can be "small", "medium" or "big".

ToDo
Not yet performed:


 * extended view (e.g. show altitudes of the route in a small diagram)
 * change heigth and width manually as needed (currently only three fixed sizes are supported)
 * make openstreetmap the default if possible
 * choose the map (osm, googlemaps) with tag attribute

Code:


 * cleaner code design
 * better code commenting

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

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

Changelog
0.1.1: (2011-03-05) Fixed some bad code issues (see Extension talk:IncludeBikemap): changed fundamental variables design, unneccessary escaping, bad wfMsgForContent use

0.1: (2011-03-05) Introduce the extension on mediawiki.org

Sites that use IncludeBikemap

 * Fahrrad-Projekt-Wiki