Redaktor:BT/common.js

z Wikipédie, slobodnej encyklopédie

Poznámka: Aby sa zmeny prejavili, po uložení musíte vymazať vyrovnávaciu pamäť vášho prehliadača. Mozilla / Firefox / Safari: držte stlačený Shift a kliknite na Reload alebo stlačte buď Ctrl-F5 alebo Ctrl-R (Command-R na Macintosh); Konqueror:: kliknite na tlačidlo Reload alebo stlačte F5; Opera vymazať vyrovnávaciu pamäť prehliadača v ponuke Tools→Preferences; Internet Explorer: držte Ctrl a kliknite na Refresh alebo stlačte Ctrl-F5;

/** Tlačítka */
mw.loader.using('mediawiki.action.edit', function () {


var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/1/1e/Button_font_color.png",
    "speedTip": "Vložiť farebný text",
    "tagOpen": "<span style='color: ColorName'>",
    "tagClose": "</span>",
    "sampleText": "Farebný text"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id); 

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/2/23/Button_code.png",
    "speedTip": "code",
    "tagOpen": "<code>",
    "tagClose": "</code>",
    "sampleText": "text"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/3/3c/Button_pre.png",
    "speedTip": "preformátovaný text",
    "tagOpen": "<pre>",
    "tagClose": "</pre>",
    "sampleText": "preformátovaný text"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/b/ba/Button_conserver.png",
    "speedTip": "Hlasuj Za",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "#{{za}} --\~\~\~\~"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/e9/Button_headline2.png",
    "speedTip": "Nadpis druhej úrovne",
    "tagOpen": "\n===",
    "tagClose": "===",
    "sampleText": "Podnadpis"
       };
       mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/ea/Button_align_left.png",
    "speedTip": "Zarovnanie vľavo",
    "tagOpen": "<div style='text-align: left; direction: ltr; margin-left: 1em;'>\n",
    "tagClose": "\n</div>",
    "sampleText": "Text zarovaný vľavo"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/5/5f/Button_center.png",
    "speedTip": "Centrovať",
    "tagOpen": "<div style='text-align: center;'>\n",
    "tagClose": "\n</div>",
    "sampleText": "Centrovaný text"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/d/db/Button_with_wikinumber_character.png",
    "speedTip": "Mriežka",
    "tagOpen": "#",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/4/41/Button_hr_halfwidth.png",
    "speedTip": "Pomlčka",
    "tagOpen": "–",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7d/Mifirma.jpg",
    "speedTip": "Podpis",
    "tagOpen": "\x7b\x7bPodpis}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png",
    "speedTip": "Hlasuj Proti",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "#{{proti}} --\~\~\~\~"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/4/4e/Button_neutre.png",
    "speedTip": "Hlasuj Neutral",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "#{{neutral}} --\~\~\~\~"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/b/b0/EXPBT1.png",
    "speedTip": "Experimenty",
    "tagOpen": "\x7b\x7bExperimenty}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/a/ae/EXPBT2.png",
    "speedTip": "Experimenty2",
    "tagOpen": "\x7b\x7bExperimenty2}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/e5/EXPBT3.png",
    "speedTip": "Experimenty3",
    "tagOpen": "\x7b\x7bExperimenty3}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/c/ca/EXPBT3-o.png",
    "speedTip": "Exp3N",
    "tagOpen": "\x7b\x7bExp3N}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/a/a5/Buttonexperimenty.png",
    "speedTip": "Exp3M",
    "tagOpen": "\x7b\x7bExp3M}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };  
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/9/9d/Button_halt.png",
    "speedTip": "Vandalizmus",
    "tagOpen": "\x7b\x7bVandalizmus}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
        };
        mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
 
var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/6/66/Button_mort.png",
    "speedTip": "Vandalizmus2",
    "tagOpen": "\x7b\x7bvandalizmus2}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
        };
        mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/72/Button_copy_vio_plagio.png",
    "speedTip": "Copyvio",
    "tagOpen": "\x7b\x7bcopyvio|url=",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/3/37/Button_no_neutral.png",
    "speedTip": "Neutralita",
    "tagOpen": "\x7b\x7bneutralita",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png",
    "speedTip": "Na úpravu",
    "tagOpen": "\x7b\x7bNa úpravu|",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/0/02/Button_fuente_primaria.png",
    "speedTip": "Na rozšírenie",
    "tagOpen": "\x7b\x7bNa rozšírenie|",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/70/Button_fusion.png",
    "speedTip": "Spojiť s",
    "tagOpen": "\x7b\x7bSpojiť s|",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/f/f0/Btn_infotexto.png",
    "speedTip": "Hlavný článok",
    "tagOpen": "\x7b\x7bHlavný článok|",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/0/00/Button_vandale.png",
    "speedTip": "Významnosť",
    "tagOpen": "\x7b\x7bVýznamnosť",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/0/0c/Button_Link_DifferentName.png",
    "speedTip": "Wikifikovať",
    "tagOpen": "\x7b\x7bWikifikovať",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/3/3f/Button_attendre.png",
    "speedTip": "Aktualizovať",
    "tagOpen": "\x7b\x7bAktualizovať",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);  

