Utente:Timendum/ToolbarButton.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+ pulsante astensione (template in costruzione) e stub
m funzioni deprecate
 
(5 versioni intermedie di 3 utenti non mostrate)
Riga 5:
var toolbar = null;
toolbar = document.getElementById("toolbar");
if (toolbar == null)
return;
var today = new Date();
Line 81 ⟶ 79:
imag.setAttribute('alt','[Aiu]');
imag.setAttribute('title','{{da aiutare}}');
tmp.appendChild(imag);
toolbar.appendChild(tmp);
 
// pulsante BENVENUTO
tmp = document.createElement("a");
tmp.id = 'tb-ben';
tmp.href = 'javascript:(function() {wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value="{{benve|nome={{PAGENAME}}|~~~ ~~~~~}}"+wpTextbox1.value;summ=document.getElementById("wpSummary");summ.value=summ.value+"Benvenuto su it.wiki!";})();';
imag = document.createElement("img");
imag.setAttribute('src','http://upload.wikimedia.org/wikipedia/it/7/74/Pulsante_benvenuto.png');
imag.setAttribute('alt','[Ben]');
imag.setAttribute('title','Benvenuto su it.wiki!');
tmp.appendChild(imag);
toolbar.appendChild(tmp);
Line 87 ⟶ 96:
tmp = document.createElement("a");
tmp.id = 'tb-piu';
tmp.href = 'javascript:(function() {wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value=wpTextbox1.value+"*{{piùsubst:+1}} ~~~ ~~~~~";summ=document.getElementById("wpSummary");summ.value=summ.value+"+{{più+1}}";document.getElementById("wpMinoredit").checked=1;})();';
var imag = document.createElement("img");
imag.setAttribute('src','http://upload.wikimedia.org/wikipedia/it/f/f8/Favorevole.png');
Line 98 ⟶ 107:
tmp = document.createElement("a");
tmp.id = 'tb-uguale';
tmp.href = 'javascript:(function() {wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value=wpTextbox1.value+"*{{ugualesubst:0}} ~~~ ~~~~~";summ=document.getElementById("wpSummary");summ.value=summ.value+"+{{uguale0}}";document.getElementById("wpMinoredit").checked=1;})();';
var imag = document.createElement("img");
imag.setAttribute('src','http://upload.wikimedia.org/wikipedia/it/a/aa/Astenuto.png');
Line 109 ⟶ 118:
tmp = document.createElement("a");
tmp.id = 'tb-meno';
tmp.href = 'javascript:(function() {wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value=wpTextbox1.value+"*{{menosubst:-1}} ~~~ ~~~~~";summ=document.getElementById("wpSummary");summ.value=summ.value+"+{{meno-1}}";document.getElementById("wpMinoredit").checked=1;})();';
var imag = document.createElement("img");
imag.setAttribute('src','http://upload.wikimedia.org/wikipedia/it/4/43/Contrario.png');
Line 117 ⟶ 126:
toolbar.appendChild(tmp);
}
addLoadEvent$( document ).ready(ToolbarButton);
// </nowiki>