MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
AArleo PhD (talk | contribs) No edit summary |
AArleo PhD (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') | if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') | ||
$(function () { | $(function () { | ||
addPortletLink('p-lang', 'http://meta.wikimedia.org/wiki/List_of_Wikipedias', | mw.util.addPortletLink('p-lang', 'http://meta.wikimedia.org/wiki/List_of_Wikipedias', | ||
'Complete list', 'interwiki-completelist', 'Complete list of Wikipedias') | 'Complete list', 'interwiki-completelist', 'Complete list of Wikipedias') | ||
var nstab = document.getElementById('ca-nstab-main') | var nstab = document.getElementById('ca-nstab-main') |
Latest revision as of 12:40, 17 July 2018
/* Any JavaScript here will be loaded for all users on every page load. */ /* For Extension Usage Statistics */ /** Main Page layout fixes ********************************************************* * * Description: Adds an additional link to the complete list of languages available. * Maintainers: [[User:AzaToth]], [[User:R. Koot]], [[User:Alex Smotrov]] */ if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') $(function () { mw.util.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') nstab.firstChild.firstChild.nodeValue = 'Main Page' } )