User:Саша Стефановић/extraeditbuttons.js

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

function InsertButtonsToToolBar { //Table button mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png", "speedTip": "Table", "tagOpen": "\n{| border='1' \n|- \n| 1 || 2\n|- \n| 3 || 4", "tagClose": "\n|}\n", "sampleText": ""} //Line break button mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", "speedTip": "Line break", "tagOpen": " ", "tagClose": "", "sampleText": ""} //Small Text mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png", "speedTip": "Small", "tagOpen": " ", "tagClose": " ", "sampleText": "Small Text"} //Gallery mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png", "speedTip": "Insert a picture gallery", "tagOpen": "\n", "sampleText": "Image:FileName.jpg|Caption1\nImage:FileName2.jpg|Caption2"} //Secondary Headline mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/e/e9/Button_headline2.png", "speedTip": "Secondary headline", "tagOpen": "\n===", "tagClose": "===", "sampleText": "Secondary headline"} //Block Quote mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", "speedTip": "Insert block of quoted text", "tagOpen": "\n", "tagClose": "\n ", "sampleText": "Block quote"} //Template button mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png", "speedTip": "Template", "tagOpen": "", "sampleText": "Template name"} //Yes mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c0/Button_support_vote.png", "speedTip": "За", "tagOpen": "", "tagClose": "", "sampleText": ""} //No 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/9/9c/Button_smiley2.png",    "speedTip": "Smajli",    "tagOpen": "",    "tagClose": "",    "sampleText": ""} //:( mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b0/Button_blocage.png", "speedTip": "Smajli", "tagOpen": "", "tagClose": "", "sampleText": ""} //:P mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png", "speedTip": "Smajli", "tagOpen": "", "tagClose": "", "sampleText": ""} //DEFAULTSORTKEY mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b6/Vjazyce-button.png", "speedTip": "defsort", "tagOpen": "", "sampleText": ""} //Reference link button mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png", "speedTip": " ", "sampleText": "Insert reference material"} //Reference button mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_references_alt.png", "speedTip": "Reference footer", "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": ""} //Шаблон болест mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile":  "http://upload.wikimedia.org/wikipedia/commons/e/e3/Button_bienvenido.png", "speedTip": "Шаблон болест", "tagOpen": "", "sampleText": ""} //Затварање гласања mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile":  "http://upload.wikimedia.org/wikipedia/commons/e/e3/Button_bienvenido.png", "speedTip": "Затварање гласања", "tagOpen": "", "sampleText": ""} } $( InsertButtonsToToolBar ); //