User:Trizek/vector.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
importScript('User:Coyau/ToolbarMH.js')

/*
function addCustomButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) {
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {"imageId": imageId,
     "imageFile": imageFile,
     "speedTip": speedTip,
     "tagOpen": tagOpen,
     "tagClose": tagClose,
     "sampleText": sampleText};
}


addCustomButton('http://upload.wikimedia.org/wikipedia/commons/6/6e/Vector_toolbar_category_button.png', 'Category', '[[Category:', ']]', '', 'mw-editbutton-categorie');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Wiki_Loves_Monuments_Logo_notext.svg/60px-Wiki_Loves_Monuments_Logo_notext.svg.png', 'WLM', '{{subst'+':User:Trizek/WLM|', '}} ~~'+'~~', '', 'mw-editbutton-wlm');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Wiki_Loves_Monuments_Logo_notext.svg/60px-Wiki_Loves_Monuments_Logo_notext.svg.png', 'WLM', '{{subst'+':User:Trizek/WLM2|', '}} ~~'+'~~', '', 'mw-editbutton-wlm');
*/