Camera-wiki.org:Monobook.js
//see also http://community.wikia.com/wiki/User:Dinoguy1000/global.js
importScript('User:Dinoguy1000/newmessageshistory.js'); importStylesheet('User:Dinoguy1000/cardtable.css');
/* some addPortletLink() documentation:
function addPortletLink( 'HTML ID of the menu box to add the link to', 'full URL of the link's target page[1]', 'text to be displayed for the link', 'HTML ID for the inserted link', 'tooltip description to be displayed when hovering over the link', 'keyboard shortcut for the link' ); 1: this can be a literal URL, or JS variables such as wgServer can be used to enhance the code's portability a little bit of cleverness can be used to generate dynamic URLs as well; for instance, "wgServer + '/wiki/Special:Log?page=' + wgPageName" will link to the current page's logs
- /
addOnloadHook( function() {
if( wgCanonicalNamespace != 'Special' ) { addPortletLink( 'p-tb', wgServer + '/wiki/Special:Log?page=' + wgPageName, 'View logs for this page', 'ca-viewlogs', 'View the logs for this page, such as renames, deletions, and protections', ); } addPortletLink( 'p-community', wgServer + '/wiki/Special:Random', 'Random page', 'ca-randompage', 'View a random page', ); addPortletLink( 'p-community', wgServer + '/wiki/Special:Randomincategory/Duel_Monsters_cards', 'Random card', 'ca-randomcard', 'View a random card', ); addPortletLink( 'p-community', wgServer + '/wiki/Special:Random/Template', 'Random template', 'ca-randomtemplate', 'View a random template', ); addPortletLink( 'p-community', wgServer + '/wiki/Special:Random/Category', 'Random category', 'ca-randomcategory', 'View a random category', ); addPortletLink( 'p-community', wgServer + '/wiki/Special:Random/File', 'Random file', 'ca-randomfile', 'View a random file', );
} );