User:Jäzzi/sidebar.js

$(function(sidebar) {   $('#p-cactions').after(' My Tools     ');    addPortletLink('p-pql', '/wiki/Special:RecentChanges', 'Recent Changes');    addPortletLink('p-pql', '/wiki/Special:Contact/general', 'Special:Contact');    addPortletLink('p-pql', '/wiki/Special:RandomPage', 'Random Page');    addPortletLink('p-pql', '/wiki/Special:WhatLinksHere/' + wgPageName, 'What Links Here');    addPortletLink('p-pql', '/wiki/Special:CreatePage', 'Create a New Page');    addPortletLink('p-pql', '/wiki/Special:Upload', 'Upload');    addPortletLink('p-pql', '/wiki/Special:MultipleUpload', 'Multiple Upload');    addPortletLink('p-pql', '/wiki/Forum:Index', 'Forums');    if (wgCanonicalNamespace === "Message_Wall") {        addPortletLink('p-pql', '/wiki/Message_Wall:J%C3%A4zzi', 'Messages');    }    else {        addPortletLink('p-pql', '/wiki/User_talk:J%C3%A4zzi', 'Messages');    }    addPortletLink('p-pql', '/wiki/Special:Disambiguations', 'Disambigs'); addPortletLink('p-pql', '/wiki/Special:SpecialPages', 'Special Pages'); addPortletLink('p-pql', '/wiki/Special:ListRedirects', 'Redirects'); addPortletLink('p-pql', '/wiki/Special:Categories', 'Categories'); if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" || wgCanonicalNamespace == "User_blog") { addPortletLink('p-pql', '/wiki/Special:Editcount/' + wgPageName, 'Edit Count'); addPortletLink('p-pql', '/index.php?title=Special:Log&user=' + wgPageName, 'Logs'); addPortletLink('p-tb', '/wiki/Special:Contributions/' + wgPageName, 'Contributions'); addPortletLink('p-tb', '/index.php?title=Special:Log&user=' + wgPageName, 'Logs'); addPortletLink('p-tb', '/wiki/Special:Block/' + wgPageName, 'Block user'); addPortletLink('p-tb', '/wiki/Special:EmailUser/' + wgPageName, 'E-mail this user'); addPortletLink('p-pql', '/wiki/Special:Editcount/', 'Edit Count'); }   else { if (wgCanonicalNamespace === "Message_Wall") { var curMwUserName = encodeURIComponent(wgTitle); addPortletLink('p-pql', '/wiki/Special:Editcount/' + curMwUserName, 'Edit Count'); addPortletLink('p-pql', '/index.php?title=Special:Log&user=' + curMwUserName, 'Logs'); addPortletLink('p-tb', '/wiki/Special:Contributions/' + curMwUserName, 'Contributions'); addPortletLink('p-tb', '/index.php?title=Special:Log&user=' + curMwUserName, 'Logs'); addPortletLink('p-tb', '/wiki/Special:Block/' + curMwUserName, 'Block user'); addPortletLink('p-tb', '/wiki/Special:EmailUser/' + curMwUserName, 'E-mail this user'); }   } });