admin, Bureaucrats, Administrators
58
edits
(Wrap addPortletLink reference) |
|||
Line 88: | Line 88: | ||
var metaBase = "https://secure.wikimedia.org/wikipedia/meta"; | var metaBase = "https://secure.wikimedia.org/wikipedia/meta"; | ||
} else { | } else { | ||
var metaBase = " | var metaBase = "https://meta.wikimedia.org"; | ||
} | } | ||
importScriptURI(metaBase+"/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400") | importScriptURI(metaBase+"/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400") | ||
Line 419: | Line 419: | ||
* Maintainers: [[User:AzaToth]], [[User:R. Koot]], [[User:Alex Smotrov]] | * Maintainers: [[User:AzaToth]], [[User:R. Koot]], [[User:Alex Smotrov]] | ||
*/ | */ | ||
// CLWB-214: wrap ensuring mediawiki.util is loaded. | |||
if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') | mw.loader.using(['mediawiki.util'] ).then( function () { | ||
if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') | |||
addOnloadHook(function () { | |||
addPortletLink('p-lang', 'http://meta.wikimedia.org/wiki/List_of_Wikipedias', | |||
'Complete list', 'interwiki-completelist', 'Complete list of Wikipedias') | |||
var nstab = document.getElementById('ca-nstab-main') | |||
if (nstab && wgUserLanguage=='en') { | |||
while (nstab.firstChild) nstab = nstab.firstChild | |||
nstab.nodeValue = 'Main Page' | |||
} | |||
} | } | ||
} | ) | ||
) | } ); | ||