MediaWiki:Gadget-WarningButtons.js

// // BEGIN MW GADGET // ********* // Edit buttons to add warnings // Made by Callofduty4 // *********

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

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/6/61/Leaked_button.png", "speedTip": "Leaked Template", "tagOpen": "~"+""+"~", "sampleText": "" };		mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/4/4c/Bad_Edit_button.png", "speedTip": "Leaked Template", "tagOpen": "", "tagClose": "", "sampleText": "PAGE" };		mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/c/ce/Trolling_button.png", "speedTip": "Trolling Template", "tagOpen": "~"+""+"~", "sampleText": "" };		mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/0/0a/NoIRL_button.png", "speedTip": "No IRL Template", "tagOpen": "", "tagClose": "", "sampleText": wgUserName };		mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/e/e5/Licensing_button.png", "speedTip": "Bad Licensing Template", "tagOpen": "~"+""+"~", "sampleText": "" };		mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/7/7b/DDD_button.png", "speedTip": "Bad Licensing Template", "tagOpen": "~"+""+"~", "sampleText": "" };		mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/7/7b/DDD_button.png", "speedTip": "Bad Licensing Template", "tagOpen": "~"+""+"~", "sampleText": "" };		mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/callofduty/images/7/7b/DDD_button.png", "speedTip": "Bad Image Title Template", "tagOpen": "", "tagClose": "", "sampleText": "NAME OF IMAGE" };	} }

// END MW GADGET //