„MediaWiki:Gadget-WikiMiniAtlas.js“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
Maintenance: Remove outdated query parameters 'bcache' and 'maxage'. bcache no longer exits. maxage is not needed (cache will be 30 days and purged on edit). |
Maintenance: Remove redundant aliases for global variables. $ and mw are standard names now. |
||
Zeile 4: | Zeile 4: | ||
* Maintainers: [[w:User:Dschwen]] |
* Maintainers: [[w:User:Dschwen]] |
||
*/ |
*/ |
||
( function ( |
( function () { |
||
"use strict"; |
"use strict"; |
||
mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' ); |
mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' ); |
||
Zeile 10: | Zeile 10: | ||
mw.hook( 'WikiMiniAtlas.load' ).add( function () { |
mw.hook( 'WikiMiniAtlas.load' ).add( function () { |
||
$( '#coordinates' ).show(); // [[Vorlage:Karte]] |
$( '#coordinates' ).show(); // [[Vorlage:Karte]] |
||
} ); |
|||
} ); |
|||
}() ); |
|||
}( window.mediaWiki, window.jQuery ) ); |
Aktuelle Version vom 17. August 2019, 23:02 Uhr
/**
* WikiMiniAtlas is a popup click and drag world map.
* See [[meta:WikiMiniAtlas]] for more information.
* Maintainers: [[w:User:Dschwen]]
*/
( function () {
"use strict";
mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' );
mw.hook( 'WikiMiniAtlas.load' ).add( function () {
$( '#coordinates' ).show(); // [[Vorlage:Karte]]
} );
}() );