Suradnik:Zeljko/extraeditbuttons.js (2)
//
//============================================================ // en: ADD SOME EXTRA BUTTONS TO THE EDITPANEL //============================================================ function InsertButtonsToToolBar() { //Razdvojba mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://up.wiki.x.io/wikipedia/commons/6/62/Button_desambig.png", "speedTip": "Razdvojba", "tagOpen": "{{Razdvojba}}", "tagClose": "", "sampleText": ""} //Ref dodaj mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://up.wiki.x.io/wikipedia/commons/c/c4/Button_ref.png", "speedTip": "Ref-name", "tagOpen": "<ref name=\"", "tagClose": "\"></ref>", "sampleText": ""} //Ref druga mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://up.wiki.x.io/wikipedia/commons/c/c4/Button_ref.png", "speedTip": "Ref-dupla", "tagOpen": "<ref name=\"", "tagClose": "\" />", "sampleText": ""} //Ref podnaslov mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://up.wiki.x.io/wikipedia/commons/8/8a/Ref-button-bg.png", "speedTip": "Reference {{i<!-- interwiki -->zvori}}", "tagOpen": "== Reference ==\n{{izvori}}\n", "tagClose": "", "sampleText": ""} } $( InsertButtonsToToolBar ); //