Wikipedysta:Santer/monobook.js
$(function (){
if (location.href.match(/diff=/)) {
// Get username of submitter
var user1 = getElementsByClass('diff-otitle',null,'td'); user1 = user1[0].getElementsByTagName('a')[2].innerHTML;
var user2 = getElementsByClass('diff-ntitle',null,'td'); user2 = user2[0].getElementsByTagName('a')[3].innerHTML;
document.getElementById('contentSub').innerHTML = '(<a href="http://pl.wikipedia.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=1&user1='+user1+'&user2='+user2+'">revert</a> | <a href="https://profillengkap.com/pl/javascript:var message = getMessage(\'revert\', \''+user1+'\', \''+user2+'\');">powód</a>)';
} else if (location.href.match(/revert=1/)) {
document.getElementById('wpSummary').value = 'Przywrócono przedostatnią wersję, jej autor to [[Wikipedysta:'+_GET['user1']+'|'+_GET['user1']+']]. Autor wycofanej edycji to [[Specjalna:Contributions/'+_GET['user2']+'|'+_GET['user2']+']].';
document.getElementById('editform').submit();
} else if (location.href.match(/revert=2/)) {
document.getElementById('wpSummary').value = 'Przywrócono przedostatnią wersję, jej autor to [[Wikipedysta:'+_GET['user1']+'|'+_GET['user1']+']]. Autor wycofanej edycji to [[Specjalna:Contributions/'+_GET['user2']+'|'+_GET['user2']+']]. ('+_GET['message']+')';
document.getElementById('editform').submit();
}
});
//Ek
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a9/Ek_button.png",
"speedTip": "Szablon Ekspresowego Kasowanka",
"tagOpen": "{{ek",
"tagClose": "}}<br /><br />",
"sampleText": ""}
// <nowiki> -------------------------------------------
// przyciski tylko podczas edycji strony dyskusji - testy
$(function()
{
if (wgNamespaceNumber != 3)
return;
if (wgAction != 'edit')
return;
var userSummaryButtons = document.getElementById('userSummaryButtons');
if (! userSummaryButtons)
{
var userSummaryButtons = document.createElement('div');
userSummaryButtons.id = 'userSummaryButtons'
var minoredit = document.getElementById('wpMinoredit');
if (! minoredit)
return;
minoredit.parentNode.insertBefore(userSummaryButtons, minoredit);
}
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, 'obraźliwe', '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") ', '', 'nie usuwaj');
przyciskiDodaj(el, 'spamer', 'usertalk_text("spam", 0) ', '', 'przestań wprowadzać zewnętrzne odnośniki do stron');
przyciskiDodaj(el, 'nonsens', 'usertalk_test(2) ', '', 'nonsensowne edycje');
przyciskiDodaj(el, 'bezsens', 'usertalk_test("G") ', '', 'tworzenie bezsensownych haseł');
przyciskiDodaj(el, 'niszczenie', 'usertalk_test(3) ', '', 'niszczenie stron');
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, 'zabawy', '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("podpisuj", 1) ', '', 'podpisywanie i odpisywanie');
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_test("Ency") ', '', '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> -------------------------------------------
var wp_sk_show_as_button = true; // pokazuj przycisk
var wp_sk_redir_enabled = true; // ajaksowe redirecty
importScript('Wikipedysta:Nux/wp_sk.js');
importScript('Wikipedysta:Malarz_pl/wp_sk.js');
$(function()
{
wp_sk.cleaner_old = wp_sk.cleaner;
wp_sk.cleaner = function (str)
{
str = wp_sk.cleaner_old(str);
str = str.replace(/Łukasz McKita/g, 'Santer');
str = str.replace(/(P|p)ok(e|é)mon/g, 'Pokémon');
str = str.replace(/johto_numer/g, 'numer w Johto');
str = str.replace(/johto_poprzedni/g, 'poprzedni w Johto');
str = str.replace(/johto_nastepny/g, 'następny w Johto');
str = str.replace(/hoenn_numer/g, 'numer w Hoenn');
str = str.replace(/hoenn_poprzedni/g, 'poprzedni w Hoenn');
str = str.replace(/hoenn_nastepny/g, 'następny w Hoenn');
str = str.replace(/sinnoh_numer/g, 'numer w Sinnoh');
str = str.replace(/sinnoh_poprzedni/g, 'poprzedni w Sinnoh');
str = str.replace(/sinnoh_nastepny/g, 'następny w Sinnoh');
str = str.replace(/nazwa_jap/g, 'japońska nazwa');
str = str.replace(/dawna_forma/g, 'poprzednia forma');
str = str.replace(/naste_forma/g, 'następna forma');
str = str.replace(/zdolnosc/g, 'zdolność');
str = str.replace(/podział_płci/g, '');
str = str.replace(/tytul_kol/g, 'kolor nagłówka');
str = str.replace(/kolumna_kol/g, 'kolor kolumny');
str = str.replace(/ramka_kol/g, 'kolor ramki');
str = str.replace(/nastepny/g, 'następny');
return str;
}
});
importScript('Wikipedysta:Matma Rex/infobox_r.js');
$(function(){infobox.infoboxes[infobox.infoboxes.length]={
name:'Pokémon infobox',
selname:'Pokémon',
para:
[
['nazwa','',''],
['numer','',''],
['poprzedni','',''],
['następny','',''],
['numer w Johto','',''],
['poprzedni w Johto','',''],
['następny w Johto','',''],
['numer w Hoenn','',''],
['poprzedni w Hoenn','',''],
['następny w Hoenn','',''],
['numer w Sinnoh','',''],
['poprzedni w Sinnoh','',''],
['następny w Sinnoh','',''],
['japońska nazwa','',''],
['rōmaji','',''],
['poprzednia forma','',''],
['następna forma','',''],
['wymowa','',''],
['typ','',''],
['typ2','',''],
['zdolność','',''],
['wzrost','',''],
['masa','',''],
['kolor','','']
]
}});
importScript('User:Derbeth/ort.js');
document.write('<script type="text/javascript" src="'
+ 'http://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
var wma_settings =
{
height : 400,
width : 700
}
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.
- 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:
- 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.
- 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.
- 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.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.