Wikipedysta:PMG/monobook.js

// <nowiki>
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');

//klawisze od Nuxa

// $(function()
// {
//         var el = document.getElementById('userSummaryButtons');
//         if (el)
//         {
//                 przyciskiDodaj(el, 'tłumaczenie z en.wiki', 'dodajOpis("tłumaczenie z en wiki")', '',
//                         'Tłumaczenie');
//               przyciskiDodaj(el, 'oznacz', 'dodajOpis("oznaczanie jako przejrzane po raz pierwszy")', '',
//                         'oznacz');
//               przyciskiDodaj(el, 'LZ', 'dodajOpis("usunięto link zewnętrzny - by sprawdzić dlaczego przeczytaj [[WP:LZ]]")', '',
//                         'LZ');
//               przyciskiDodaj(el, 'infoboks', 'dodajOpis("usunięcie zbędnych pustych linii po infoboksie")', '',
//                         'infoboks');
//               przyciskiDodaj(el, 'spacja', 'dodajOpis("usunięcie zbędnej spacji z kategorii")', '',
//                         'spacja');
//               przyciskiDodaj(el, 'brak infobox', 'dodajOpis("brak infoboksu")', '',
//                         'brak infobox');
//               przyciskiDodaj(el, 'niezgodnosc', 'dodajOpis("wprowadzenie niezgodności pomiędzy tekstem a infoboksem")', '',
//                         'niezgodnosc');
//               przyciskiDodaj(el, 'WER', 'dodajOpis("inna wikipedia nie może być źródłem w rozumieniu [[WP:WER]]")', '',
//                         'WER');
//               przyciskiDodaj(el, 'ocena', 'dodajOpis("ocena jakości")', '',
//                         'ocena');
//         }
// });


//do uzupełniania infoboxów
//importScript('Wikipedysta:Matma Rex/infobox.js');

// przycisk od sprawdzania
//importScript('Wikipedysta:Matma Rex/przejrzyj.js');

//przejrzyj_addPurgeLink = true

//
// do szablonów USS itp.

if(mw.config.get('wgAction')=='submit' || mw.config.get('wgAction')=='edit')
	$(PmgReplaceButton);

function PmgReplaceButton()
{
	var toolbar_ = document.getElementById('toolbar');

	if (toolbar_)
	{
		var img = document.createElement('img');
		img.src = 'https://upload.wikimedia.org/wikipedia/commons/4/44/Button_comillas_latinas.png';
		img.style.cursor = 'pointer';
		img.height = 22;
		img.width= 23;
		var anchor = document.createElement('a');
		anchor.appendChild(img);
		anchor.href = 'javascript: PmgReplace()';
		toolbar_.appendChild(anchor);
	} 
}

function PmgReplace() {
	var wpTextbox1 = document.getElementById('wpTextbox1');
	if (!wpTextbox1)
		return;

	var text = wpTextbox1.value;
	text = text.replace(/\{\{(USS|USAT|USCGC|USNS|HMAS|HMCS|HMS|RMS|GTS|HSC|MS|MV|SS)\|([^|}]+)\|([^|}]+)\}\}/g, '[[$1 $2 ($3)|$1 "$2" ($3)]]');
	wpTextbox1.value = text;
}

// //Przeglądanie dla jednego usera
// var oldRevPagesToOpen = 100;
// importScript('Wikipedysta:Harry_lp/oldRevUserContrib.js');


importScript('Wikipedysta:Lampak/MyLanguages.js');
var mylangsArray = ["en"];
// </nowiki>

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