Wikipedista:Japo/monobook.js
Vzhled
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": "/media/wikipedia/commons/4/42/Buttonsablona.png",
"speedTip": "Šablona",
"tagOpen": "\x7b\x7b",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/1/1c/Button_flamme.png",
"speedTip": "Pískoviště",
"tagOpen": "\x7b\x7bsubst:Pískoviště}} --\x7E\x7E\x7E\x7E",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/a/a5/Buttonexperimenty.png",
"speedTip": "Experimenty",
"tagOpen": "\x7b\x7bsubst:experimenty}} --\x7E\x7E\x7E\x7E",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/1/16/Buttonexperimenty2.png",
"speedTip": "Experimenty2",
"tagOpen": "\x7b\x7bsubst:experimenty2}} --\x7E\x7E\x7E\x7E",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/e/e4/Bouton_Vandale3.png",
"speedTip": "KomentářPOV",
"tagOpen": "\x7b\x7bsubst:KomentářPOV}} --\x7E\x7E\x7E\x7E",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/b/b4/Button_category03.png",
"speedTip": "Kategorie",
"tagOpen": "[[Kategorie:",
"tagClose": "]]",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/b/b0/Button_category02.png",
"speedTip": "DEFAULTSORT",
"tagOpen": "\x7b\x7bDEFAULTSORT:",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/b/b6/Vjazyce-button.png",
"speedTip": "Vjazyce",
"tagOpen": "\x7b\x7bVjazyce|",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/8/8c/Category_icon.png",
"speedTip": "Cizojazyčně",
"tagOpen": "\x7b\x7bCizojazyčně||",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/cs/b/b9/Buttoncopyvio.png",
"speedTip": "Copyvio",
"tagOpen": "\x7b\x7bCopyvio|zdroj=",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/3/3e/Sharp_button.png",
"speedTip": "#",
"tagOpen": "#",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/5/59/Button_template.png",
"speedTip": "Nedělitelná mezera",
"tagOpen": " ",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/4/41/Button_hr_halfwidth.png",
"speedTip": "Pomlčka",
"tagOpen": "–",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/3/30/Bv_icon.png",
"speedTip": "Subpahýl",
"tagOpen": "\x7b\x7bsubst:subpahýl}}",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/e/ec/Button_aviso_borrado.png",
"speedTip": "Urgetně upravit",
"tagOpen": "\x7b\x7bsubst:Urgentně upravit}}",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/3/3a/Button_av-img.png",
"speedTip": "Upravit",
"tagOpen": "\x7b\x7bupravit",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/9/97/Template_button.png",
"speedTip": "Wikify",
"tagOpen": "\x7b\x7bWikifikovat}}",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/a/a9/Button_tournesol.png",
"speedTip": "Vítejte",
"tagOpen": "== Vítejte == \x7b\x7bsubst:Vítejte}} --\x7E\x7E\x7E\x7E",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/e/e9/Button_preview.png",
"speedTip": "Náhled",
"tagOpen": "\x7b\x7bsubst:Náhled}} --\x7E\x7E\x7E\x7E",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/media/wikipedia/commons/e/ec/Button_aviso.png",
"speedTip": "Spam",
"tagOpen": "\x7b\x7bsubst:Spam}}--\x7E\x7E\x7E\x7E",
"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", "");
}
});
// Live Preview customization,
// edit this to your own liking.
wpUserName = 'Japo'; // User name to display in signatures
wpShowImages = false; // Enable downloading and displaying of images
wpLanguageCode = 'cs';
// Include Live Preview...
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js&action=raw&ctype=text/javascript');
// Now set everything up
window.onload = Main;
function Main()
{
LivePreviewInstall();
// You may include here other "extensions"
}
/* This is to keep track of who is using the Live Preview: [[User:Pilaf/livepreview.js]] */
// [[User:Lupin/popups.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');