User:Kaster/extraeditbuttons.js

// //============================================================ // en: ADD SOME EXTRA BUTTONS TO THE EDITPANEL //============================================================

function InsertButtonsToToolBar { //Звјездица mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/aa/Button_dot1.PNG", "speedTip": "Звјездица", "tagOpen": "*", "tagClose": "", "sampleText": ""} //Крст mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b1/Button_dagger.png", "speedTip": "Krst", "tagOpen": "†", "tagClose": "", "sampleText": ""} //Текст лијево mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/e/ea/Button_align_left.png", "speedTip": "Текст лијево", "tagOpen": " \n", "tagClose": "\n ", "sampleText": "text"} //Текст центрирано mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5f/Button_center.png", "speedTip": "Текст у средини", "tagOpen": " \n", "tagClose": "\n ", "sampleText": "text"} //Табела mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png", "speedTip": "Табела", "tagOpen": "\n{| border='1' \n|- \n| 1 || 2\n|- \n| 3 || 4", "tagClose": "\n|}\n", "sampleText": ""} //Нови ред mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", "speedTip": "Нови ред", "tagOpen": " ", "tagClose": "", "sampleText": ""} //Мали текст mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png", "speedTip": "Мали текст", "tagOpen": " ", "tagClose": " ", "sampleText": "текст"} //Галерија mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png", "speedTip": "Галерија", "tagOpen": "\n", "sampleText": "Слика:FileName.jpg|Текст 1\nСлика:FileName2.jpg|Текст 2"} //Обојен текст mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9a/Button_wiktionary.png", "speedTip": "Боја текста", "tagOpen": " ", "tagClose": " ", "sampleText": "текст"} //Шаблон mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png", "speedTip": "Шаблон", "tagOpen": "", "sampleText": "шаблон"} //Категорија mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5a/Button_category_alt.png", "speedTip": "Kategorija", "tagOpen": "Категорија:",   "tagClose": "", "sampleText": "Категорија"} //За mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c0/Button_support_vote.png", "speedTip": "За", "tagOpen": "", "tagClose": "", "sampleText": ""} //Против mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png", "speedTip": "Против", "tagOpen": "", "tagClose": "", "sampleText": ""} //Референца mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png", "speedTip": "Нова референца", "tagOpen": " ", "sampleText": "Referencirani materijal"} //Референце mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_references_alt.png", "speedTip": "ТАГ Референце", "tagOpen": "", "tagClose": "", "sampleText": ""} //Noinclude mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/ce/Button_no_include.png", "speedTip": "Noinclude", "tagOpen": " ", "tagClose": " ", "sampleText": ""} //Includeonly mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_include.png", "speedTip": "Includeonly", "tagOpen": " ", "tagClose": " ", "sampleText": ""} //Viseznacna odrednica mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_desambig.png", "speedTip": "Вишезначна одредница", "tagOpen": "", "tagClose": "", "sampleText": ""} //Bez transliteracije mwCustomEditButtons[mwCustomEditButtons.length] = { "imageId": "killerButton", "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/bc/Button_guillemet.png", "speedTip": "Без транслитерације", "tagOpen": "-{", "tagClose": "}-", "sampleText": ""} //OrgSign mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/66/Button_mort.png", "speedTip": "Потпис", "tagOpen": "-{--~", "tagClose": "}-", "sampleText": ""} } $( InsertButtonsToToolBar ); //