Wikipedystka:Magalia/vector.js

/* disFixIfRedirsOnly=true 
disEnforceCookies=true
disCodeCleanup=false
 
importScript('Wikipedysta:Matma Rex/disFixer.js')
importScript('MediaWiki:Gadget-pendingChangesHelper.js')
 */
importScript('Wikipedysta:ToSter/wpsk user.js');
 
importScript('Wikipedysta:Malarz pl/wp sk.js');
 

// ===========================================================
// Przyciski nad polem edycji
// ===========================================================
/* 
function InsertButtonsToToolBar()
{
//Czy wiesz
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/89/Exquisite-khelpcenter.png",
    "speedTip": "Czywiesz",
    "tagOpen": "{{sub"+"st:Czy wiesz - artykuł|data=[[{{sub"+"st:LOCALDAY}} {{sub"+"st:LOCALMONTHNAMEGEN}}]] [[{{sub"+"st:CURRENTYEAR}}]]",
    "tagClose": "}}",
    "sampleText": " "}
// Czy wiesz autor
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/thumb/2/28/Information.svg/120px-Information.svg.png",
    "speedTip": "Czywieszautor",
    "tagOpen": "{{sub"+"st:Czy wiesz - autor | tytuł strony = [[",
    "tagClose": "]] | dzień = {{sub"+"st:LOCALDAY}} |miesiąc = {{sub"+"st:LOCALMONTHNAMEGEN}} | rok = {{sub"+"st:CURRENTYEAR}} | więcej stron = }}",
    "sampleText": "Nazwa"}
// Wikisłownik
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/07/Wiktsister_en.png",
    "speedTip": "wiktionary",
    "tagOpen": "{{wikisłownik|",
    "tagClose": "}}",
    "sampleText": "słowo"}
}
 
$( InsertButtonsToToolBar );
 
*/

