Wikipedysta:Brd/monobook.js
var wp_sk_redir_enabled = true; // ajaksowe redirecty
var wp_sk_show_as_button = true;
importScript('Wikipedysta:Nux/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(/(\s)-(\s)/g, '$1–$2'); // dywiz na półpauzę między spacjami
str = str.replace(/(&[nm]dash;|—)/g, '–'); // encje na półpauzę
for (i = 0; i <= 3; i++) { // 3x, bo może być więcej dywizów w 1 linku
str = str.replace(/\[\[([^\|\]]+?) – ([^\|]+?)([\|\]])/g, '[[$1 - $2$3'); //naprawiamy popsute linki, grafiki, interwiki i kategorie
}
str = str.replace(/\s+<ref([ >])/g, '<ref$1'); // bez spacji przed <ref
str = str.replace(/\s+\{\{[Ff]akt([\|\}])/g, '{{fakt$1'); // bez spacji przed {{fakt
str = str.replace(/([a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ]{5,}|\)|\'{2,5}|\]|\}|"|”)([\.,;])<ref([\s\S]+?)(<\/ref|\/)>\.?/g, '$1<ref$3$4>$2'); // .,; idzie za ref, jeśli przedtem jest >4-literowe słowo (a więc nie skrót), zamknięty nawias, zamknięte formatowanie, link lub szablon
str = str.replace(/([a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ]{5,}|\)|\'{2,5}|\]|\}|"|”)([\.,;])\{\{[Ff]akt\}\}\.?/g, '$1{{fakt}}$2'); // .,; idzie za fakt, jeśli przedtem jest >4-literowe słowo (a więc nie skrót), zamknięty nawias, zamknięte formatowanie, link lub szablon
str = str.replace(/(<ref([\s\S]+?)(<\/ref|\/)>)([\.,;])(<ref([\s\S]+?)(<\/ref|\/)>)+/g, '$1$5$4'); // .,; zza pierwszego za ostatni ref
return str;
}
});
// Dołączenie skryptu ze strony: [[Wikipedysta:Leafnode/LiveRC.js]]
document.write('<script type="text/javascript" src="'+
'http://pl.wikipedia.org/w/index.php?title=Wikipedysta:Leafnode/LiveRC.js\
&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// Dołączenie skryptu ze strony: [[Wikipedysta:ChP94/scripts/quickek.js]]
document.write('<script type="text/javascript" src="'+
'http://pl.wikipedia.org/w/index.php?title=Wikipedysta:ChP94/scripts/quickek.js\
&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// Linki w nagłówku użytkownika
$(function()
{
var elBefore = document.getElementById('pt-mytalk');
var elNew = document.createElement('li');
elNew.innerHTML='<a href="http://pl.wikipedia.org/w/index.php?title=Wikipedia:Tablica_og%C5%82osze%C5%84">Tablica ogłoszeń</a>';
elBefore.parentNode.insertBefore(elNew, elBefore);
});
importScript('Wikipedysta:Matma Rex/infobox.js');
inportScript('Wikipedysta:Matma Rex/defaultsort.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.
- 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.