Pengguna:Iwan Novirion/Compact Navigation.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
k Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
k Maintenance: Replacing legacy global variable (phab:T72470)
Baris 56:
addPortletLink('new-actions', getElementUrl(caEdit), edittxt);
if (caHistory) addPortletLink('new-actions', getElementUrl(caHistory), 'history');
addPortletLink('new-actions', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:Log&page=' + wgPageName, 'page log');
if (caMove) addPortletLink('new-actions', getElementUrl(caMove), 'move');
if (caProtect) addPortletLink('new-actions', getElementUrl(caProtect), 'protect');
Baris 72:
addPortletLink('new-page', getElementUrl(caMain) + '?diff=cur&oldid=prev', 'last');
}
addPortletLink('new-page', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:Log&page=' + wgPageName, 'page log');
// If we're in Userspace then add additional items to show info
Baris 83:
}
addPortletLink('new-page', wgServer + "/wiki" + '/Special:Contributions/' + uname, 'contribs');
if (caDelete) addPortletLink('new-page', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:DeletedContributions&target=' + uname, 'deleted contribs');
addPortletLink('new-page', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:Log&user=' + uname, 'user log');
addPortletLink('new-page', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:Log&type=block&page=User:' + uname, 'block log');
if (caDelete) addPortletLink('new-page', wgServer + "/wiki" + '/Special:Blockip/' + uname, 'block');
}
Baris 101:
addPortletLink('new-talk', getElementUrl(caTalk) + '?diff=cur&oldid=prev', 'last');
}
addPortletLink('new-talk', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:Log&page=' + wgPageName, 'page log');
});