User:Moonythedwarf/wikimap.js

var wikimap = { "Wikipedia": "https://en.wikipedia.org/wiki/Main_Page", "Wikidata": "https://wikidata.org/wiki/Wikidata:Main_Page", "Wikiversity": "https://en.wikiversity.org/wiki/Wikiversity:Main_Page", "Esolang": "https://esolangs.org/wiki/Main_Page", };

$.when(mw.loader.using('mediawiki.util'), $.ready).then(function { 	for (var x in wikimap) {		if (mw.config.get("wgSiteName") !== x) {			mw.util.addPortletLink("p-navigation", wikimap[x], x);		}	} });