var button = { id: 'button-comment',                               
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/1/1e/Button_ns-basics.png",
    "speedTip": "Pracuje sa",
    "tagOpen": "\x7b\x7bPracuje sa",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id); 
      
var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/5/50/Button_tidyman.png",
    "speedTip": "Zmazať lebo",
    "tagOpen": "\x7b\x7bZmazať lebo|exp.", 
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/d/d1/Button_mysignature.png",
    "speedTip": "Nepodpísal",
    "tagOpen": "\x7b\x7bnepodpísal|",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
     
var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/4/44/Warn1.png",
    "speedTip": "Reklama",
    "tagOpen": "\x7b\x7bReklama}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/e4/Warn2.png",
    "speedTip": "Reklama2",
    "tagOpen": "\x7b\x7bReklama2}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',        
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/c/cc/Bouton_Vandale2.png",
    "speedTip": "Copytext",
    "tagOpen": "{{Copytext|",
    "tagClose": "}} -\-\~\~\~\~",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',      
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/e4/Bouton_Vandale3.png",
    "speedTip": "Copytext2",
    "tagOpen": "{{Copytext2|",
    "tagClose": "}} -\-\~\~\~\~",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/b/b6/Vjazyce-button.png",
    "speedTip": "Tak to oprav",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "{{Taktooprav}} -\-\~\~\~\~"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/b/b6/Button_article_de_qualite.png",
    "speedTip": "Výborný zásah",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "{{Výborný zásah}} -\-\~\~\~\~"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/74/Button_comment.png",
    "speedTip": "Vitajte",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "{{Vitajte|reg=regáno|redaktor=BT}}"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/74/Button_comment.png",
    "speedTip": "Vitajte",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "{{Vitajte|reg=regnie|redaktor=BT}}"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png",
    "speedTip": "Šablóna",
    "tagOpen": "\x7b\x7b",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/6/62/Button_desambig.png",
    "speedTip": "Rozlišovacia stránka",
    "tagOpen": "\x7b\x7bRozlišovacia stránka",           
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
   
var button = { id: 'button-comment',                                   
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/e1/Button_smiley.png",
    "speedTip": "Úsmev",
    "tagOpen": "\x7b\x7bÚsmev",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id); 

var button = { id: 'button-comment',                                
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
    "speedTip": "Úsmev žmurk",
    "tagOpen": "\x7b\x7bÚsmev|;)",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id); 
      
var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png",
    "speedTip": "Úsmev smiech",
    "tagOpen": "\x7b\x7bÚsmev|:D",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/b/b0/Button_blocage.png",
    "speedTip": "smútok",
    "tagOpen": "\x7b\x7bsmútok",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/e6/DevilSmile.jpg",
    "speedTip": "čert",
    "tagOpen": "\x7b\x7bčert",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png",
    "speedTip": "Zvislá čiara",
    "tagOpen": "|",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/0/02/Button_fuente_primaria.png",
    "speedTip": "Bez citácie",
    "tagOpen": "\x7b\x7bbez citácie",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/3/33/Button_unreferenced.png",
    "speedTip": "Bez zdroja",
    "tagOpen": "\x7b\x7bbez zdroja",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/4/4f/Button_sig_(zh).png",
    "speedTip": "Preklad",
    "tagOpen": "* \x7b\x7bPreklad|en|to|00",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/b/ba/Jadernyhrib-button.png",
    "speedTip": "Urgentne upraviť",  
    "tagOpen": "\x7b\x7burgentne upraviť|" + (y = new Date().getFullYear ()) + "-" + (m = new Date ().getMonth () + 1) + "-" + (d = new Date ().getDate ()),
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/0/09/Warncreate3.png",
    "speedTip": "Na revíziu",
    "tagOpen": "\x7b\x7bna revíziu",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/6/6c/Button_commons.png",
    "speedTip": "Commons",
    "tagOpen": "\x7b\x7bprojekt|commons=Category:",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/9/94/Button_zdroj.png",
    "speedTip": "Doplň zdroje",
    "tagOpen": "{{Doplň zdroje|",
    "tagClose": "}}-\-\~\~\~\~",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/b/b4/Button_category03.png",
    "speedTip": "Kategória",
    "tagOpen": "[[Kategória:",
    "tagClose": "]]",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/9/9f/Button_defaultsort.png",
    "speedTip": "Defaultsort",
    "tagOpen": "\x7b\x7bDEFAULTSORT:",
    "tagClose": "}}",
    "sampleText": ""
       };
       mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/e/e9/Button_preview.png",
    "speedTip": "Zobraz náhľad",
    "tagOpen": "\x7b\x7bZobraz náhľad}} --\x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
      };
       mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/3/32/Btn_toolbar_Evalution_Securite_informatique.png",
    "speedTip": "Zaregistruj sa",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "{{Zaregistruj sa}}-\-\~\~\~\~"
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/4/4b/Button_nbsp.png",
    "speedTip": "Nedeliteľná medzera",
    "tagOpen": "&nbsp;",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/1/16/Button_fairuse.png",
    "speedTip": "Potvrdenie OTRS",
    "tagOpen": "\x7b\x7bOTRS dual|otrs=",
    "tagClose": "|zdroj=}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png",
      "speedTip": "Citácia elektronického dokumentu",
      "tagOpen": "<ref>\x7b\x7bCitácia elektronického dokumentu\n | priezvisko = \n | meno = \n | odkaz na autora = \n | vydavateľ = \n | titul = \n | url = \n | dátum vydania = \n | dátum prístupu = " + (y = new Date().getFullYear ()) + "-" + (m = new Date ().getMonth () + 1) + "-" + (d = new Date ().getDate ()) + "\n | miesto = \n | jazyk = \n}}</ref>",
      "tagClose": "",
      "sampleText": ""
        };
        mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
  
