<?php
-// This extension depends on no other extension.
+/* This extension creates a map using OpenLayers to show sledrun details and sledrun overviews.
+ *
+ * This extension depends on no other extension.
+ *
+ * Definition:
+ * <wrgmap lat="47.267648" lon="11.40465" zoom="10"/>
+ * Shows icons for all sledruns.
+ * lat, lon and zoom are optional.
+ *
+ *
+ *
+ *
+ * <wrmap lat="47.267648" lon="11.40465" zoom="10" width="550" height="400">
+ *
+ * <gasthaus wiki="Rumer Alm (Gasthaus)" name="Rumer Alm">
+ * 47.11 N 12.53 E
+ * </gasthaus>
+ *
+ * <gasthaus name="Enzianhuette">
+ * 47.11 N 12.53 E
+ * </gasthaus>
+ *
+ * <bushaltestelle name="Rum Sanatorium">
+ * 47.11 N 12.53 E
+ * </bushaltestelle>
+ *
+ * <rodelbahn>
+ * 47.11 12.53
+ * 19.33 12.12
+ * </rodelbahn>
+ *
+ * <gehweg>
+ * 23.12 12.12
+ * 12.12 12.12
+ * </gehweg>
+ *
+ * <alternative>
+ * 12.23 32.12
+ * 12.22 12.22
+ * </alternative>
+ *
+ * <lift>
+ * 23.23 23.12
+ * 12.12 12.12
+ * </lift>
+ *
+ * <linie farbe="#232321" dicke="5">
+ * 23.23 23.12
+ * 12.12 12.12
+ * </linie>
+ *
+ * <punkt name="Brunnen">
+ * 23.23 23.12
+ * </punkt>
+ *
+ * </wrmap>
+ * lat, lon and zoom are optional.
+ */
$wgExtensionCredits['parserhook'][] = array(
'name' => 'Winterrodeln Map',
- 'version' => '2.1.1',
+ 'version' => '3.0.0',
'author' =>'Philipp Spitzer',
'url' => 'http://www.winterrodeln.org/trac/wiki/WrMap',
- 'description' => 'This extension creates a map using OpenLayers to show sledruns.'
+ 'description' => 'This extension creates a map using OpenLayers to show sledrun details and sledrun overviews.'
);
function wrMapParserFirstCallInit($parser) {
$parser->setHook('wrgmap', 'WrMap::render');
+ $parser->setHook('wrmap', 'WrMap::render');
return true;
}