Widget:InteractiveMaps

da Pokémon Central Wiki, l'enciclopedia Pokémon in italiano.
Jump to navigation Jump to search

This widget loads CSS and js used to have interactive maps.

The plugin is loaded through MediaWiki's ResourceLoader that avoids duplicate loadings, so it is possible to include this widget as many times as you want in a single page. However, do note that the plugin supports only one interactive map per page.

The components of this plugins (the CSS and js code) are taken from or heavily based on work by Jesús Martínez (User Ciencia Al Poder). All due credits to the original author.

<script> RLQ.push(async function() {

   // I know this is terrible, but nothing else seems to work
   while(typeof jQuery === 'undefined') { await new Promise(r => setTimeout(r, 1000)); }; // This is a sleep
   mw.loader.load('/index.php?title=MediaWiki:InteractiveMaps.js&action=raw&ctype=text/javascript');

}); </script>