Utente:MAT/monobook.js

Vai alla navigazione Vai alla ricerca

Questa pagina definisce alcuni parametri di aspetto e comportamento generale di tutte le pagine. Per personalizzarli vedi Aiuto:Stile utente.


Nota: dopo aver salvato è necessario pulire la cache del proprio browser per vedere i cambiamenti, e comunque qualche minuto di preghiera non guasta. Per Mozilla / Firefox / Safari: fare clic su Ricarica tenendo premuto il tasto delle maiuscole, oppure premere Ctrl-F5 o Ctrl-R (Command-R su Mac); per Chrome premere Ctrl-Shift-R (Command-Shift-R su un Mac); per Konqueror: premere il pulsante Ricarica o il tasto F5; per Opera può essere necessario svuotare completamente la cache dal menu Strumenti → Preferenze; per Internet Explorer: mantenere premuto il tasto Ctrl mentre si preme il pulsante Aggiorna o premere Ctrl-F5.

disableAlert = true;
disableaprilfish = true;
addOnloadHook(function() {  importScript("Nonciclopedia:Script/Anteprima.js", (wgAction == 'edit'|| wgAction == 'submit'));})

document.write('<script type="text/javascript" src="' 
    + 'http://nonciclopedia.wikia.com/index.php?title=nonciclopedia:Monobook.js/strings-it.js' 
    + '&action=raw&ctype=text/javascript"></script>');

document.write('<script type="text/javascript" src="' 
    + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' 
    + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

if (mwCustomEditButtons) {
 mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/0/0c/Button_Chuck.png",
     "speedTip": "Cancellazione immediata (USARE CON CAUTELA!)",
     "tagOpen": "{{Cancellazione|motivo=",
     "tagClose": "|firma=~~" + "~~}" + "}\n\n",
     "sampleText": "Inserire qui il motivo"};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/a/a5/Button_Samara.png",
     "speedTip": "Articolo in scadenza",
     "tagOpen": "{{scadenza|{{subst:7g}" + "}|note=",
     "tagClose": "|firma=~~" + "~~}" + "}\n\n",
     "sampleText": "Note"};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/9/93/Button_Jessica.png",
     "speedTip": "Articolo in dubbio",
     "tagOpen": "{{Accusa|accusa=",
     "tagClose": "|firma=~~" + "~~}" + "}\n\n",
     "sampleText": "Inserire qui l'accusa"};

 mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/0/0a/Button_sad.png",
     "speedTip": "Poco umoristico",
     "tagOpen": "{{Accusa|accusa=APU|firma=~~" + "~~}" + "}\n\n",
     "tagClose": "",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/3/34/Button_MrX.png",
     "speedTip": "Battute tra amici",
     "tagOpen": "{{Cancellazione|motivo=BTA|firma=--~~" + "~~}" + "}\n\n",
     "tagClose": "",
     "sampleText": ""};

 mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png",
     "speedTip": "Tabella",
     "tagOpen": '{| class="wikitable"\n|-\n',
     "tagClose": "\n|}",
     "sampleText": "! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"};

mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/5/58/Button_small.png",
     "speedTip": "Piccolo",
     "tagOpen": "<small>",
     "tagClose": "</small>",
     "sampleText": "Piccolo"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/5/56/Button_big.png",
     "speedTip": "Grande",
     "tagOpen": "<big>",
     "tagClose": "</big>",
     "sampleText": "Grande"};

 mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images2.wikia.nocookie.net/nonciclopedia/images/b/b3/Pulsante_niubbi.png",
     "speedTip": "Prenota il tuo NIUBBO!",
     "tagOpen": "{{NST|",
     "tagClose": "|{{utente:MAT/firma}}}" + "}\n\n",
     "sampleText": "MAT"};


   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png",
     "speedTip": "Apice",
     "tagOpen": "<sup>",
     "tagClose": "</sup>",
     "sampleText": "Apice"};



   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png",
     "speedTip": "Pedice",
     "tagOpen": "<sub>",
     "tagClose": "</sub>",
     "sampleText": "Pedice"};

   
}

function updateNUlist_load() {
	if (wgPageName != "Speciale:Registri") return;
	if (!/&type=newusers/i.test(location.search)) return;
	var b = document.createElement('button');
	b.value = 'Aggiorna lista';
	document.getElementById('contentSub').appendChild(b);
	b.addEventListener('click', updateNUlist, true);
	return
 }

addOnloadHook(updateNUlist_load);

function updateNUlist () {
	var li = document.getElementsByClassName("mw-logline-newusers");
	var a;
	var text = "";
	for (var i = 0; i < li.length; i++) {
	    a = li[i].getElementsByTagName('a');
	    if (a[1].className == '' && a[2].className == 'new') text += "# [[" + a[1].title + "]]\n";
	 }
	var textarea = document.createElement('textarea');
	document.getElementById('contentSub').appendChild(textarea);
	textarea.value = text;
	return;
 }