Utente:Heavymachinegun/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.

// Live Preview customization,
// edit this to your own liking.


wpUserName   = 'Heavymachinegun';   // User name to display in signatures

wpShowImages = true;      // Enable downloading and displaying of images


// Include Live Preview...


document.write('<script type="text/javascript" src="index.php?title=Nonciclopedia:Live_Preview/Javascript.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');


// Now set everything up


window.onload = Main;


function Main()
{

 LivePreviewInstall();

 // You may include here other "extensions"

}


/* This is to keep track of who is using the Live Preview: [[Nonciclopedia:Live Preview/Install]] */

if (mwCustomEditButtons) {
   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://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
     "speedTip": "Barrato",
     "tagOpen": "<s>",
     "tagClose": "</s>",
     "sampleText": "Barrato"};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/f/f9/Button_box.png",
     "speedTip": "Box",
     "tagOpen": '{| width="100%" align="center" style="background: #FFFFFF; color: #000000; border: 1px solid #000000; text-align: left; margin-bottom: 0px; margin-top: 0px;"\n| style="padding-right: 4px; padding-left: 4px;" |\n',
     "tagClose": "\n|}\n",
     "sampleText": "Inserire qui il testo interno"};

   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/3/34/Button_MrX.png",
     "speedTip": "Battute tra amici",
     "tagOpen": "{{Cancellazione|motivo=BTA|firma=--~~" + "~~}" + "}\n\n",
     "tagClose": "",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/nonciclopedia/images/d/d6/E%27fiamme.png",
     "speedTip": "Formattazione",
     "tagOpen": "{{Formattazione|note=",
     "tagClose": "|firma=--~~" + "~~}" + "}\n\n",
     "sampleText": "Inserire qui cosa fare"};
}

disableHideEdit = true;
disableAlert = true;
addOnloadHook(
 function () {
  if (document.getElementById('alert-load')) alert("alert onload presenti nella pagina");
  if (document.getElementById('alert-unload')) alert("alert onunload presenti nella pagina");
 }
);
function quickopen() {
 var Box = document.getElementById("searchBody");
 var form = document.createElement("form");
 Box.appendChild(form);
 form.setAttribute('action', "/index.php");
 form.setAttribute('target', "_blank");
 var c = document.createElement("input");
 form.appendChild(c);
 c.setAttribute('type', "text");
 c.setAttribute('name', "title");
 var menu = document.createElement("select");
 form.appendChild(menu);
 menu.setAttribute('name', "action");
 menu.options[menu.length] = new Option("Modifica", "edit", true);
 menu.options[menu.length] = new Option("Cronol", "history");
 menu.options[menu.length] = new Option("Elimina", "delete");
 var p = document.createElement("input");
 form.appendChild(p);
 p.setAttribute('type', "submit");
 p.setAttribute('value', "vai"); 
}
addOnloadHook(quickopen);

disableaprilfish = true;

addOnloadHook(function() {
  if(!document.getElementById("toolbar")) return;
  if(wgCurRevisionId)
    mwEditButtons[9].tagOpen = '--~~' + '~~{{VF|' + wgCurRevisionId + '}' + '}';
   else
    mwEditButtons[9].tagOpen = '--~~' + '~~{{VF|}' + '}';
  }
);