MediaWiki:Common.js: Difference between revisions

From WikiBound, your community-driven EarthBound/Mother wiki
Jump to navigationJump to search
no edit summary
 
No edit summary
Line 1: Line 1:
<pre>
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


Line 336: Line 337:
}
}
addOnloadHook(patroltab);
addOnloadHook(patroltab);
//
// --------------------------------------------------------
// last diff
// Adds a tab which gives the latest diff for a page.
// --------------------------------------------------------
function lastdiff() {
addPortletLink("p-cactions", wgServer +  "/starfox/w/index.php?title=" + encodeURIComponent(wgPageName) + "&diff=cur&oldid=prev",
        "last", "ca-last", "Show most recent diff", '2');
}
if (wgCanonicalNamespace != 'Special' && wgAction != 'edit' && wgAction != 'delete' && wgAction != 'watch' && wgAction
!= 'unwatch' && wgAction != 'protect'){
addOnloadHook(lastdiff);
}
//
//


Line 358: Line 345:
importStylesheetURI("http://zeldawiki.org/User:Matt/RC_Colors.css" + "&ctype=text/css&action=raw");
importStylesheetURI("http://zeldawiki.org/User:Matt/RC_Colors.css" + "&ctype=text/css&action=raw");
//
//
</pre>

Navigation menu