Wikipedista:Chevees/monobook.js

Z Wikipedie, otevřené encyklopedie

Poznámka: Po uložení musíte vyprázdnit mezipaměť vašeho prohlížeče, jinak změny neuvidíte.

// --------- custom edit toolbar ---------
if (mwCustomEditButtons)
  {
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/04/Button_NW.png",
      "speedTip": "No wiki",
      "tagOpen": "<code><nowiki>",
      "tagClose": "</nowiki></code>",
      "sampleText": ""};
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a5/Buttonexperimenty.png",
    "speedTip": "Experimenty",
    "tagOpen": "\x7b\x7bsubst:experimenty}} \x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
    };
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/16/Buttonexperimenty2.png",
    "speedTip": "Experimenty2",
    "tagOpen": "\x7b\x7bsubst:experimenty2}} \x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
    };
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2a/Button_Subheadline.gif",
    "speedTip": "Hlavní článek",
    "tagOpen": "\x7b\x7bHlavní článek}}",
    "tagClose": "",
    "sampleText": ""
    };
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png",
      "speedTip": "Subpahýl",
      "tagOpen": "\x7b\x7bsubst:subpahýl}}",
      "tagClose": "",
      "sampleText": ""
    };
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/22/Button_radio_activite.png",
      "speedTip": "Urgentně upravit",
      "tagOpen": "\x7b\x7bsubst:Urgentně upravit}}",
      "tagClose": "",
      "sampleText": ""
    };
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/0b/Button_fuente.png",
      "speedTip": "Urgentně ověřit",
      "tagOpen": "\x7b\x7bsubst:Urgentně ověřit",
      "tagClose": "}}",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9a/Button_references.png",
      "speedTip": "Významnost",
      "tagOpen": "\x7b\x7bsubst:významnost",
      "tagClose": "}}",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/33/Button_unreferenced.png",
      "speedTip": "Chybí zdroj",
      "tagOpen": "\x7b\x7bsubst:Fakt",
      "tagClose": "}}",
      "sampleText": ""};
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4a/Button_welcome.png",
    "speedTip": "Vítejte",
    "tagOpen": "\x7b\x7bsubst:vítejte}} \x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
    };
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/0e/Button_acute_accent.png",
    "speedTip": "Vítejte anonym",
    "tagOpen": "\x7b\x7bsubst:vítejte|a}} \x7E\x7E\x7E\x7E",
    "tagClose": "",
    "sampleText": ""
    };
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/cb/Button_Nuvola_apps_ksirc.png",
      "speedTip": "Welcome",
      "tagOpen": "\x7b\x7bsubst:Welcome",
      "tagClose": "}} With kind regards, --\x7E\x7E\x7E\x7E",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/33/Button_exclamation.png",
      "speedTip": "Copyvio",
      "tagOpen": "\x7b\x7bCopyvio|zdroj=",
      "tagClose": "}}",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/16/Button_fairuse.png",
      "speedTip": "Potvrzení OTRS",
      "tagOpen": "\x7b\x7bPotvrzení OTRS|otrs=",
      "tagClose": "|materiál=}}",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.png",
      "speedTip": "Spam",
      "tagOpen": "\x7b\x7bsubst:Spam}} S přáním pěkného dne --\x7E\x7E\x7E\x7E",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9a/Button_wiktionary.png",
      "speedTip": "Pískoviště",
      "tagOpen": "\x7b\x7bsubst:Pískoviště",
      "tagClose": "}} --\x7e\x7e\x7e\x7e",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png",
      "speedTip": "Smazaný článek",
      "tagOpen": "Dobrý den, Váš článek byl smazán, protože jeho subjekt nedosahoval kritérií [[Wikipedie:EV|encyklopedické významnosti]] požadovaných po zdejších článcích. Prosím, nevkládejte jej znovu, bude opětovně smazán. Děkuji za pochopení a přeji Vám pěkný den! --\x7e\x7e\x7e\x7e",
      "tagClose": "",
      "sampleText": ""};
  mwCustomEditButtons [mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e9/Button_preview.png",
      "speedTip": "Náhled",
      "tagOpen": "== Prosím používejte tlačítko „Ukázat náhled“ ==\n\x7b\x7bsubst:Náhled}} \x7e\x7e\x7e\x7e",
      "tagClose": "",
      "sampleText": ""
    };
  mwCustomEditButtons [mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/78/Button_titre.png",
      "speedTip": "Shrnutí",
      "tagOpen": "== Prosím vyplňujte kolonku „Shrnutí editace“ ==\n\x7b\x7bsubst:Shrnutí}} \x7e\x7e\x7e\x7e",
      "tagClose": "",
      "sampleText": ""
    };
  mwCustomEditButtons [mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c6/Button_Kat.png",
      "speedTip": "Kategorizujte",
      "tagOpen": "== Používejte prosím kategorie ==\n\x7b\x7bsubst:Kategorizujte}} \x7e\x7e\x7e\x7e",
      "tagClose": "",
      "sampleText": ""
    };
  mwCustomEditButtons [mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e5/Button_%28S%29.png",
      "speedTip": "Uvádění zdrojů",
      "tagOpen": "== Uvádění zdrojů ==\n Přeji pěkný den,<br />nejdříve bych Vám chtěl poděkovat za článek [[něco]], avšak chtěl bych Vás poprosit o doplnění zdroje, ze kterého jste čerpal. Čtenář si pak bude moci uvedená fakta [[:Wikipedie:Ověřitelnost|ověřit]], případně bude odkázán na další, podrobnější literaturu. Pokud jste čerpal z cizojazyčné verze Wikipedie, použijte prosím šablonu {{Šablona|překlad}}. Jistě chápete potřebu uvádět zdroje článků, vede to i ke zkvalitňování wikipedických textů a jejich věrohodnosti. Mějte se pěkně, v případě dotazů mi klidně pisněte do [[Wikipedista diskuse:Podzemnik|diskuse]]. \x7e\x7e\x7e\x7e",
      "tagClose": "",
      "sampleText": ""
    };
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f8/Button_Tool_commons.png",
    "speedTip": "Commons",
    "tagOpen": "\x7b\x7bCommons|",
    "tagClose": "}}",
    "sampleText": ""
    };
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6c/Button_commons.png",
    "speedTip": "Commonscat",
    "tagOpen": "\x7b\x7bCommonscat|",
    "tagClose": "}}",
    "sampleText": ""
    };
  mwCustomEditButtons [mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png",
    "speedTip": "Citace elektronické monografie (webu)",
    "tagOpen": "<ref>\x7b\x7bCitace elektronické monografie\n | příjmení = \n | jméno = \n | odkaz na autora = \n | titul = \n | url = \n | datum vydání = \n | datum aktualizace = \n | datum přístupu = " + (y = new Date().getFullYear ()) + "-" + (m = new Date ().getMonth () + 1) + "-" + (d = new Date ().getDate ()) + "\n | vydavatel = \n | jazyk = \n}}</ref>",
    "tagClose": "",
    "sampleText": ""
    };
  mwCustomEditButtons [mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png",
    "speedTip": "Citace monografie",
    "tagOpen": "<ref>\x7b\x7bCitace monografie\n | příjmení = \n | jméno = \n | odkaz na autora = \n | titul = \n | vydavatel = \n | místo = \n | rok = \n | isbn =  \n | kapitola = \n | strany = \n | jazyk = \n}}</ref>",
    "tagClose": "",
    "sampleText": ""
    };
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png",
      "speedTip": "Ref name",
      "tagOpen": "<ref name=\"\">",
      "tagClose": "",
      "sampleText": ""
    };
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/41/Button_hr_halfwidth.png",
      "speedTip": "Pomlčka",
      "tagOpen": "–",
      "tagClose": "",
      "sampleText": ""
    };
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anf%C3%BChrung.png",
      "speedTip": "Uvozovky",
      "tagOpen": "\„",
      "tagClose": "\“",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/64/Button_nbsp_bold.png",
      "speedTip": "Pevná mezera",
      "tagOpen": "&nbsp;",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b0/Button_category02.png",
      "speedTip": "Kategorie",
      "tagOpen": "[[Kategorie:",
      "tagClose": "]]",
      "sampleText": ""};
  mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_right.png",
      "speedTip": "Přesměrování po sloučení",
      "tagOpen": "[[Kategorie:Přesměrování po sloučení",
      "tagClose": "]]",
      "sampleText": ""};
  mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/8b/Merge-arrows.gif",
      "speedTip": "Sloučit",
      "tagOpen": "\x7b\x7bsloučit|",
      "tagClose": "|do}}",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3f/Button_en.png",
      "speedTip": "en iw",
      "tagOpen": "[[en:",
      "tagClose": "]]",
      "sampleText": ""};
 mwCustomEditButtons [mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/84/Warn3.png",
      "speedTip": "Pracuje se",
      "tagOpen": "\x7b\x7bPracuje se}}",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png",
      "speedTip": "Obrázek",
      "tagOpen": "[[",
      "tagClose": "|thumb|]]",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4f/Button_sig_(zh).png",
      "speedTip": "Překlad",
      "tagOpen": "\x7b\x7bPřeklad|en|",
      "tagClose": "}}",
      "sampleText": ""};
  mwCustomEditButtons[mwCustomEditButtons.length] =
    {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/47/Button_arabic.png",
    "speedTip": "Vjazyce",
    "tagOpen": "\x7b\x7bVjazyce|",
    "tagClose": "}}",
    "sampleText": ""
    };
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/46/Topdown1.png",
      "speedTip": "Infobox chráněné území v Česku",
      "tagOpen": "\x7b\x7bInfobox chráněné území v Česku\n| typ       = \n| název     =\n| foto      = \n| popis     = \n| vyhlášena = [[]] \n| vyhlásil  = \n| úsop      = \n| lokalita  = \n| výška     = – \n| výměra    =  ha\n| okres     = \n| poznámky  = \n| commons   = Category: \n}}",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/35/Button_lauriers.png",
      "speedTip": "Sisterlinks",
      "tagOpen": "\x7b\x7bSisterlinks\n| commons = ",
      "tagClose": "\n| wikt    = \n| b       = \n| n       = \n| s       = \n| q       = \n| species = \n}}",
      "sampleText": "Název kategorie obrázků na Commons"};
    mwCustomEditButtons [mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/49/Button_cite_journal.png",
      "speedTip": "Citace periodika (citace novin, časopisu)",
      "tagOpen": "\x7b\x7bCitace periodika\n | příjmení = \n | jméno = \n | odkaz na autora = \n | spoluautoři = \n | titul = \n | periodikum = \n | odkaz na periodikum = \n | rok = \n | měsíc = \n | ročník = \n | číslo = \n | strany = \n | url = \n | issn = \n | jazyk = \n }}",
      "tagClose": "",
      "sampleText": ""};
  mwCustomEditButtons [mwCustomEditButtons.length] =  {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/bb/Button_ébauche.png",
    "speedTip": "Citace sborníku",
    "tagOpen": "\x7b\x7bCitace sborníku\n | příjmení = \n | jméno = \n | odkaz na autora = \n | příjmení2 = \n | jméno2 = \n | odkaz na autora2 = \n | spoluautoři = \n | titul = \n | odkaz na titul = \n | příjmení sestavitele = \n | jméno sestavitele = \n | příjmení sestavitele2 = \n | jméno sestavitele2 = \n | spolusestavitelé = \n | sborník = \n | odkaz na sborník = \n | url = \n | vydavatel = \n | místo = \n | datum vydání = \n | rok vydání = \n | měsíc vydání = \n | den vydání = \n | isbn = \n | svazek = \n | strany = \n | jazyk = \n}}",
    "tagClose": "",
    "sampleText": "" };
};
 
