Utente:Jalo/vector.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 1:
//<pre>
// Elenco dei tool da caricare.
 
var myButtons = new Array([2,'{{WIP|Jalo}}\\n{{UNESCO\\n|tipoBene = patrimonio\\n|nome = \\n|nomeInglese = \\n|immagine = \\n|anno = \\n|tipologia = Culturali\\n|pericolo= \\n|criterio = (i) (ii) (iii) (iv) (v) (vi) (vii) (viii) (ix) (x) (xi) (xii)\\n|link = \\n|stato = \\n|linkCategoria= \\n}}\\n','','UNESCO tpl',245,''],[2,'{{WIP|Jalo}}\\n{{coord||display=title}}\\n{{UNESCO\\n|tipoBene = patrimonio\\n|nome = \\n|nomeInglese = \\n|immagine = \\n|anno = \\n|tipologia = Culturali\\n|pericolo= \\n|criterio = (i) (ii) (iii) (iv) (v) (vi) (vii) (viii) (ix) (x) (xi) (xii)\\n|link = \\n|stato = \\n|linkCategoria= \\n}}\\n\\n\\n==Collegamenti esterni==\\n\\n*[http://whc.unesco.org/en/list/ Scheda UNESCO]\\n\\n{{Patrimoni Unesco|}}\\n\\n[[Categoria:Patrimoni dell\'umanità in ]]\\n','','UNESCO voce',0,''],[2,'{{Bio\\n|Titolo = \\n|Nome = \\n|Cognome = \\n|PostCognome = \\n|ForzaOrdinamento = \\n|Sesso = M\\n|LuogoNascita = \\n|GiornoMeseNascita = \\n|AnnoNascita = \\n|LuogoMorte = \\n|LuogoMorteLink = \\n|GiornoMeseMorte = \\n|AnnoMorte = ?\\n|Attività = \\n|Nazionalità = \\n|PostNazionalità =\\n|Immagine = \\n|Didascalia =\\n|FineIncipit = \\n|Categorie = \\n}}','','Bio',318,''],[2,'{{Infobox conflitto\\n|Nome del conflitto = \\n|Parte_di = \\n|Immagine = \\n|Didascalia = \\n|Data = \\n|Luogo = \\n|Casus = \\n|Mutamenti_territoriali = \\n|Esito = \\n|Schieramento1 = \\n|Schieramento2 = \\n|Comandante1 = [[Immagine:White flag icon.svg|16px]]\\n|Comandante2 = \\n|Effettivi1 = \\n|Effettivi2 = \\n|Perdite1 = \\n|Perdite2 = \\n|Perdite3 = \\n|Note = \\n}}\\n','','Infobox conflitto',0,''],[2,'{{Box successione\\n|carica = \\n|immagine = \\n|periodo = \\n|precedente = \\n|successivo = \\n}}','','Box successione',92,''],[1,'{{Sportivo\\n|Nome = \\n|NomeCompleto = \\n|Immagine = \\n|Didascalia = \\n|Sesso = \\n|CodiceNazione = \\n|Altezza = \\n|Peso = \\n|Disciplina = \\n|Specialità = \\n|Categoria = \\n|Ruolo = \\n|Record = \\n|Ranking = \\n|BestRanking = \\n|Società = \\n|Squadra = \\n|TermineCarriera = \\n|GiovaniliAnni = \\n|GiovaniliSquadre = \\n|Squadre = \\n|AnniNazionale = \\n|Nazionale = \\n|PresenzeNazionale(goal) = \\n|Allenatore = \\n|Incontri = \\n|RigaVuota = \\n|Palmares = \\n|Vittorie = \\n|Aggiornato = \\n}}\\n','0','Sportivo',0,''],[1,'{{Da aggiornare|arg=sport|anno=2012|mese=08}}','0','Aggiornare sport',0,'']);
 
var myLinks = new Array(['Voce su en.wiki','http://en.wikipedia.org/wiki/%TITOLO%'],['Voce su Commons','http://commons.wikimedia.org/wiki/Image:%TITOLO2%'],['Vecchio Edit-count','http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user=Jalo&dbname=itwiki_p'],['Bold / No bold','javascript:bolda();'],['Logo / No logo','javascript:noLogo();']);
 
// Firefox
var toLoad = "";
toLoad += "purg ";
toLoad += "led ";
toLoad += "ns0 ";
toLoad += "lks ";
// toLoad += "tabs "; // NO
toLoad += "mjs ";
toLoad += "sand ";
// toLoad += "admin "; // NO
// toLoad += "bot "; // NO
toLoad += "requi ";
toLoad += "uec ";
toLoad += "log ";
toLoad += "whois ";
toLoad += "unw ";
toLoad += "wiki ";
toLoad += "stu ";
toLoad += "voto ";
toLoad += "canc ";
toLoad += "caut ";
// toLoad += "bpar "; // NO
toLoad += "edw ";
toLoad += "wip ";
toLoad += "sot ";
toLoad += "small ";
toLoad += "bar ";
toLoad += "case ";
toLoad += "fat ";
toLoad += "nfat ";
toLoad += "cwtch ";
toLoad += "popup ";
toLoad += "nms ";
// toLoad += "qed "; // NO
toLoad += "since ";
toLoad += "edt ";
// toLoad += "vfol "; // NO
toLoad += "linkcomplete ";
// toLoad += "lrc ";
// toLoad += "elrc "; // NO
// toLoad += "rch "; // NO
// toLoad += "wed "; // NO
// toLoad += "orol "; // NO
// toLoad += "nav "; // NO
// toLoad += "stru "; // NO
// toLoad += "tbar "; // NO
// toLoad += "avan "; // NO
// toLoad += "chat "; // NO
// toLoad += "cmd "; // NO
// toLoad += "goo "; // NO
// toLoad += "ver "; // NO
// toLoad += "vpop "; // NO
// toLoad += "qdel "; // NO
// toLoad += "dels "; // NO
 
 
//var toLoad = "purg led ns0 lks tabs mjs sand admin bot requi uec log whois unw wiki stu voto canc caut bpar edw wip sot small bar case fat nfat cwtch popup nms qed since edt vfol linkcomplete lrc elrc rch";
 