/*
// ===========================================================
// Popups
// ===========================================================
 
popupDelay=1;		// opóźnienie w sekundach
popupFixRedirs=true;	// naprawianie linków do przekierowań
popupFixDabs=true;	// naprawianie linków do stron ujednoznaczniających
popupRevertSummaryPrompt=true; // możliwość zmiany tekstu przy revertowaniu
popupAdminLinks=true;  // wyświetlanie linków dla adminów (bloki itp.) 
 


// <nowiki> -------------------------------------------
// przyciski tylko podczas edycji strony dyskusji - testy
 
$(function()
{
	var copywarn = document.getElementById('editpage-copywarn');
	if (! copywarn)
		return;
 
	// usuń niepotrzebne
	copywarn.innerHTML = '';
 
	if (wgNamespaceNumber != 3)
		return;
 
	if (wgAction != 'edit' && wgAction != 'editredlink')
		return;
 
	var userSummaryButtons = document.getElementById('userSummaryButtons');
 
	if (! userSummaryButtons)
	{
		var userSummaryButtons = document.createElement('span');
		userSummaryButtons.id = 'userSummaryButtons'
		copywarn.appendChild(userSummaryButtons);
	}
	else
	{
		userSummaryButtons.appendChild(document.createElement('br'));
	}
	var el = userSummaryButtons;
 
	przyciskiDodaj(el, 'test', 'usertalk_test(0) ', '', 'test');
	przyciskiDodaj(el, 'stub', 'usertalk_test("Stub") ', '', 'artykuł nie spełnia wymagań');
	el.appendChild(document.createTextNode(' ')); // odstęp
	przyciskiDodaj(el, 'test1', 'usertalk_test(1) ', '', 'obraźliwe sformułowania');
	przyciskiDodaj(el, 'wulg', 'usertalk_test("W") ', '', 'wulgaryzmy');
	przyciskiDodaj(el, 'wandal', 'usertalk_test("K") ', '', 'wandalizm');
	przyciskiDodaj(el, 'testU', 'usertalk_test("U") ', '', 'wandalizm');
	przyciskiDodaj(el, 'spamer', 'usertalk_text("spam", 0) ', '', 'przestań wprowadzać zewnętrzne odnośniki do stron');
	przyciskiDodaj(el, 'test2', 'usertalk_test(2) ', '', 'nonsensowne edycje');
	przyciskiDodaj(el, 'testG', 'usertalk_test("G") ', '', 'tworzenie bezsensownych haseł');
	przyciskiDodaj(el, 'test3', 'usertalk_test(3) ', '', 'niszczenie stron');
	przyciskiDodaj(el, 'test4', 'usertalk_test(4) ', '', 'ostatnie ostrzeżenie');
	przyciskiDodaj(el, 'testP', 'usertalk_test("P") ', '', 'pierwsze i ostatnie ostrzeżenie');
	przyciskiDodaj(el, 'test5', 'usertalk_test(5) ', '', 'blokada');
	el.appendChild(document.createTextNode(' ')); // odstęp
	przyciskiDodaj(el, 'npa', 'usertalk_test("NPA") ', '', 'npa');
	przyciskiDodaj(el, 'żart', 'usertalk_test("żart") ', '', 'żart');
	przyciskiDodaj(el, 'testL', 'usertalk_test("L") ', '', 'niszczenie linków, szablonów');
	przyciskiDodaj(el, 'PE', 'usertalk_test("PE") ', '', 'zabawa paskiem edycji');
	przyciskiDodaj(el, 'AD', 'usertalk_test("AD") ', '', 'dodawanie/kasowanie informacji');
	el.appendChild(document.createElement('br')); // odstęp
	przyciskiDodaj(el, 'podglądaj', 'usertalk_text("podgląd", 0) ', '', 'używaj przycisku Pokaż podgląd przed zapisaniem artykułu');
	przyciskiDodaj(el, 'opisuj', 'usertalk_text("testopis", 0) ', '', 'proszę o wypełnianie pola Opis zmian');
	przyciskiDodaj(el, 'podpisuj', 'usertalk_text("dyskusjapodpis", 1) ', '', 'na czyjeś wiadomości odpowiadaj na jego stronie dyskusji');
	przyciskiDodaj(el, 'nie podpisuj', 'usertalk_text("bezpodpisu", 1) ', '', 'nie podpisuj edytowanych przez Ciebie artykułów');
	przyciskiDodaj(el, 'popraw', 'usertalk_text("topopraw", 1) ', '', 'należy coś zmienić, nie krępuj się!');
	el.appendChild(document.createTextNode(' ')); // odstęp
	przyciskiDodaj(el, 'grafikizew', 'usertalk_text("GrafikiZewnętrzne", 0) ', '', 'nie zamieszczaj linków do grafik zewnętrznych');
	przyciskiDodaj(el, 'wstawiaj ek', 'usertalk_text("Wikipedysta:Beau/TestEK", 1) ', '', 'nie kasuj zawartości strony, którą chcesz usunąć');
	przyciskiDodaj(el, 'nie komentuj', 'usertalk_text("Wikipedysta:Beau/TestKomentarz", 1) ', '', 'nie umieszczaj komentarzy w treści artykułu');
	przyciskiDodaj(el, 'przenoś', 'usertalk_test("Przenieś") ', '', 'nie wolno przenosić stron kopiując jedynie ich treść');
	przyciskiDodaj(el, 'ency', 'usertalk_text("Wikipedysta:Beau/TestEncy", 1) ', '', 'nie dopisuj siebie lub kolegów');
});
 
 
function usertalk_test(n)
{
	var text;
	var summary;
 
	if (n == '0')
	{
		text = '{' + '{' + 'test|' + wgUserName + '|~~~~}}';
		summary = "[[Szablon:test|test]]";
	}
	else
	{
		text =  '{' + '{' + 'test'  + n + '}}~~~~';
		summary = "[[Szablon:test" + n + "|test" + n + "]]";
	}
 
	document.editform.wpTextbox1.value += text;
	if (document.editform.wpSection.value == '')
		document.editform.wpSummary.value = summary;
}
 
function usertalk_text(n, subst)
{
	var sufix = '{' + '{' + ( subst ? 'subst:' : '')  + n + '}}~~~~';
	document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + sufix;
	var prefix = n.substr(0, 12) == 'Wikipedysta:' ? '' : 'Szablon:';
	if (document.editform.wpSection.value == '')
		document.editform.wpSummary.value = "[[" + prefix + n + "|" + n + "]]";
}
 
// </nowiki> -------------------------------------------
 
/* Userpage tabs */
/*
$(function()
{
	if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk")
	{
		var username = wgTitle.replace(/\/.*$/, '');
		var usernameEncoded = encodeURIComponent(username);
		mw.util.addPortletLink('p-cactions', wgScript + '?title=Special:Contributions&target=' + usernameEncoded, 'e', 'ca-contribs', 'Edycje');
		mw.util.addPortletLink('p-cactions', wgScript + '?title=Special:Prefixindex&namespace=2&from=' + usernameEncoded + '/', 'p', 'ca-subpages', 'Podstrony');
	}
});

/* Ekstra linki na górze strony - schowek, EK */
/* addOnloadHook(function()
{
	var elBefore = document.getElementById('pt-mytalk');
 
	var elNew = document.createElement('li');
	elNew.innerHTML='<a href="http://pl.wikipedia.org/wiki/Specjalna:Wkład/Awersowy">Mąż</a>';
	elBefore.parentNode.insertBefore(elNew, elBefore);
 
});
*/

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