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 |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
/* For Extension Usage Statistics */ | |||
/** Main Page layout fixes ********************************************************* | /** Main Page layout fixes ********************************************************* | ||
* | * | ||
Line 8: | Line 10: | ||
if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') | if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') | ||
$(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' } )