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

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 45:
}
 
// TRADUCI WIKILINK: DALL'INGLESE
function tradLink()
{
Riga 91 ⟶ 92:
 
// Configurazione HOTKEYS
var tastiHotkeys = new Array();
tastiHotkeys["firma"] = 'F';
tastiHotkeys["case"] = 'C';
tastiHotkeys["obj"] = 'Z';
 
pulsantiComandoPers = new Array();
pulsantiHotkeyPers = new Array();
pulsantiDescrPers = new Array();
 
if (gadgetTbBase.isVisible()) {
var button = {
id: 'TestoAlla piccoloseconda',
group: 'formattazionemiei',
hotkey: '2',
icon: '//upload.wikimedia.org/wikipedia/it/d/dc/Pulsante_small.png',
text: {
pre: 'bla²',
post: 'bla'
}
};
gadgetTbBase.addButton(button);
//SUP 2
pulsantiComandoPers["sup2"] = 'javascript:addTextAtCursor("²","","",1)';
pulsantiHotkeyPers["sup2"] = '2';
pulsantiDescrPers["sup2"] = 'Alla seconda';
 
button = {
//CITA
id: 'Note+references',
pulsantiComandoPers["cita"] = 'javascript:addTextAtCursor("<ref>{{Cita||}}</ref>","","",12)';
group: 'miei',
pulsantiHotkeyPers["cita"] = '';
hotkey: 'R',
pulsantiDescrPers["cita"] = '{{Cita}}';
icon: '//upload.wikimedia.org/wikipedia/it/d/dc/Pulsante_small.png',
text: {
pre: '==Note==\\n{{references}}\\n\\n',
post: ''
}
};
gadgetTbBase.addButton(button);
 
button = {
//REFERENCES
pulsantiDescrPers["ipro2"] = id: 'Interprogetto + titolo';,
pulsantiComandoPers["ref"] = 'javascript:addTextAtCursor(\'==Note==\\n{{references}}\\n\\n\',"","",0)';
group: 'miei',
pulsantiHotkeyPers["ref"] = 'R';
hotkey: 'I',
pulsantiDescrPers["ref"] = 'Note+references';
icon: '//upload.wikimedia.org/wikipedia/it/d/dc/Pulsante_small.png',
text: {
pre: '==Altri progetti==\\n{{interprogetto|',
post: '}}\\n\\n'
}
};
gadgetTbBase.addButton(button);
 
button = {
//INTERPROGETTO
id: 'Tradotto da',
pulsantiComandoPers["ipro2"] = 'javascript:addTextAtCursor("==Altri progetti==\\n{{interprogetto|","}}\\n\\n","",0)';
group: 'miei',
pulsantiHotkeyPers["ipro2"] = 'I';
hotkey: 'T',
pulsantiDescrPers["ipro2"] = 'Interprogetto + titolo';
icon: '//upload.wikimedia.org/wikipedia/it/d/dc/Pulsante_small.png',
text: {
pre: 'javascript:addTradottoDa()',
post: ''
}
};
gadgetTbBase.addButton(button);
 
button = {
//TRADOTTO DA:
id: 'ButtonGreen',
pulsantiComandoPers["mytradda"] = 'javascript:addTradottoDa()';
group: 'miei',
pulsantiHotkeyPers["mytradda"] = 'T';
hotkey: 'A',
pulsantiDescrPers["mytradda"] = 'Tradotto da';
icon: '//upload.wikimedia.org/wikipedia/it/d/dc/Pulsante_small.png',
text: {
pre: ' [[Immagine:ButtonGreen.svg|15px]] ',
post: ''
}
};
gadgetTbBase.addButton(button);
 
button = {
//BUTTONGREEN PER CONTRIBUTI:
id: 'Traduci link',
pulsantiComandoPers["butgreen"] = 'javascript:addTextAtCursor(" [[Immagine:ButtonGreen.svg|15px]] ","","",35)';
group: 'miei',
pulsantiHotkeyPers["butgreen"] = 'A';
hotkey: 'W',
pulsantiDescrPers["butgreen"] = 'ButtonGreen';
icon: '//upload.wikimedia.org/wikipedia/it/d/dc/Pulsante_small.png',
 
text: {
//TRADUCI WIKILINK:
pulsantiComandoPers["tradme"] = pre: 'javascript:tradLink()'; ,
post: ''
pulsantiHotkeyPers["tradme"] = 'W';
}
pulsantiDescrPers["tradme"] = 'Traduci link';
};
gadgetTbBase.addButton(button);
 
//test