Přeskočit na obsah

Wikipedista:Dominikmatus/vector.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.

// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');

// install the (Language) translation for [[:en:User:Cacycle/wikEd]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Sevela.p/wikEd international cs.js'
+ '&action=raw&ctype=text/javascript"></script>');

// --------- custom edit toolbar ---------
if (mwCustomEditButtons) {
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/5/55/Button_nbsp_1.png",
      "speedTip": "Tvrdá mezera",
      "tagOpen": "&nbsp;",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/0/05/Button_Anf%C3%BChrung.png",
      "speedTip": "Úvozovky",
      "tagOpen": "„",
      "tagClose": "“",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/4/42/Buttonsablona.png",
      "speedTip": "Šablona",
      "tagOpen": "{{",
      "tagClose": "}}",
      "sampleText": "šablona"};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/7/71/TableCell.png",
      "speedTip": "Svislík",
      "tagOpen": "|",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/9/94/Button_zdroj.png",
      "speedTip": "{{chybí zdroj}}",
      "tagOpen": "{{",
      "tagClose": "}}",
      "sampleText": "chybí zdroj"};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/2/22/Button_ellipsis.png",
      "speedTip": "Tři tečky",
      "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/d/db/Button_with_wikinumber_character.png",
      "speedTip": "Křížek-číslo",
      "tagOpen": "#",
      "tagClose": "",
      "sampleText": ""};
  mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/e/e4/Button_with_Celsius_degree.png",
      "speedTip": "Stupeň Celsia",
      "tagOpen": "&nbsp;°C",
      "tagClose": "",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/1/1b/Button_hide_wiki_tag.png",
      "speedTip": "Sktytý text",
      "tagOpen": "<!--",
      "tagClose": "-->",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/7/79/Button_reflink.png",
      "speedTip": "Ref",
      "tagOpen": "<ref>",
      "tagClose": "</ref>",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/1/17/Button_small_2.png",
      "speedTip": "Small",
      "tagOpen": "<small>",
      "tagClose": "</small>",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/f/f7/Button_referencesR.png",
      "speedTip": "<references/>",
      "tagOpen": "<references/>",
      "tagClose": "",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "/media/wikipedia/commons/f/f8/Button_Tool_commons.png",
      "speedTip": "{{Commonscat|}}",
      "tagOpen": "{{Commonscat|}}",
      "tagClose": "",
      "sampleText": ""};
};

// [[wikipedia:User:Lupin/popups]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>')

// překlad
document.write('<script type="text/javascript" src="'
+ 'http://cs.wikipedia.org/wiki/User:Kuvaly/strings-cs.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>')

// zvýraznění mého jména
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/wiki/User:Ais523/highlightmyname2.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>')



/* 	myGallery.js        ------------ 	Description: Adds a Tab to the Vector skin providing 1-click access to your own uploaded images,         using http://toolserver.org/~daniel/WikiSense/Gallery.php         Only written/tested for Vector skin. */   //function to find first 'ul' node in an element   function getFirstULchild(n) { x=n.firstChild; while (x.tagName != 'UL')  {  x=x.nextSibling;  } return x; }   //attach this whole event to Onload for page   addOnloadHook(function () {   // Create a <li> element, and an <a> element, and a <span> element, and set some properties   var liContainer = document.createElement("li");   // build and assign the url for the link   var myLink = document.createElement('a'); myLink.href = 'http://toolserver.org/~daniel/WikiSense/Gallery.php?wikifam=commons.wikimedia.org'; myLink.href += '&order=-img_timestamp&img_user_text=' myLink.href += wgUserName; //currently logged in user myLink.href += '&max=250&ofs=0&max=250';   var mySpan = document.createElement('span'); mySpan.innerHTML = 'Moje galerie';   //nest the <span> in the <a>, then the <a> in the <li>   myLink.appendChild(mySpan); liContainer.appendChild(myLink);   //insert the <li>, now containing both nested elements, into the DOM  //it should be inserted before the watch/unwatch link/icon   y = (document.getElementById("ca-unwatch")); if (!y) {     y = (document.getElementById("ca-watch")); }     if (y) { getFirstULchild(document.getElementById("p-views")).insertBefore(liContainer,y); }   });   /* 	END OF: myGallery.js        --------------------       */