Suradnik:Neno Koš/extraeditbuttons.js
Izgled
Napomena: Nakon objave možda ćete trebati očistiti međuspremnik svog preglednika kako biste vidjeli promjene.
- Firefox / Safari: držite Shift i pritisnite Reload, ili pritisnite bilo Ctrl-F5 ili Ctrl-R (⌘-R na Macu)
- Google Chrome: pritisnite Ctrl-Shift-R (⌘-Shift-R na Macu)
- Internet Explorer / Edge: držite Ctrl i kliknite Refresh, ili pritisnite Ctrl-F5
- Opera: pritisnite Ctrl-F5.
//<pre>
//============================================================
// en: ADD SOME EXTRA BUTTONS TO THE EDITPANEL
//============================================================
function InsertButtonsToToolBar()
{
//Ref dodaj
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c4/Button_ref.png",
"speedTip": "Ref-name",
"tagOpen": "<ref name=\"",
"tagClose": "\"></ref>",
"sampleText": ""}
//Ref druga
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c4/Button_ref.png",
"speedTip": "Ref-dupla",
"tagOpen": "<ref name=\"",
"tagClose": "\" />",
"sampleText": ""}
//Ref podnaslov
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/8a/Ref-button-bg.png",
"speedTip": "Reference {{reflist}}",
"tagOpen": "== Reference ==\n{{reflist}}\n",
"tagClose": "",
"sampleText": ""}
}
$( InsertButtonsToToolBar );
//</pre>