'Winterrodeln Map', 'version' => '2.1.0', 'author' =>'Philipp Spitzer', 'url' => 'http://www.winterrodeln.org/trac/wiki/WrMap', 'description' => 'This extension creates a map using OpenLayers to show sledruns.' ); $wgResourceModules['ext.wrmap'] = array( 'scripts' => array('openlayers/OpenLayers.js', 'wrmap.js'), 'styles' => array('openlayers/theme/default/style.css', 'openlayers/theme/default/google.css'), // When your module is loaded, these messages will be available through mw.msg() //'messages' => array( 'myextension-hello-world', 'myextension-goodbye-world' ), // If your scripts need code from other modules, list their identifiers as dependencies // and ResourceLoader will make sure they're loaded before you. // You don't need to manually list 'mediawiki' or 'jquery', which are always loaded. //'dependencies' => array( 'jquery.ui.datepicker' ), // You need to declare the base path of the file paths in 'scripts' and 'styles' 'localBasePath' => dirname( __FILE__ ), // ... and the base from the browser as well. For extensions this is made easy, // you can use the 'remoteExtPath' property to declare it relative to where the wiki // has $wgExtensionAssetsPath configured: 'remoteExtPath' => 'wrmap', 'position' => 'top' ); $wgAutoloadClasses['WrMap'] = dirname(__FILE__) . '/wrmap.body.php'; $wgHooks['ParserFirstCallInit'][] = 'wrMapParserFirstCallInit'; function wrMapParserFirstCallInit($parser) { $parser->setHook('wrgmap', 'WrMap::render'); return true; } ?>