MediaWiki:Gadget-ChatmodButtons.js

// // BEGIN MW GADGET // ********* // Edit buttons to add chatban/chatunban templates // Made by Callofduty4 // *********

if (wgAction == "edit" || wgAction == "submit") {

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/5/53/Banned_button.png", "speedTip": "Banned from Chat Template", "tagOpen": "~"+""+"~", "sampleText": "" };		mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/1/12/Unbanned_button.png", "speedTip": "Unbanned from Chat Template", "tagOpen": "~"+""+"~", "sampleText": "" };	} }

// END MW GADGET //