// var nomeBot="JaloBot";
 
 
//Lancia il vero monobook
// Vedi [[Wikipedia:Monobook.js/MonobookCompleto.js]]
mw.loader.load("//it.wikipedia.org/w/index.php?title=Wikipedia:Monobook.js/MonobookCompleto.js&action=raw&ctype=text/javascript&dontcountme=s");
 
//JUST FOR DEBUG
//mw.loader.load("//it.wikipedia.org/w/index.php?title=Utente:Jalo/monobook.js/test&action=raw&ctype=text/javascript&dontcountme=s");
 
 
 
//CONFIGURAZIONE POPUP
popupDelay = 2; // aspetta 2 secondi
popupQueriedRevertSummary = "Rollback da popup. Ripristinata la versione di $3";
 
 
//MOSTRA I TATTOO
Riga 171 ⟶ 99:
pulsantiDescrPers = new Array();
//PATRIMONIO
pulsantiComandoPers["patrimonio"] = 'javascript:addTextAtCursor("[[patrimonio dell\'umanità|patrimoni dell\'umanità]]","","",50)';
pulsantiHotkeyPers["patrimonio"] = 'P';
pulsantiDescrPers["patrimonio"] = 'Patrimonio';
 
//UNESCO
pulsantiComandoPers["unesco"] = 'javascript:addTextAtCursor("[[Organizzazione delle Nazioni Unite per l\'Educazione, la Scienza e la Cultura|UNESCO]]","","",87)';
pulsantiHotkeyPers["unesco"] = 'U';
pulsantiDescrPers["unesco"] = 'Unesco';
 
//SUP 2
pulsantiComandoPers["sup2"] = 'javascript:addTextAtCursor("²","","",1)';
Riga 190 ⟶ 108:
pulsantiHotkeyPers["cita"] = '';
pulsantiDescrPers["cita"] = '{{Cita}}';
 
//TESTO ROSSO
pulsantiComandoPers["rosso"] = 'javascript:addTextAtCursor(\'<span style="color:red">\',"","</span>",0)';
pulsantiHotkeyPers["rosso"] = '';
pulsantiDescrPers["rosso"] = 'Testo rosso';
 
//REFERENCES
Riga 205 ⟶ 118:
pulsantiHotkeyPers["roma"] = 'A';
pulsantiDescrPers["roma"] = 'Portali';
 
//SOVRAIMMAGINE
pulsantiComandoPers["simm"] = 'javascript:addTextAtCursor("{{Sovraimmagine\\n | allineamento = right\\n | sotto = Germania Magna jpg.jpg\\n | sotto_larghezza = 300px\\n | sotto_didascalia = Mappa delle tribù germaniche (Nell ovale rosso gli Angrivari)\\n | sopra = Red oval.svg\\n | sopra_larghezza = 40px\\n | sopra_didascalia = Angrivari\\n | x = 80\\n | y = 55\\n}}","","",0)';
pulsantiHotkeyPers["simm"] = 'S';
pulsantiDescrPers["simm"] = 'Sovraimmagine';
 
//INTERPROGETTO
pulsantiComandoPers["ipro2"] = 'javascript:addTextAtCursor("==Altri progetti==\\n{{interprogetto|","}}\\n\\n\\n","","",200)';
pulsantiHotkeyPers["ipro2"] = 'I';
pulsantiDescrPers["ipro2"] = 'Interprogetto + titolo';
 
//CATEGORY:
pulsantiComandoPers["category"] = 'javascript:addTextAtCursor("Category:","","",9)';
pulsantiHotkeyPers["category"] = 'X';
pulsantiDescrPers["category"] = 'Category:';
 
//FOTO RICHIESTE:
Riga 235 ⟶ 138:
pulsantiHotkeyPers["butgreen"] = 'A';
pulsantiDescrPers["butgreen"] = 'ButtonGreen';
 
//PORTALE MITOLOGIA:
pulsantiComandoPers["mito"] = 'javascript:addTextAtCursor("{{Portale|Mitologia}}","","",19)';
pulsantiHotkeyPers["mito"] = 'M';
pulsantiDescrPers["mito"] = 'Portale mitologia';
 
//TRADUCI WIKILINK:
Riga 245 ⟶ 143:
pulsantiHotkeyPers["tradme"] = 'W';
pulsantiDescrPers["tradme"] = 'Traduci link';
 
//</pre>
 
//test