User:Wuzur/extraLinks.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
addOnloadHook(function () {
    if (wgCanonicalNamespace != "Special" ) {
      url = wgServer + "/w/index.php?title=Special:Log&page=" + encodeURIComponent(mw.config.get('wgPageName'));
      mw.util.addPortletLink("p-cactions", url, "Logs", "ca-logs");
    }
    url = wgServer + "/wiki/Commons:Deletion_requests/Current_requests";
    mw.util.addPortletLink("p-tb", url, "Deletion Requests", "pt-dr");

    url = wgServer + "/wiki/Category:Candidates_for_speedy_deletion";
    mw.util.addPortletLink("p-tb", url, "Speedy Deletion", "pt-speedy");

    url = wgServer + "/wiki/Category:Commons_backlog";
    mw.util.addPortletLink("p-tb", url, "Backlogs", "pt-backlog");

    url = wgServer + "/wiki/User:Wuzur/Stuff";
    mw.util.addPortletLink("p-participate", url, "Stuff", "pt-stuff");

    url = wgServer + "/wiki/User:Wuzur/Flickr";
    mw.util.addPortletLink("p-participate", url, "Flickr", "pt-flickr");
});