Misplaced Pages

User:Animum/headers.js: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Animum Browse history interactively← Previous editContent deleted Content added
Revision as of 00:04, 22 February 2008 view sourceAnimum (talk | contribs)30,489 editsm Undid revision 193156016 by Animum (talk)← Previous edit Latest revision as of 19:26, 28 November 2021 view source Ladsgroup (talk | contribs)Extended confirmed users, IP block exemptions, Pending changes reviewers, Rollbackers20,548 editsm Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
addOnloadHook(function () { $(function () {
addPortletLink('p-personal', 'http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate', mw.util.addPortletLink('p-personal', 'http://tools.wmflabs.org/supercount/index.php',
'wannabe kate', 'pt-wannabe kate', 'wannabe kate', null, document.getElementById('pt-preferences')); 'editcount', 'pt-editcount', 'editcount', null, document.getElementById('pt-preferences'));
addPortletLink('p-personal', 'http://en.wikipedia.org/search/?title=Special:Log&user=Animum', mw.util.addPortletLink('p-personal', 'http://en.wikipedia.org/search/?title=Special:Log&user=' + encodeURIComponent(mw.config.get('wgUserName')),
'logs', 'pt-mylogs', 'logs', null, document.getElementById('pt-watchlist')); 'logs', 'pt-mylogs', 'logs', null, document.getElementById('pt-watchlist'));
addPortletLink('p-personal', wgArticlePath.replace(/\$1/, 'Misplaced Pages:Administrator intervention against vandalism'), mw.util.addPortletLink('p-personal', mw.config.get('wgArticlePath').replace(/\$1/, 'Misplaced Pages:Administrator intervention against vandalism'),
'AIV', 'pt-AIV', 'AIV', null, document.getElementById('pt-preferences')); 'AIV', 'pt-AIV', 'AIV', null, document.getElementById('pt-preferences'));
addPortletLink('p-personal', wgArticlePath.replace(/\$1/, 'User:Animum/monobook.js'), mw.util.addPortletLink('p-personal', mw.config.get('wgArticlePath').replace(/\$1/, 'User:' + encodeURIComponent(mw.config.get('wgUserName')) + '/monobook.js'),
'monobook', 'pt-monobook', 'monobook', null, document.getElementById('pt-preferences')); 'monobook', 'pt-monobook', 'monobook', null, document.getElementById('pt-preferences'));
}); });

Latest revision as of 19:26, 28 November 2021

$(function () {
    mw.util.addPortletLink('p-personal', 'http://tools.wmflabs.org/supercount/index.php',
        'editcount', 'pt-editcount', 'editcount', null, document.getElementById('pt-preferences'));
    mw.util.addPortletLink('p-personal', 'http://en.wikipedia.org/search/?title=Special:Log&user=' + encodeURIComponent(mw.config.get('wgUserName')),
        'logs', 'pt-mylogs', 'logs', null, document.getElementById('pt-watchlist'));
    mw.util.addPortletLink('p-personal', mw.config.get('wgArticlePath').replace(/\$1/, 'Misplaced Pages:Administrator intervention against vandalism'),
        'AIV', 'pt-AIV', 'AIV', null, document.getElementById('pt-preferences'));
    mw.util.addPortletLink('p-personal', mw.config.get('wgArticlePath').replace(/\$1/, 'User:' + encodeURIComponent(mw.config.get('wgUserName')) + '/monobook.js'),
        'monobook', 'pt-monobook', 'monobook', null, document.getElementById('pt-preferences'));
});