'insertTags("[[Immagine:","|thumb|180px|right|Descrizione]]","NomeFile");TimenSA("Aggiunta immagine");'
);
// pulsante CANCELCOPY
// tmp = document.createElement("a");
// tmp.id = 'tb-cyc';
// tmp.href = 'javascript:(function() //{wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value="{{cancelcopy|firma=~~~|fonte="+(prompt("Fonte")) //+"}}\\n"+wpTextbox1.value;summ=document.getElementById("wpSummary");summ.value=summ.value+"+{{cancella //subito copyviol}} ";})();';
// imag = document.createElement("img");
// imag.setAttribute('src','http://upload.wikimedia.org/wikipedia/it/d/de/Wiki_copydel.gif');
// imag.setAttribute('alt','[DCP]');
// imag.setAttribute('title','{{cancelcopy}}');
// tmp.appendChild(imag);
// toolbar.appendChild(tmp);
// pulsante COPYVIOL
// tmp = document.createElement("a");
// tmp.id = 'tb-cvi';
// tmp.href = 'javascript:(function() //{wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value="{{ViolazioneCopyright|url="+(prompt("Fonte")) //+"}}\\n"+wpTextbox1.value;summ=document.getElementById("wpSummary");summ.value=summ.value+"copyviol //";})();';
// imag = document.createElement("img");
// imag.setAttribute('src','http://upload.wikimedia.org/wikipedia/it/5/50/Wiki_copyviol.png');
// imag.setAttribute('alt','[CVI]');
// imag.setAttribute('title','{{copyviol}}');
// tmp.appendChild(imag);
// toolbar.appendChild(tmp);
}
/**** Aggiunge un generico tab ****/
function addlilink(tabs, url, name, id){
var na = document.createElement('a');
na.href = url;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.id = id;
li.appendChild(na);
tabs.appendChild(li);
return li;
}
/**** Aggiunge un tab come menu ****/
function addlimenu(tabs, name, id)
{
var na = document.createElement('a');
na.href = '#';
var mn = document.createElement('ul');
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.id = id;
li.className = 'tabmenu';
li.appendChild(na);
li.appendChild(mn);
tabs.appendChild(li);
return li;
}
/**** Aggiunge il tab "purge" ****/
}
// addOnloadHook(function () {
// var hist; var url;
// if (!(hist = document.getElementById('ca-history') )) return;
// if (!(url = hist.getElementsByTagName('a')[0] )) return;
// if (!(url = url.href )) return;
// addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
// 'purge', 'ca-purge', 'Purge server cache for this page', '0');
//});
function oldaddPurge()
{
ta['ca-purge'] = ['g', 'Pulisci la cache'];
if(!document.getElementById) return;
var x = document.getElementById('ca-history');
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
if(!x) return;
if(x.children) x = x.children[0];
else x = x.childNodes[0];
var pf = document.createElement('form');
pf.action = '?action=purge';
pf.method = 'POST';
pf.id = 'pf';
x.appendChild(pf);
addlilink(tabs, 'javascript:document.getElementById("pf").submit();', 'purge', 'ca-purge');
akeytt();
}
// </nowiki>
// </pre>
|