Wikipedista:Hugo/monobook.js
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/fr/3/30/Btn_toolbar_rayer.png",
"speedTip": "Přeškrtnutý text",
"tagOpen": "<s>",
"tagClose": "</s>",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/42/Buttonsablona.png",
"speedTip": "Šablona",
"tagOpen": "\x7b\x7b",
"tagClose": "}}",
"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/e/ed/Buttonexperimenty2o.PNG",
"speedTip": "Experimenty2o",
"tagOpen": "\x7b\x7bsubst:experimenty2o}} --\x7E\x7E\x7E\x7E",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b4/Button_category03.png",
"speedTip": "Kategorie",
"tagOpen": "[[Kategorie:",
"tagClose": "]]",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/cs/b/b9/Buttoncopyvio.png",
"speedTip": "Copyvio",
"tagOpen": "\x7b\x7bCopyvio|zdroj=",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://cs.wikipedia.org/skins-1.5/common/images/button_hr.png",
"speedTip": "Pomlčka",
"tagOpen": "–",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_stop.png",
"speedTip": "Smazat",
"tagOpen": "\x7b\x7bsmazat|",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png",
"speedTip": "Nedělitelná mezera",
"tagOpen": " ",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/30/Bv_icon.png",
"speedTip": "Subpahýl",
"tagOpen": "\x7b\x7bsubst:subpahýl}}",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3a/Button_av-img.png",
"speedTip": "Upravit",
"tagOpen": "\x7b\x7bupravit}}",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png",
"speedTip": "Wikify",
"tagOpen": "\x7b\x7bWikify}}",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/01/Welcome_icon.png",
"speedTip": "Vítejte",
"tagOpen": "\x7b\x7bsubst:vítejte}}",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/29/Button_user.png",
"speedTip": "Anon",
"tagOpen": "\x7b\x7bsubst:Anon}}",
"tagClose": "",
"sampleText": ""};
};
//
function addTab(url, name, id, title, key){
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
return addlilink(tabs, url, name, id, title, key);
}
//
//
function addlilink(tabs, url, name, id, title, key){
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);
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;
}
//
//Please leave the following line
//<a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs"><a class="autolink" href="/wiki/user:Where/usertabs">[[user:Where/usertabs]]</a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a></a>
addOnloadHook(function() {
if (document.title.search("/") != -1 || document.title.search("- History -") != -1) { //no subpages or history
return;
}
// --------- přidání záložek do menu u wikipedistů ---------
if (document.title.indexOf("Wikipedista:") == 0 || document.title.indexOf("Wikipedista diskuse:") == 0) {
username_a = document.URL.match(/:.*:(.*)/);
username=username_a[1];
addTab("http://www.math.ucla.edu/~aoleg/wp/rfa/edit_summary.cgi?user=" + username + "&lang=cs", "shrnuti", "shrnuti", "shrnuti", "");
addTab("http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=cswiki_p&user=" + username, "Count", "ca-kate", "Počítadlo příspěvků kate-edit counter", "");
}
});
// --------- Mormegilovy nastroje ---------/
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");
// --------- klikací shrnutí ---------
$(function() { addSummaryToolbar(["\x7b\x7bRozcestník}} -> \x7b\x7bRozcestník - místopisné jméno}}", "", "typo", "interwiki", "", "pahýl", "upravit", "", "experimenty", "experimenty2", "", "drobnost",]); });
// --------- lišta ---------
$(function() { addLinktoolbar("", [ ["Wikipedie:Žádost o práva správce", "RfA"], ["Wikipedie:Hlasování o smazání", "VfD"], ["Wikipedie:Porušení_práv#.C4.8Cl.C3.A1nky_z.C5.99ejm.C4.9B_poru.C5.A1uj.C3.ADc.C3.AD_autorsk.C3.A1_pr.C3.A1va", "Práva"], ["Wikipedie:šablony", "Šablony"], ["Wikipedie:Údržba", "Údržba"], ["Portál:Svobodný software", "Portál"] ]); });
// --------- nahrazování ---------
$(function() { addFindAndReplaceToolbar() });
// --------- Záložky s odkazy na whois a protokolovací záznamy ---------
$(function() { addAdditionalTabs() });