MediaWiki:Admin.js

/* JavaScript here is intended for use by ZW admins */ // importScript('MediaWiki:admin.js'); //

// // addPortletLinks // Adds the following links: // 'Page logs' in the toolbox (doesn't display on special pages) // 'User rights' in the toolbox (only works for admins on User and User talk pages) // addOnloadHook(function {      // Displays link for logs of all pages except special pages    if ( wgCanonicalNamespace != "Special" )    addPortletLink( "p-tb", "/index.php?title=Special:Log&page=" + encodeURIComponent(wgPageName), "Page logs", "t-logs");

//User rights link if (rights_isAdmin && wgNamespaceNumber == "2" && wgNamespaceNumber == "3") addPortletLink( "p-tb",                    "/Special:Userrights/"+wgTitle,                    'User rights', "t-userrights", 'User rights for "'+wgTitle+'"'); }); //

// // Patrol tools // File:Krinkle_AjaxPatrolLinks.js // importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/AjaxPatrolLinks.js&action=raw&ctype=text/javascript');