// ]
mw.loader.load(
'https://en.wikipedia.orghttps://pt.wiktionary.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
popupRevertSummary='Revertendo para a edição %s';
popupFixRedirs=true;
popupRedirAutoClick='wpPreview';
//Botões
//var div=document.getElementById('editpage-specialchars');
//if ( div ) {
//
//}
window.myOwnEditButtons=function() {
var tbdiv=document.getElementById('toolbar');
if ( tbdiv ) {
tbdiv.appendChild(document.createTextNode(' '));
// Botao:{Bem vindo}
caption = 'Bem vindo';
var babv = document.createElement('a');
babv.href = 'javascript:document.editform.wpSummary.value=\'\{\{bem vindo\}\}\';insertTags(\'\{\{bem vindo}} \~\~\~\~\',\'\',\'\');document.editform.submit();';
var imgbv = document.createElement('img');
imgbv.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_bvip.png';
imgbv.alt = caption;
babv.appendChild(imgbv);
tbdiv.appendChild(babv);
// Botao:{lixo}
caption = 'Lixo';
var baer = document.createElement('a');
baer.href = 'javascript:document.editform.wpSummary.value=\'\{\{lixo\}\}\';insertTags(\'\{\{lixo|\\]}}\',\'\',\'\');document.editform.submit();';
var imger = document.createElement('img');
imger.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_lixo.png';
imger.alt = caption;
baer.appendChild(imger);
tbdiv.appendChild(baer);
// Botao:{Bem vindo ip}
caption = 'Bem vindo IP';
var babv = document.createElement('a');
babv.href = 'javascript:document.editform.wpSummary.value=\'\{\{bem vindo ip\}\}\';insertTags(\'\{\{bem vindo ip}} \~\~\~\~\',\'\',\'\');document.editform.submit();';
var imgbv = document.createElement('img');
imgbv.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_bvip.png';
imgbv.alt = caption;
babv.appendChild(imgbv);
tbdiv.appendChild(babv);
// Botao:{impróprio}
caption = 'Impróprio';
var baer = document.createElement('a');
baer.href = 'javascript:document.editform.wpSummary.value=\'\{\{impróprio\}\}\';insertTags(\'\{\{impróprio|\\]}}\',\'\',\'\');document.editform.submit();';
var imger = document.createElement('img');
imger.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_lixo.png';
imger.alt = caption;
baer.appendChild(imger);
tbdiv.appendChild(baer);
// Botao:<strike>
caption = '<s></s>';
var bas = document.createElement('a');
bas.href = 'javascript:insertTags(\'<s>\',\'</s>\',\'\');';
var imgs = document.createElement('img');
imgs.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_strike.png';
imgs.alt = caption;
bas.appendChild(imgs);
tbdiv.appendChild(bas);
// Botao:{{ }}
var caption = 'txt2predef';
var ba = document.createElement('a');
ba.href = 'javascript:insertTags(\'<nowiki>{{\',\'}}</nowiki>\',\'\');';
var img = document.createElement('img');
img.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_topredef.png';
img.alt = caption;
ba.appendChild(img);
tbdiv.appendChild(ba);
// Botao:<tt>
caption = '<tt></tt>';
var batt = document.createElement('a');
batt.href = 'javascript:insertTags(\'<tt>\',\'</tt>\',\'\');';
var imgtt = document.createElement('img');
imgtt.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_tt.png';
imgtt.alt = caption;
batt.appendChild(imgtt);
tbdiv.appendChild(batt);
// Botao:<small>
caption = '<small></small>';
var basm = document.createElement('a');
basm.href = 'javascript:insertTags(\'<small>\',\'</small>\',\'\');';
var imgsm = document.createElement('img');
imgsm.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_small.png';
imgsm.alt = caption;
basm.appendChild(imgsm);
tbdiv.appendChild(basm);
// Botao:autoDisambig
caption = 'desambigtxt';
var badis = document.createElement('a');
badis.href = 'javascript:document.editform.wpSummary.value=\'v1\';insertTags(\'\{\{desambiguação\}\}\\n\\nPor \\\'\\\'\\\'\{\{subst:PAGENAME}}\\\'\\\'\\\' pode estar à procura de:\\n* \',\'\',\'\');';
var imgdis = document.createElement('img');
imgdis.src = 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_disambig.png';
imgdis.alt = caption;
badis.appendChild(imgdis);
tbdiv.appendChild(badis);
}
}
window.myAddOnload=function(f) {
if (window.addEventListener) window.addEventListener("load", f, false);
else if (window.attachEvent) window.attachEvent("onload",f);
}
myAddOnload(myOwnEditButtons);