Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
/* Script DeluxxeBar for adding new customised buttons to the edit toolbar. Written by bg:User:Ikonact, originally for Bulgarian Wikipedia */
function DeluxxeBar() {
  if (document.createTextNode) {
        var toolbar = document.getElementById("toolbar"); 
        if (!toolbar) return;
 
 
        var messages = new Array()
        var images = new Array()
        var title = new Array()
        var commentaires = new Array()
        var a=-1; // Броенето започва от -1, като се увеличава още на първото съобщение, за да избегне проблеми при изтриване му
 
        ////////////////////////////////
        //// зона за персонализация ////
        ////////////////////////////////
 
        // текстът е "сплитнат", за да се избегне конфликт с Медияуики
 
        messages[++a] = ["["+"[:bg:", "|]]"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "     :bg:     "  
 
        messages[++a] = ["["+"[:en:|", "]]"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = ":en:     "  
 
        messages[++a] = ["["+"[:mk:|", "]]"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = ":mk:     "  
 
        messages[++a] = ["{"+"{bg|", "}}"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "{bg|}     "         
 
        messages[++a] = ["{"+"{en|", "}}"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "{en|}     "    
 
        messages[++a] = ["{"+"{mk|", "}}"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "{mk|}     "   

        messages[++a] = ["{"+"{DEFAULTSORT:", "}}"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "defaultsort     "  

        messages[++a] = ["["+"[Category:", "]]"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "category     "    
 
        messages[++a] = ["„", "“"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "„“     "    
 
        messages[++a] = ["&"+"nbsp;", ""];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "&nbsp     "  
 
        messages[++a] = ["{"+"{Anonymous-EU", "}}"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "Anonymous-EU     "  

        messages[++a] = ["{"+"{{PD-art", "}}"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "PD-art     "  
 
 
        ////////////////////////////////
        // край на персонализацията
        ////////////////////////////////
 
        for (var i=0;i<messages.length;i++) {
                var img = document.createElement("img");
                img.setAttribute("src", images[i]);
 
                var ref = document.createElement("a");
                ref.setAttribute("href", "javascript:insertTags(\"" + messages[i][0] + "\", \"" + messages[i][1] + "\", '');" + 
                                 "javascript:changeSummary(\"" + commentaires[i] + "\");" ); 
                ref.setAttribute("title", "" + commentaires[i] + "" ); 
                //ref.appendChild(img); 
                ref.appendChild(document.createTextNode(title[i]));
 
                toolbar.appendChild(ref);
        }
  }
}
 
function changeSummary(sampleText) {
        document.editform.wpSummary.value = sampleText;
}

$( DeluxxeBar );
 
/*  End of script enabling the addition of new buttons in the edit toolbar */