Utente:AXA9999/monobook.js: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(2 versioni intermedie di uno stesso utente non sono mostrate)
Riga 69: Riga 69:
"sampleText": "Immagine:Example.jpg|Caption1\nImmagine:Example.jpg|Caption2"};
"sampleText": "Immagine:Example.jpg|Caption1\nImmagine:Example.jpg|Caption2"};


mwCustomEditButtons[mwCustomEditButtons.length] = {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/nonciclopedia/images/3/34/Button_MrX.png",
"imageFile": "http://images.wikia.com/nonciclopedia/images/3/34/Button_MrX.png",
"speedTip": "Amico immaginario",
"speedTip": "Battute tra amici",
"tagOpen": "{{BTA|firma=--~~" + "~~}" + "}\n\n",
"tagOpen": "{{Cancellazione|motivo=BTA|firma=--~~" + "~~}" + "}\n\n",
"tagClose": "",
"tagClose": "",
"sampleText": ""};
"sampleText": ""};
Riga 79: Riga 79:
"imageFile": "http://images.wikia.com/nonciclopedia/images/f/f9/Button_box.png",
"imageFile": "http://images.wikia.com/nonciclopedia/images/f/f9/Button_box.png",
"speedTip": "Box",
"speedTip": "Box",
"tagOpen": '{| class="expansion" 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',
"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",
"tagClose": "\n|}\n",
"sampleText": "Inserire qui il testo interno"};
"sampleText": "Inserire qui il testo interno"};
Riga 127: Riga 127:
}
}


disableHideEdit = true;
disablehideEdit = 1;
disableaprilfish = 1;
disableaprilfish = true;


addOnloadHook(function() {
addOnloadHook(function() {

Versione attuale delle 21:54, 26 set 2013

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


wpUserName   = 'AXA9999';   // 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/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/d/d6/E%27fiamme.png",
     "speedTip": "Formattazione",
     "tagOpen": "{{Formattazione|note=",
     "tagClose": "|firma=--~~" + "~~}" + "}\n\n",
     "sampleText": "Inserire qui cosa fare"};

  mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/central/images/1/12/Button_gallery.png",
     "speedTip": "Galleria di immagini",
     "tagOpen": "\n<gallery>\n",
     "tagClose": "\n</gallery>",
     "sampleText": "Immagine:Example.jpg|Caption1\nImmagine:Example.jpg|Caption2"};

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

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"};

 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/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"};

}

disableHideEdit = true;
disableaprilfish = true;

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