Redaktor:Tommyv580/monobook.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;

// [[User:Zocky/AutoComplete.js]]
//document.write('<script type="text/javascript" src="' 
//             + 'http://en.wikipedia.org/w/index.php?title=User:Zocky/AutoComplete.js' 
//             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//Pridanie tlačítok na štandardnú editačnú lištu
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
    "speedTip": "Strike",
    "tagOpen": "<s>",
    "tagClose": "</s>",
    "sampleText": "Strike-through text"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_conserver.png",
    "speedTip": "Hlasuj Za",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "#{{za}} \~\~\~\~"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png",
    "speedTip": "Hlasuj Proti",
    "tagOpen": "",
    "tagClose": "",
    "sampleText": "#{{proti}} \~\~\~\~"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/72/Button_copy_vio_plagio.png",
    "speedTip": "Copyvio",
    "tagOpen": "\x7b\x7bcopyvio|url=",
    "tagClose": "}}",
    "sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png",
    "speedTip": "Šablóna",
    "tagOpen": "\x7b\x7bŠablóna|",
    "tagClose": "}}",
    "sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_desambig.png",
    "speedTip": "Rozlišovacia stránka",
    "tagOpen": "\x7b\x7bRozlišovacia stránka",
    "tagClose": "}}",
    "sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png",
    "speedTip": "Zvislá čiara",
    "tagOpen": "|",
    "tagClose": "",
    "sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/50/Button_tidyman.png",
    "speedTip": "Experimenty",
    "tagOpen": "{{experimenty}}",
    "tagClose": "",
    "sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/0b/Button_fuente.png",
    "speedTip": "Obrázok bez podpisu - udalosti",
    "tagOpen": "\x7b\x7bObrázok s popisom"+
"\n|obrázok=",
    "tagClose":
"\n|meno="+
"\n}}",
    "sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ee/Button_vote_biblio.png",
    "speedTip": "Infobox Osobnosť",
    "tagOpen": "\x7b\x7bInfobox Osobnosť"+
"\n  |Meno             = ",
    "tagClose":
"\n  |Portrét          = "+
"\n  |Veľkosť obrázka  = 230px"+
"\n  |Popis            = "+
"\n  |Dátum narodenia  = "+
"\n  |Miesto narodenia = "+
"\n  |Dátum úmrtia     = "+
"\n  |Miesto úmrtia    = "+
"\n}}",
    "sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/ad/Toolbar_gamepad.png",
    "speedTip": "Infobox PC hra",
    "tagOpen": "\x7b\x7bInfobox CVG"+
"\n|názov= ",
    "tagClose":
"\n|obrázok= "+
"\n|popis= "+
"\n|autor= "+
"\n|vydavateľ=  "+
"\n|distribútor= "+
"\n|návrh= "+
"\n|séria= "+
"\n|engine= "+
"\n|verzia= "+
"\n|vydanie= "+
"\n|žáner= "+
"\n|mód= "+
"\n|prístupnosť= "+
"\n|platforma= "+
"\n|médium= "+
"\n|minimálne požiadavky= "+
"\n|odporúčaná konfigurácia= "+
"\n|http= "+
"\n|vstup= "+
"\n}}",
    "sampleText": ""};
};
 
// install the Slovakian translation for [[:en:User:Cacycle/wikEd]]
//document.write('<script type="text/javascript" src="'
// + 'http://en.wikipedia.org/w/index.php?title=User:Helix84/wikEd_international_sk.js'
// + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// 
//document.write('<script type="text/javascript" src="'
//+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
//+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
var anchor = "t-cite";
 
var nazov = "Hlavná stránka";
rexp = /http:\/\/sk\.wikipedia\.org\/wiki\/(.*)$/
if (rexp.exec(document.URL)) {
   var match = rexp.exec(document.URL);
   if (match)    nazov = match[1];
}
 
  function addCommonsLink ()
 {
  nodAnchor = document.getElementById (anchor);
 
  if (nodAnchor)
  {
    var nodToolsList = nodAnchor.parentNode;
    var nodLinkCommons_li = document.createElement ("li");
    var nodLinkCommons_a = document.createElement ("a");
 
    nodLinkCommons_li.id = "t-link-commons";
 
    nodLinkCommons_a.href = "http://commons.wikimedia.org/wiki/Hlavná_stránka";
    nodLinkCommons_a.target = "_blank";
 
    nodLinkCommons_a.appendChild (document.createTextNode ("Wikimedia Commons"));
    nodLinkCommons_li.appendChild (nodLinkCommons_a);
 
    nodToolsList.insertBefore (nodLinkCommons_li, nodAnchor.nextSibling);
 
    var nodSeparator_hr = document.createElement ("hr");
    nodToolsList.insertBefore (nodSeparator_hr, nodAnchor.nextSibling);
    }
  }
 
function addCommonsGalLink ()
 {
  nodAnchor = document.getElementById (anchor);
 
  if (nodAnchor)
  {
    var nodToolsList = nodAnchor.parentNode;
    var nodGalLinkCommons_li = document.createElement ("li");
    var nodGalLinkCommons_a = document.createElement ("a");
 
    nodGalLinkCommons_li.id = "t-img-link-commons";
 
    nodGalLinkCommons_a.href = "http://commons.wikimedia.org/wiki/"+nazov;
    nodGalLinkCommons_a.target = "_blank";
    nodGalLinkCommons_a.appendChild (document.createTextNode ("Commons/galéria"));
    nodGalLinkCommons_li.appendChild (nodGalLinkCommons_a);
 
    nodToolsList.insertBefore (nodGalLinkCommons_li, nodAnchor.nextSibling);
    }
  }
 
 function addCommonsCatLink ()
 {
  nodAnchor = document.getElementById (anchor);
 
  if (nodAnchor)
  {
    var nodToolsList = nodAnchor.parentNode;
    var nodCatLinkCommons_li = document.createElement ("li");
    var nodCatLinkCommons_a = document.createElement ("a");
 
    nodCatLinkCommons_li.id = "t-cat-link-commons";
 
    nodCatLinkCommons_a.href = "http://commons.wikimedia.org/wiki/Category:"+nazov;
    nodCatLinkCommons_a.target = "_blank";
    nodCatLinkCommons_a.appendChild (document.createTextNode ("Commons/kategória"));
    nodCatLinkCommons_li.appendChild (nodCatLinkCommons_a);
 
    nodToolsList.insertBefore (nodCatLinkCommons_li, nodAnchor.nextSibling);
    }
  }
 
 function addPCkat ()
 {
  nodAnchor = document.getElementById (anchor);
 
  if (nodAnchor)
  {
    var nodToolsList = nodAnchor.parentNode;
    var nodCatLinkCommons_li = document.createElement ("li");
    var nodCatLinkCommons_a = document.createElement ("a");
 
    nodCatLinkCommons_li.id = "t-cat-link-commons";
 
    nodCatLinkCommons_a.href = "http://sk.wikipedia.org/wiki/Kateg%C3%B3ria:Po%C4%8D%C3%ADta%C4%8Dov%C3%A9_hry";
    nodCatLinkCommons_a.target = "_blank";
    nodCatLinkCommons_a.appendChild (document.createTextNode ("Kategória PC hry"));
    nodCatLinkCommons_li.appendChild (nodCatLinkCommons_a);
 
    nodToolsList.insertBefore (nodCatLinkCommons_li, nodAnchor.nextSibling);
    }
  }
 addOnloadHook( addCommonsCatLink );
 addOnloadHook( addCommonsGalLink );
 addOnloadHook( addCommonsLink );
 addOnloadHook( addPCkat );