Wikipedysta:Azureus/monobook.js
importScript('Wikipedysta:Matma Rex/disFixer.js').
//-------------------------------------------------------------------------------
//--------------- linki [commons], [nowe strony], [allpages] ---------------
//-------------------------------------------------------------------------------
window.NoSummaryWarningDone = true;
var personalHeight = 0;
function addPersonalElement(el, url, label) {
addOnloadHook(function()
{
var elBefore = document.getElementById('pt-mytalk');
if ( personalHeight == 0 ) personalHeight = parseInt(elBefore.offsetHeight,10);
var elNew = document.createElement(el);
if (url != '') elNew.innerHTML='<a href="https://profillengkap.com/pl/' + url + '">[' + label + ']</a>';
elBefore.parentNode.insertBefore(elNew, elBefore);
});
}
function addPersonalBRHeight(label,margin) {
var el=document.getElementById(label);
var elTop = parseInt(margin?el.style.marginTop:el.style.top,10);
if (!elTop) elTop = 0;
elTop = ( personalHeight + elTop ) + "px";
if (margin) el.style.marginTop = elTop;
else el.style.top = elTop;
}
function addPersonalLink( url, label) { addPersonalElement('li', url, label); }
function addPersonalBR() {
addPersonalElement('br', '', '');
addOnloadHook(function()
{
addPersonalBRHeight('footer',true);
addPersonalBRHeight('content',false);
addPersonalBRHeight('p-cactions',true);
});
}
addPersonalLink( 'http://pl.wikipedia.org/wiki/Specjalna:Strony_wed%C5%82ug_prefiksu/User:Azureus/', 'allpages' );
addPersonalLink( 'http://pl.wikipedia.org/w/index.php?title=WP:TO', 'TO' );
addPersonalLink( 'http://pl.wikipedia.org/wiki/Specjalna:Porzucone_strony', 'porzucone' );
addPersonalLink( 'http://pl.wikipedia.org/w/index.php?title=Wikipedysta:Azureus/warsztat', 'warsztat' );
addPersonalLink( 'http://pl.wikipedia.org/wiki/Specjalna:Zdezaktualizowane_przejrzane_strony', 'zdezauktualizowane' );
addPersonalLink( 'http://pl.wikipedia.org/wiki/Specjalna:Nieprzejrzane_strony', 'nieprzejrzane' );
addPersonalBR()
/*
==== Automatic summaries ====
* Author: [[:pl:User:Adziura|Adam Dziura]]
* Fixes: [[:pl:User:Nux|Maciej Jaros]]
<pre>
*/
// main function
$(function ()
{
// stop before starting
if (window.autoSummariesDone)
return;
//
// check if user is editing and if this is a summary field (not a section header field)
var el = document.getElementById('wpSummary');
if (el)
{
// if (el.getAttribute('tabindex')==1) // hack! hopefully will not be changed
// return // stop
// ;
}
else
{
return; // stop
}
//
// adding element that will hold buttons
el = el.nextSibling;
var parent = document.createElement('span');
parent.id = 'userSummaryButtonsA'
el.parentNode.insertBefore(document.createElement('br'), el)
el.parentNode.insertBefore(parent, el)
//
// adding summary buttons
var cl = ''; // class is not needed (as on may style with the element above)
// drobne różne
addSummaryBtn(parent, '{{wikisłownik}}', 'addSumm("+{{wikisłownik}}")', cl,
'wikisłownik');
addSummaryBtn(parent, 'parametr w szablonie', 'addSumm("+parametr w szablonie {{wikisłownik}}")', cl,
'parametr');
addSummaryBtn(parent, 'parametr infobox', 'addSumm("+parametr wikisłownik w infoboksie")', cl,
'parametr');
});
/*
Params:
* el - parent element to hold buttons
* t - text to appear in the button
* a - action (as string) to be run after clicking a button; may be more then one function
* c - optional class name to be attached to the button
* d - a tooltip to be show when one highlights the button
*/
function addSummaryBtn(el, t, a, c, d) {
var btn = document.createElement('a');
btn.appendChild(document.createTextNode(t));
btn.title = d;
if (c!='')
btn.className = c
;
btn.onclick = new Function(a);
el.appendChild(btn);
}
function addSumm(txt) {
var wpS = document.editform.wpSummary;
if (wpS.value != '' && wpS.value.charAt(wpS.value.length-2) != '/')
wpS.value += '; ' + txt;
else
wpS.value += txt
;
}
// </pre>
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.