User:Zhuyifei1999/common.js: Difference between revisions

Jump to navigation Jump to search
More
(Created page with "/* easyblock.js - Script to quickly block spambots By Legoktm, with assistance from Ori.livneh and MZMcBride Adds two tabs, "OP: Spambot block" and "...")
 
(More)
Line 88: Line 88:
         );
         );
   
   
}
/**
* Add custom buttons in the toolbar
*
* @source: http://www.mediawiki.org/wiki/Snippets/Custom_buttons_in_the_toolbar
* @rev: 1
*/
if ( $.isArray( window.mwCustomEditButtons ) ) {
// Add button to insert a new wikitable
mwCustomEditButtons[mwCustomEditButtons.length] = {
  'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/0/04/Button_array.png',
  'speedTip': 'Insert new wikitable',
  'tagOpen': '{| class="wikitable"\n|-\n',
  'tagClose': "\n|}",
  'sampleText': "! head 1\n! head 2\n! head 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"
};
}
}
checkuser, Administrators
2,635

edits

Navigation menu