User:Nemo bis/monobook.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
mw.loader.using('mediawiki.action.edit', function () {
var button = {
id: 'button-support',
imageFile: '//upload.wikimedia.org/wikipedia/commons/f/f0/Btn_infotexto.png',
speedTip: 'Support request',
//<nowiki>
tagOpen: '{{support|status=open|project=|dev=',
tagClose: '}}',
//</nowiki>
sampleText: 'Insert dev here'
};
mw.toolbar.addButton(
button.imageFile,
button.speedTip,
button.tagOpen,
button.tagClose,
button.sampleText,
button.id,
button.id
);
});