„MediaWiki:Gadget-WikiMiniAtlas.js“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
Explizite Einblendung bzw. Nicht-Ausblendung des „genialen“ Hacks Vorlage:Karte, vgl. https://de.wikipedia.org/w/index.php?title=Wikipedia:Technik/Werkstatt&diff=154370843&oldid=154359939&diffonly=0#MediaWiki:Gadget-osm.js |
2018-08-24 |
||
Zeile 4: | Zeile 4: | ||
* Maintainers: [[w:User:Dschwen]] |
* Maintainers: [[w:User:Dschwen]] |
||
*/ |
*/ |
||
( function ( mw, $ ) { |
|||
"use strict"; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} ); |
|||
⚫ | |||
}( window.mediaWiki, window.jQuery ) ); |
|||
⚫ | |||
} ); |
Version vom 3. September 2018, 17:37 Uhr
/**
* WikiMiniAtlas is a popup click and drag world map.
* See [[meta:WikiMiniAtlas]] for more information.
* Maintainers: [[w:User:Dschwen]]
*/
( function ( mw, $ ) {
"use strict";
mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&bcache=1&maxage=86400' );
mw.hook( 'WikiMiniAtlas.load' ).add( function () {
$( '#coordinates' ).show(); // [[Vorlage:Karte]]
} );
}( window.mediaWiki, window.jQuery ) );