Wikipedista:Bruce Shorty/monobook.js: Porovnání verzí

Z Wikipedie, otevřené encyklopedie
Smazaný obsah Přidaný obsah
m js
m oprava
Řádek 164: Řádek 164:
// edit this to your own liking.
// edit this to your own liking.


wpUserName = 'Nádvorník'; // User name to display in signatures
wpUserName = 'Bruce Shorty'; // User name to display in signatures
wpShowImages = true; // Enable downloading and displaying of images
wpShowImages = true; // Enable downloading and displaying of images
wpLanguageCode = 'cs';
wpLanguageCode = 'cs';

Verze z 7. 12. 2006, 14:25

 // --------- custom edit toolbar ---------
if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_include.png",
     "speedTip": "|rour|",
     "tagOpen": "|",
     "tagClose": "",
     "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/cs/4/42/Buttonsablona.png",
      "speedTip": "Šablona",
      "tagOpen": "\x7b\x7b",
      "tagClose": "}}",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/cs/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/cs/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/cs/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\x7bWikifikovat}}",
      "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:Vítejte|a}}",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/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": "http://upload.wikimedia.org/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   = 'Bruce Shorty';   // User name to display in signatures
wpShowImages = true;      // Enable downloading and displaying of images
wpLanguageCode = 'cs';

// Include Live Preview...
document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// 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]] */