Redaktor:Saskardin/modern.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čidlá */
mw.loader.using('mediawiki.action.edit', function () {
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/a/a5/Buttonexperimenty.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/1/16/Buttonexperimenty2.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/7/7e/Bouton_Vandale4.png',
speedTip: 'vandalizmus',
tagOpen: '\x7b\x7bvandalizmus',
tagClose: '}} \x7e\x7e\x7e\x7e',
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/9/9d/Button_halt.png',
speedTip: 'Neprípustné používateľské meno',
tagOpen: '\x7b\x7bNeprípustné používateľské meno',
tagClose: '}} \x7e\x7e\x7e\x7e',
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/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/a/a4/Spam1.png',
speedTip: 'Reklama',
tagOpen: '\x7b\x7bReklama',
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/eb/Button_plantilla.png',
speedTip: 'Šablóna',
tagOpen: '\x7b\x7bŠablóna|',
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/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/b/b8/Bouton_Faut_sourcer.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ť|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/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/7/77/Button_Nuvola_apps_edu_phi.png',
speedTip: 'Zdieľaná IP školy',
tagOpen: '\x7b\x7bZdieľaná IP školy|názov školy',
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/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 = {{dnv|rok|mesiac|den}}'+
'\n |Miesto narodenia = '+
'\n |Dátum úmrtia = {{dúv|rokumrtia|mesiac|den|roknarodenia|mesiac|den}}'+
'\n |Miesto úmrtia = '+
'\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: '//upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png',
speedTip: 'Citácia elektronického dokumentu',
tagOpen: '\x7b\x7bCitácia elektronického dokumentu'+
'\n | priezvisko = ',
'tagClose':
'\n | meno = '+
'\n | odkaz na autora = '+
'\n | titul = '+
'\n | url = '+
'\n | dátum vydania = '+
'\n | dátum aktualizácie = '+
'\n | dátum prístupu = '+
'\n | vydavateľ = '+
'\n | miesto = '+
'\n | jazyk = '+
'\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: '//upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png',
speedTip: 'Citácia knihy',
tagOpen: '\x7b\x7bCitácia knihy'+
'\n | priezvisko = ',
'tagClose':
'\n | meno = '+
'\n | odkaz na autora = '+
'\n | priezvisko2 = '+
'\n | meno2 = '+
'\n | odkaz na autora2 = '+
'\n | titul = '+
'\n | vydavateľ = '+
'\n | miesto = '+
'\n | rok = '+
'\n | isbn = '+
'\n | kapitola = '+
'\n | url = '+
'\n | strany = '+
'\n | jazyk = '+
'\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: '//upload.wikimedia.org/wikipedia/commons/4/49/Button_cite_journal.png',
speedTip: 'Citácia periodika',
tagOpen: '\x7b\x7bCitácia Harvard'+
'\n | Priezvisko1 = ',
'tagClose':
'\n | Meno1 = '+
'\n | OdkazNaAutora1 = '+
'\n | Priezvisko2 = '+
'\n | Meno2 = '+
'\n | OdkazNaAutora2 = '+
'\n | Spoluautori = '+
'\n | Titul = '+
'\n | URL = '+
'\n | Periodikum = '+
'\n | Rok = '+
'\n | Mesiac = '+
'\n | Ročník = '+
'\n | Číslo = '+
'\n | Strany = '+
'\n | Jazyk = '+
'\n | Formát = '+
'\n | ISSNprint = '+
'\n | ISSNonline = '+
'\n}}',
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 = 'P1'
if (wgUserLanguage != 'sk')
caption = 'My sandbox';
mw.util.addPortletLink('p-personal', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Special:Mypage/Pieskovisko', 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 = 'P2'
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 = 'P3'
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'));
}
});
function loadScript(url)
{
var e = document.createElement("script");
e.src = url;
e.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(e);
}
loadScript("//cs.wikipedia.org/w/index.php?title=Wikipedista:Mormegil/tools.js&action=raw&ctype=text/javascript&dontcountme=s");
$(function() { addSummaryToolbar(["drobná úprava ", "úprava ", "wikify", "", "doplnenie ", "preformulovanie ", "nový článok ", "oprava ", "", "fix", "commons", "", "presmerovanie ",]); });
$(function() { addFindAndReplaceToolbar() });
// [[:en:User:Lupin/popups.js]] - please include this line, prosím nemažte tento riadok
// [[Redaktor:jsimlo/popups.js]] - please include this line, prosím nemažte tento riadok
//<pre>
// *********************************************************************
// ** Toto je slovenský preklad pôvodného anglického popup skriptu. **
// *********************************************************************
// ** Zmeny v tomto súbore môžu zasiahnuť mnoho iných užiteľov. **
// ** Prečítaj si najprv diskusiu k tomuto článku a prípadné zmeny **
// ** najskôr konzultuj s ostanými uživateľmi. **
// *********************************************************************
// [[:sk:User:jsimlo/popups-sk.js]]
document.write('<script type="text/javascript" src="'
+ '//sk.wikipedia.org/w/index.php?title=User:jsimlo/popups-sk.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[:en:User:Lupin/popups.js]]
document.write('<script type="text/javascript" src="'
+ '//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//</pre>