function loadScript(url)
{
   var e = document.createElement("script");
   e.src = url;
   e.type="text/javascript";
   document.getElementsByTagName("head")[0].appendChild(e);
}
 
loadScript("http://cs.wikipedia.org/w/index.php?title=Wikipedista:Mormegil/tools.js&action=raw&ctype=text/javascript&dontcountme=s");
 
$(function() { addSummaryToolbar(["+typo ", "+interwiki ", "", "+úprava ", "+wikify", "", "+rekategorizace ", "+doplnění ", "", "+přeformulování ", "+aktualizace ","", "založení ", "+oprava ", "", "+fix link", "+řazení v kategorii", "", "+pahýl to už podle mě není", "", "+commons", "+kategorie", "", "+šablona různé významy ", "", "mezisave", "+obrázek",]); });
$(function() { addFindAndReplaceToolbar() });
 
 
function Deadliner ()
  {
  nodDeadliner = document.getElementById ("Deadliner");
  if (nodDeadliner != null)
    {
    datDeadline = new Date ();
    datDeadline.setDate (datDeadline.getDate () - 30);
    strPassedDeadline = datDeadline.getDate () + ". " + (datDeadline.getMonth () + 1) + ". " + datDeadline.getFullYear ();
    nodDeadliner.innerHTML = strPassedDeadline;
    }
  }
 
