Wikipedista:Chmee2/vector.js
Poznámka: Po uložení musíte vyprázdnit mezipaměť vašeho prohlížeče, jinak změny neuvidíte.
mw.loader.using('mediawiki.action.edit', function () {
var button = { id: 'button-comment',
imageFile: 'http://upload.wikimedia.org/wikipedia/commons/a/a5/Buttonexperimenty.png',
speedTip: 'Experimenty',
tagOpen: '\x7b\x7bsubst:experimenty}} \x7E\x7E\x7E\x7E',
tagClose: '',
sampleText: ''
};
mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
var button = { id: 'button-comment',
imageFile: 'http://upload.wikimedia.org/wikipedia/commons/1/16/Buttonexperimenty2.png',
speedTip: 'Experimenty2',
tagOpen: '\x7b\x7bsubst:experimenty2}} \x7E\x7E\x7E\x7E',
tagClose: '',
sampleText: ''
};
mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
var button = { id: 'button-comment',
imageFile: 'http://upload.wikimedia.org/wikipedia/commons/4/4a/Button_welcome.png',
speedTip: 'Vítejte',
tagOpen: '\x7b\x7bsubst:vítejte}} \x7E\x7E\x7E\x7E',
tagClose: '',
sampleText: ''
};
mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
var button = { id: 'button-comment',
imageFile: 'http://upload.wikimedia.org/wikipedia/commons/f/f8/Button_Tool_commons.png',
speedTip: 'Commons',
tagOpen: '\x7b\x7bCommons|',
tagClose: '}}',
sampleText: ''
};
mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
var button = { id: 'button-comment',
imageFile: 'http://upload.wikimedia.org/wikipedia/commons/6/6c/Button_commons.png',
speedTip: 'CommonsPresun',
tagOpen: '\x7b\x7bsubst:Používejte Commons}} \x7E\x7E\x7E\x7E',
tagClose: '',
sampleText: ''
};
mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
var button = { id: 'button-comment',
imageFile: 'http://upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png',
speedTip: 'Citace elektronické monografie (webu)',
tagOpen: '<ref>\x7b\x7bCitace elektronické monografie\n | příjmení = \n | jméno = \n | odkaz na autora = \n | titul = \n | url = \n | datum vydání = \n | datum aktualizace = \n | datum přístupu = ' + (y = new Date().getFullYear ()) + '-' + (m = new Date ().getMonth () + 1) + '-' + (d = new Date ().getDate ()) + '\n | vydavatel = \n | místo = \n | jazyk = \n}}</ref>',
tagClose: '',
sampleText: ''
};
mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
});