MediaWiki:Gadget-Gmaps.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
/*global mw, jQuery*/
/*jshint strict:false*/

if ( mw.config.get( 'wgNamespaceNumber' ) === 14 ) {
	$( function() {
		var refLink = 'https://kmlexport.toolforge.org/?' + $.param( {
			project: 'Commons',
			usecache: 1,
			article: mw.config.get( 'wgPageName' ),
			secure: true
		} );
		mw.util.addPortletLink( 'p-cactions', 'https://maps.google.com/maps?q=' + encodeURIComponent( refLink ), 'Map', 'ca-mapg' );
	} );
}