MediaWiki:Admin.js

/* JavaScript here is intended for use by ZW admins */ // To use these functions, add the following line to your "user"/monobook.js: // // importScript('MediaWiki:admin.js'); //

// // addLogs // adds a 'page logs' link to the toolbox bar (if the page is a special page, then no link is displayed) // addOnloadHook(function {    if ( wgCanonicalNamespace == "Special" )        return;  // don't display link for special pages

url = wgServer + "/index.php?title=Special:Log&page=" + encodeURIComponent(wgPageName);

addPortletLink("p-tb", url, "Page logs", "pt-logs"); }); //

// // addScript // adds a 'user scripts' link to the toolbox bar, which links to the user's personal monobook.js page //

addOnloadHook(function {    url = wgServer + "/Special:MyPage/monobook.js";

addPortletLink("p-tb", url, "User scripts", "pt-js"); }); //