Bureaucrats, editor, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
47,390
edits
No edit summary |
No edit summary |
||
Line 12:
var page = mw.config.get('wgPageName');
addLink('Discord');
// addLink('Discord', 'discord', page);
// addLink('the RuneScape Wiki', 'rsw', page);
// addLink('the RuneScape Classic Wiki', 'classicrsw', page);
Line 69:
}
//function addLink(wikiname, interwiki, page) {
// var url = mw.util.getUrl(interwiki + ':' + page);
// var title = wikiname + ' also has an article on ' + page + '.';
// // wikipedia links aren't forwarded - see [[Special:Interwiki]]
// if (interwiki === 'wikipedia') {
// url = '//en.wikipedia.org/wiki/' + encodeURIComponent(page);
// }
// // Special and MediaWiki namespaces
// if (namespace === -1 || namespace === 8) {
// url += window.location.search; // include url parameters
// title = 'Open this page on ' + wikiname + '.';
// }
// var link = mw.util.addPortletLink('p-namespaces', url, '',
// // no text - use background-image instead
// 'gadget-external-' + interwiki,
// // button id
// title // title text shown on hover
// );
// // for styling all links at once - addPortletLink only sets an id
// $(link).addClass('gadget-external-icon');
//}
})(jQuery, mediaWiki);
|