function addCssJsLinks ()
{
  var nodCSSli = document.createElement ("li");
  var nodJSli = document.createElement ("li");
  nodCSSli.id = "pt-css";
  nodJSli.id = "pt-js";
  var nodCSSa = document.createElement ("a");
  var nodJSa = document.createElement ("a");
  nodCSSa.href = "/wiki/Wikipedie:Porušení_práv/Články_zřejmě_porušující_autorská_práva";
  nodJSa.href = "/wiki/Wikipedista:Podzemnik/monobook.js";
  nodCSSa.appendChild (document.createTextNode ("AP"));
  nodJSa.appendChild (document.createTextNode ("JS"));
  nodCSSli.appendChild (nodCSSa);
  nodJSli.appendChild (nodJSa);
 
  nodLinksList = document.getElementById ("pt-watchlist").parentNode;
  nodLinksList.insertBefore (nodCSSli, document.getElementById ("pt-watchlist"));
  nodLinksList.insertBefore (nodJSli, document.getElementById ("pt-watchlist"));
}
 
if (window.addEventListener)
  {
  window.addEventListener ("load", Deadliner, false)
  window.addEventListener ("load", addCssJsLinks, false)
  }
else if (window.attachEvent)
  {
  window.attachEvent ("onload", Deadliner)
  window.attachEvent ("onload", addCssJsLinks)
  };
 
