MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

var button_h2 = { "imageFile": "http://athile.net/library/wiki/skins/common/images/button_h2.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "h2", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "== ", // the text to use to mark the beginning of the block "tagClose": " ==",     // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button_h2);

var button_h3 = { "imageFile": "http://athile.net/library/wiki/skins/common/images/button_h3.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "h3", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "=== ", // the text to use to mark the beginning of the block "tagClose": " ===",     // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button_h3);

var button_h4 = { "imageFile": "http://athile.net/library/wiki/skins/common/images/button_h4.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "h4", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "==== ", // the text to use to mark the beginning of the block "tagClose": " ====",     // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button_h4);

var button_h5 = { "imageFile": "http://athile.net/library/wiki/skins/common/images/button_h5.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "h5", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "===== ", // the text to use to mark the beginning of the block "tagClose": " =====",     // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button_h5);

var button2 = { "imageFile": "http://athile.net/library/wiki/skins/common/images/button_code.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "code tag", // text shown in a tooltip when hovering the mouse over the button "tagOpen": " ",     // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button2);

var button = { "imageFile": "http://athile.net/library/wiki/skins/common/images/button_cpp.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "Source Code", // text shown in a tooltip when hovering the mouse over the button "tagOpen": " ",     // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button);