Anonymous

Difference between revisions of "MediaWiki:Common.js"

From Clicklaw Wikibooks
no edit summary
(Wrap addPortletLink reference)
Line 423: Line 423:
     if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page')  
     if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page')  
         addOnloadHook(function () {
         addOnloadHook(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')