Redaktor:Zajano/common.js
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/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/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": "http://upload.wikimedia.org/wikipedia/commons/8/83/Button_biocitas.png",
"speedTip": "Infobox Osobnosť",
"tagOpen": "\x7b\x7bInfobox Osobnosť\n | Meno = \n | Rodné meno = \n | Popis osoby = \n | Portrét = \n | Veľkosť portrétu = \n | Popis portrétu = \n | Dátum narodenia = <!-- {{dnv|RRRR|MM|DD}} --> \n | Miesto narodenia = \n | Dátum úmrtia = <!-- {{duv|rok úmrtia|MM|DD|rok narodenia|MM|DD}} --> \n | Miesto úmrtia = \n | Bydlisko = \n | Iné mená = \n | Štát pôsobenia = \n | Národnosť = \n | Štátna príslušnosť = \n | Zamestnanie = \n | Známy vďaka = \n | Známa vďaka = \n | Alma mater = \n | Profesia = \n | Aktívne roky = \n | Podpis = \n | Webstránka = \n | Poznámky = \n | Portál1 = \n | Portál2 = \n | Portál3 = \n}}",
"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": "https://upload.wikimedia.org/wikipedia/commons/2/26/Button_Tongue.png",
"speedTip": "Infobox Politik",
"tagOpen": "\x7b\x7bŠablóna:Infobox Politik\n | Meno = \n | Rodné meno = \n | Popis osoby = \n | Portrét = \n | Veľkosť portrétu = \n | Popis portrétu = \n | Podpis = \n | Poradie = \n | Úrad = \n | Začiatok obdobia = \n | Koniec obdobia = \n | Predchodca = \n | Nástupca = \n | Dátum narodenia = <!-- {{dnv|RRRR|MM|DD}} --> \n | Miesto narodenia = \n | Dátum úmrtia = <!-- {{duv|rok úmrtia|MM|DD|rok narodenia|MM|DD}} --> \n | Miesto úmrtia = \n | Politická strana = \n | Alma mater = \n | Profesia = \n | Národnosť = \n | Vierovyznanie = \n | Manželka = \n | Manžel = \n | Partnerka = \n | Partner = \n | Deti = \n | Webstránka = \n | Poznámky = \n | Portál1 = \n | Portál2 = \n}}",
"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": "https://upload.wikimedia.org/wikipedia/commons/0/06/Smilies_Alien_big_eyes.png",
"speedTip": "Obrázok s popisom",
"tagOpen": "\x7b\x7bŠablóna:Obrázok s popisom\n | obrázok = \n | meno = \n | rám = none\n | veľkosť = \n }}",
"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/9/91/Button_cite_web.png",
"speedTip": "Citácia elektronického dokumentu",
"tagOpen": "<ref>\x7b\x7bCitácia elektronického dokumentu\n | titul = \n | url = \n | dátum vydania = \n | dátum prístupu = \n | vydavateľ = \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": "//upload.wikimedia.org/wikipedia/commons/2/2b/Button_ref_inscription.png",
"speedTip": "Referencie",
"tagOpen": "\x7b\x7bReferencie",
"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/13/Button_soccer.png",
"speedTip": "Ku",
"tagOpen": "\x7b\x7bKu||",
"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/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/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/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/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/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|",
"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/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/b/ba/Jadernyhrib-button.png",
"speedTip": "Urgentne upraviť",
"tagOpen": "\x7b\x7burgentne upraviť|2013MMDD",
"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|commonscat=",
"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/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/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/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|commonscat=}}'+
'\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);
});
// 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');