Wikipedysta:Harry lp/vector.js

var wgCanonicalSpecialPageName = mw.config.get('wgCanonicalSpecialPageName');
var wgServer = mw.config.get('wgServer');

// ulepszone SK (opis na http://pl.wikipedia.org/wiki/Wikipedia:SK )
var wp_sk_show_as_button = true
//importScript('Wikipedysta:Nux/wp_sk.js')
importScript('Wikipedysta:ToSter/wpsk user.js')
importScript('Wikipedysta:Malarz pl/wp sk.js')
importScript('Wikipedysta:Malarz pl/wp si.js')
importScript('Wikipedysta:Beno/wp sk.js')

// ujednoznacznienia + rediry + SK
//var disFixIfRedirsOnly=true
//importScript('MediaWiki:Gadget-disFixer.js')

// ulubione języki na górze listy
var mylangsArray = ["en", "de", "es"]
importScript('Wikipedysta:Lampak/MyLanguages.js')

// generator cytatów
importScript('User:Holek/cite-gen.js')

// nadpisanie org. funkcji:
function dodajOpis(opis)
{
	var wpS = document.editform.wpSummary;
	if (wpS.value != '' && wpS.value.charAt(wpS.value.length-2) != '/')
	{
		wpS.value += ', ' + opis
	}
	else
	{
		wpS.value += opis
	}
	wpS.focus();
}

// poprawa i dodanie "przycisków" u góry i po lewej
$(function()
{
	var el = document.getElementById('n-recentchanges');
	el = el.parentNode.parentNode.parentNode;
	var id_kontenera_edytorow = el.id;

	// nowe linki
	mw.util.addPortletLink('p-personal', wgServer + '/wiki/Wikipedysta:Harry_lp/przydatne', 'Wsparcie', 'pt-Helper', 'Wsparcie linkowe', '', document.getElementById('pt-userpage'));
	mw.util.addPortletLink(id_kontenera_edytorow, wgServer + '/wiki/Specjalna:Zdezaktualizowane_przejrzane_strony', 'Zdezaktualizowane', 'n-OutOfSight', 'Zdezaktualizowane strony do oznaczenia', '', document.getElementById('n-Guidelines'));

	// ominięcie popupu
	el = document.getElementById('n-bug_in_article');
	if (el)
	{
	    el.getElementsByTagName('a')[0].onclick=null;
	    el.style.display="inline"; // zdaje się, że domyślne
	    var elBefore = document.getElementById('n-Noticeboard');
	    elBefore.parentNode.insertBefore(el, elBefore);
	}

	// przenosiny LiveRC
/*	el = document.getElementById('pt-liverc');
	if (el)
	{
	    elBefore = document.getElementById('n-OutOfSight');
	    elBefore.parentNode.insertBefore(el, elBefore);
	}
*/

	// porządki w linkach "zbędnych"
	var roznosci = document.getElementById('p-zmiany');
	if(!roznosci)return;
	var h5 = roznosci.getElementsByTagName('h5')[0];
	if(h5) h5.innerHTML="Różności";
	//roznosci.setAttribute("class", "portal collapsed");
	//roznosci.getElementsByTagName('div')[0].style="display: none";

	var listaRoznosci = roznosci.getElementsByTagName('ul')[0];
	if(!listaRoznosci)return;
	el = document.getElementById('n-portal');
	if(el)listaRoznosci.appendChild(el);
	el = document.getElementById('n-Guidelines');
	if(el)listaRoznosci.appendChild(el);
	el = document.getElementById('n-help');
	if(el)listaRoznosci.appendChild(el);
});

if(wgCanonicalSpecialPageName == "Contributions")
{
 // add otwieracz nieprzejrzanych
 var oldRevPagesToOpen = 4;
 importScript('Wikipedysta:Harry_lp/oldRevUserContrib.js');
}

if (wgNamespaceNumber == 0 || wgNamespaceNumber == 10)
{
 importScript('Wikipedysta:Harry lp/copyFlagBtn.js');
}

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Kembali kehalaman sebelumnya