var button = { id: 'button-comment',
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png",
      "speedTip": "Citácia knihy",
      "tagOpen": "<ref>\x7b\x7bCitácia knihy\n | priezvisko = \n | meno = \n | odkaz na autora = \n | titul = \n | vydavateľ = \n | miesto = \n | rok = \n | isbn = \n | strany = \n | počet strán = \n | url = \n | jazyk = \n}}</ref>",
      "tagClose": "",
      "sampleText": ""
        };
        mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
  
var button = { id: 'button-comment',
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/49/Button_cite_journal.png",
      "speedTip": "Citácia periodika",
      "tagOpen": "<ref>\x7b\x7bCitácia periodika\n  | priezvisko = \n  | meno = \n  | autor = \n  | odkaz na autora = \n  | spoluautori = \n  | titul = \n  | periodikum = \n  | odkaz na periodikum = \n  | rok = \n  | mesiac = \n  | ročník = \n  | číslo = \n  | strany = \n  | url = \n  | issn = \n}}</ref>",
      "tagClose": "",
      "sampleText": ""
        };
        mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "//upload.wikimedia.org/wikipedia/commons/a/a0/Button_references_alt.png",
    "speedTip": "Koncový tag referencií",
    "tagOpen": "{{Referencie}}",
    "tagClose": "",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    imageFile: '//upload.wikimedia.org/wikipedia/commons/5/59/Button_sekcje.png',
    speedTip: 'Koncové sekcie (Referencie, Pozri aj, Iné projekty, Externé odkazy, Zdroj)',
    tagOpen: '== Referencie =='+
'\n{{Referencie}}',
    'tagClose':
'\n'+
'\n== Pozri aj =='+
'\n* [[]]'+
'\n'+
'\n== Iné projekty =='+
'\n{{projekt|commons=Category:}}'+
'\n'+
'\n== Externé odkazy =='+
'\n* []'+
'\n'+
'\n== Zdroj =='+
'\n* '+
'\n',
    sampleText: ''
     };
     mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);
      
var button = { id: 'button-comment',
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/0d/Button_Nuvola_apps_gaim.png",
    "speedTip": "V jazyku",
    "tagOpen": "\x7b\x7bV jazyku||",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c1/Button_city_silhouette.png",
    "speedTip": "Nadmorská výška",
    "tagOpen": "\x7b\x7bMnm|",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

var button = { id: 'button-comment',
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/39/Negritaycursiva.png",
    "speedTip": "Kilometre",
    "tagOpen": "\x7b\x7bKm||m|w",
    "tagClose": "}}",
    "sampleText": ""
      };
      mw.toolbar.addButton(button.imageFile, button.speedTip, button.tagOpen, button.tagClose, button.sampleText, button.id, button.id);

});

/*
=== Odkaz na pieskovisko ===
*/
 
var disableSandboxLink = 0;	// ustawienie tego na 1 lub true w swoim monobook.js pozwoli wyłączyć tę funkcjonalność
 
$(function()
{
	if (wgUserName != null && disableSandboxLink == 0)
	{
		var caption = 'Moje pieskovisko 2'
		if (wgUserLanguage != 'sk')
			caption = 'My sandbox';
 
		mw.util.addPortletLink('p-personal', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:Mypage/pieskovisko 2', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences'));
	}
});
 
 
var disableSandboxLink = 0;	// ustawienie tego na 1 lub true w swoim monobook.js pozwoli wyłączyć tę funkcjonalność
 
$(function()
{
	if (wgUserName != null && disableSandboxLink == 0)
	{
		var caption = 'Moje pieskovisko 3'
		if (wgUserLanguage != 'sk')
			caption = 'My sandbox';
 
		mw.util.addPortletLink('p-personal', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:Mypage/pieskovisko 3', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences'));
	}
});
// RC highlighter
if ($('.rcoptions').length) 
  mw.loader.load('//sk.wikipedia.org/w/index.php?title=Redaktor:Teslaton/rc-highlighter.js&action=raw&ctype=text/javascript');