//A helper function to add a button to one of the toolbars in the interface.
function addLink(where, url, name, id, title, key, after){
    //* where is the id of the toolbar where the button should be added;
    //   i.e. one of "p-cactions", "p-personal", "p-navigation", or "p-tb".
    //
    //* url is the URL which will be called when the button is clicked.
    //   javascript: urls can be used to do more complex things.
    //
    //* name is what will appear as the name of the button.
    //
    //* id is the id of the button; it's best to define one.  
    //   Use a prefix to make sure its unique. Optional.
    //
    //* title is the tooltip title that gives a longer description 
    //   of the button; if you define a accesskey, mention it here. Optional.
    //
    //* key is the char you want for the accesskey. Optional.
    //
    //* after is the id of the button you want to follow this one. Optional.
    //
    var na = document.createElement('a');
    na.href = url;
    na.appendChild(document.createTextNode(name));
    var li = document.createElement('li');
    if(id) li.id = id;
    li.appendChild(na);
    var tabs = document.getElementById(where).getElementsByTagName('ul')[0];
    if(after) {
	tabs.insertBefore(li,document.getElementById(after));
    } else {
	tabs.appendChild(li);
    }
    if(id) {
	if(key && title) { ta[id] = [key, title]; }
	else if(key) { ta[id] = [key, '']; }
	else if(title) { ta[id] = ['', title];} 
    }
    // re-render the title and accesskeys from existing code in wikibits.js
    akeytt();
    return li;
}
 
 
$( function (){
addLink('p-navigation', 'http://cs.wikipedia.org/wiki/Wikipedista:Podzemnik/Zkušebna', 'Zkušebna');
 
if (wgNamespaceNumber == 6) {
addLink('p-cactions', 'http://www.bilysklep.cz/~timichal/help/commonshelper.php?image=' + encodeURIComponent(wgTitle) + '&language=cs&directupload=true&commonsense&doit', 'Načíst na Commons');
}
});
 
$( function (){
addLink('p-navigation', 'http://cs.wikipedia.org/wiki/Wikipedista:Podzemnik/%C4%8Cl%C3%A1nkovna', 'Článkovna');
 
if (wgNamespaceNumber == 6) {
addLink('p-cactions', 'http://www.bilysklep.cz/~timichal/help/commonshelper.php?image=' + encodeURIComponent(wgTitle) + '&language=cs&directupload=true&commonsense&doit', 'Načíst na Commons');
}
});
 
 
$( function (){
addLink('p-navigation', 'http://cs.wikipedia.org/wiki/Wikipedie:Zajímavosti', 'Zajímavosti');
 
if (wgNamespaceNumber == 6) {
addLink('p-cactions', 'http://www.bilysklep.cz/~timichal/help/commonshelper.php?image=' + encodeURIComponent(wgTitle) + '&language=cs&directupload=true&commonsense&doit', 'Načíst na Commons');
}
});
 
$( function (){
addLink('p-navigation', 'http://cs.wikipedia.org/wiki/Wikipedie:WikiProjekt_Kvalita', 'WikiProject Quality');
 
if (wgNamespaceNumber == 6) {
addLink('p-cactions', 'http://www.bilysklep.cz/~timichal/help/commonshelper.php?image=' + encodeURIComponent(wgTitle) + '&language=cs&directupload=true&commonsense&doit', 'Načíst na Commons');
}
});
 
 
$( function (){
addLink('p-navigation', 'http://cs.wikipedia.org/wiki/Wikipedie:Vyznamenání', 'Awards');
 
if (wgNamespaceNumber == 6) {
addLink('p-cactions', 'http://www.bilysklep.cz/~timichal/help/commonshelper.php?image=' + encodeURIComponent(wgTitle) + '&language=cs&directupload=true&commonsense&doit', 'Načíst na Commons');
}
});