User:Snævar/common.js

mw.loader.using('mediawiki.util').then( (function(mw, $){ if (mw.config.get( 'wgNamespaceNumber' ) != 0) return; $( function {       mw.util.addPortletLink( "p-tb", "http://tools.wmflabs.org/translate/text.php?article=" + mw.util.wikiUrlencode(mw.config.get( 'wgTitle' )) + "&from=en&to=is&ns=0", "Þýða tengla", "t-translate-links", "Finna samsvarandi iswiki tengla í þessari grein", null, null );   }); })(mediaWiki, jQuery));