MediaWiki:Monobook.js: Difference between revisions

Jump to navigation Jump to search
tweaks
(cleanup + removed the reskin parser hack (originally imported from Uncyclopedia) -- it's a rather nasty piece of code and you really should _not_ implement per-page CSS like that)
(tweaks)
Line 2: Line 2:
ta = new Object();
ta = new Object();
ta['pt-userpage'] = new Array('.','My user page');
ta['pt-userpage'] = new Array('.','My user page');
ta['pt-anonuserpage'] = new Array('.','The user page for the ip you\'re editing as');
ta['pt-anonuserpage'] = new Array('.','The user page for the IP you\'re editing as');
ta['pt-mytalk'] = new Array('n','My talk page');
ta['pt-mytalk'] = new Array('n','My talk page');
ta['pt-anontalk'] = new Array('n','Discussion about edits from this ip address');
ta['pt-anontalk'] = new Array('n','Discussion about edits from this IP address');
ta['pt-preferences'] = new Array('','My preferences');
ta['pt-preferences'] = new Array('','My preferences');
ta['pt-watchlist'] = new Array('l','The list of pages you\'re monitoring for changes.');
ta['pt-watchlist'] = new Array('l','The list of pages you\'re monitoring for changes.');
Line 19: Line 19:
ta['ca-delete'] = new Array('d','Delete this page');
ta['ca-delete'] = new Array('d','Delete this page');
ta['ca-undelete'] = new Array('d','Restore the edits done to this page before it was deleted');
ta['ca-undelete'] = new Array('d','Restore the edits done to this page before it was deleted');
ta['ca-move'] = new Array('m','Move this page');
ta['ca-move'] = new Array('m','Move this page to a new name');
ta['ca-watch'] = new Array('w','Add this page to your watchlist');
ta['ca-watch'] = new Array('w','Add this page to your watchlist');
ta['ca-unwatch'] = new Array('w','Remove this page from your watchlist');
ta['ca-unwatch'] = new Array('w','Remove this page from your watchlist');
Line 27: Line 27:
ta['n-portal'] = new Array('','About the project, what you can do, where to find things');
ta['n-portal'] = new Array('','About the project, what you can do, where to find things');
ta['n-currentevents'] = new Array('','Find background information on current events');
ta['n-currentevents'] = new Array('','Find background information on current events');
ta['n-recentchanges'] = new Array('r','The list of recent changes in the wiki.');
ta['n-recentchanges'] = new Array('r','List of recent changes in this wiki');
ta['n-randompage'] = new Array('x','Load a random page');
ta['n-randompage'] = new Array('x','Load a random page');
ta['n-help'] = new Array('','The place to find out.');
ta['n-help'] = new Array('','The place to find help');
ta['n-wikinode'] = new Array('','View our WikiNode');
ta['n-wikinode'] = new Array('','View our WikiNode');
ta['n-sitesupport'] = new Array('','Support us');
ta['n-sitesupport'] = new Array('','Support us');
Line 54: Line 54:
// Redirect button in the editing toolbar on ?action=edit
// Redirect button in the editing toolbar on ?action=edit
mwCustomEditButtons[mwCustomEditButtons.length] = {
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://wikiindex.org/images/c/c8/Button_redirect.png',
'imageFile': 'https://WikiIndex.org/images/c/c8/Button_redirect.png',
'speedTip': 'Redirect to another page',
'speedTip': 'Redirect to another page',
'tagOpen': '#REDIRECT[[',
'tagOpen': '#REDIRECT [[',
'tagClose': ']]',
'tagClose': ']]',
'sampleText': 'Destination'
'sampleText': 'Destination'

Navigation menu