User:Nemo bis/monobook.js

From translatewiki.net
Jump to: navigation, search
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
        );
});