Utente:Tano-kun/monobook.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Tano-kun (discussione | contributi)
Nessun oggetto della modifica
Tano-kun (discussione | contributi)
Nessun oggetto della modifica
Riga 1:
/* <pre><nowiki> */
 
 
/**
* Extra tabs for monobook skin
* Derivato dal monobook.js di [[:en:User:Wayward]], basato su [[:en:User:Alphax/monobook.js]]
* Necessita dell'apposito monobook.css
* Testato solo su Firefox
* Contiene codice preso dagli script di [[Utente:Paulatz]], [[Utente:Helios89]], [[Utente:Timendum]], [[Utente:Nick1915]]
* Forked from [[User:ABCD/monobook.js]] around April 2005
* Dual licensed under the GFDL and GPL
* See also: [[User:JesseW/monobook.js]]
* For italian translation [[it:Utente:Helios89/monobook.js]]
*/
 
/**** VARIABILIInitialise GENERALIon window load ****/
arrayArgument = new Array("antropologia", "archeologia", "architettura", "biografie", "biologia", "calcio", "chimica", "cinema", "diritto", "economia", "fantascienza", "filosofia", "fisica", "fumetti", "geografia", "giochi", "informatica", "ingegneria", "letteratura", "matematica", "meccanica", "medicina", "musei", "musica", "politica", "religione", "scienza", "sociologia", "sport", "storia", "teatro");
 
arrayMese = new Array("gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno",
"luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre");
 
var curTemplate;
 
/**** Initialize on window load ****/
 
if (window.addEventListener) window.addEventListener("load",myLoadFuncs,false);
Riga 36 ⟶ 28:
function myLoadFuncs()
{
addPurge(); // &action=purge
addPurge();
changeLinks(); // cause the personal menu looks bad
// &section=0
add_tabs(); // load tabs
addEditSection0();
addToolBoxLinks(); // add toolbox links
// cause the personal menu looks bad
addNavBarLinks(); // add navigation bar links
changeLinks();
talkpageplus(); // make red talk page links start new sections
// because edit summaries are good
addForceSummary();
// remove the logout access key
// if this is VFD, add the show/hide thingies
ta['pt-logout'] = new Array(null, null);
if(document.title.indexOf("Wikipedia:Pagine da cancellare") != -1 && document.title.indexOf("Editing ") != 0) vfdlinks();
// now add a million extra tabs
morelinks();
// and some stuff for the sidebar
addToolBoxLinks();
// for admins only...
// if(document.title.indexOf("Confirm delete - Delete") == 0) addVfdLink();
// change the title of the edit link
ta['ca-edit'] = ['e', 'Modifica questa pagina'];
// re-render the title and accesskeys for stuff
akeytt();
}
 
/**** Extra tab adding ****/
// Functions auxFicus and Ficus
function auxFicus(){
Argument = document.getElementById('inlinePopupDiv').getElementsByTagName('select')[0].value;
 
function addEditSection0()
wpTextbox1 = document.getElementById("wpTextbox1");
{
if (curTemplate == "W")
ta['ca-edit-0'] = ['', 'Modifica la sezione 0'];
wpTextbox1.value="{{"+curTemplate+"|"+Argument+"|"+"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}|~~~~}}"+wpTextbox1.value;
if(!document.getElementById) return;
else {
var Becausex = document.getElementById('inlinePopupDivca-edit').getElementsByTagName('input')[0].value;
if(!x) return;
wpTextbox1.value="{{"+curTemplate+"|"+Because+"|"+Argument+"|"+"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}|~~~~}}"+wpTextbox1.value;
var y = document.createElement('LI');
y.id = 'ca-edit-0';
if(x.className == 'selected'){
if(/&action=edit&section=0$/.test(window.___location.href)){
x.className = 'istalk';
y.className = 'selected';
} else {
x.className = 'selected istalk';
}
} else if(x.className == 'selected istalk'){
if(/&action=edit&section=0$/.test(window.___location.href)){
x.className = 'istalk';
y.className = 'selected istalk';
} else {
y.className = 'istalk';
}
} else {
y.className = x.className;
x.className = 'istalk';
}
var z = document.createElement('A');
switch(curTemplate){
if(x.children){
case "A": var summary = "da aiutare"; break;
z.href = x.children[0].href + '&section=0';
case "C": var summary = "da controllare"; break;
z.appendChild(document.createTextNode('0'));
case "P": var summary = "voce non neutrale"; break;
y.appendChild(z);
case "W": var summary = "da wikificare"; break;
document.getElementById('p-cactions').children[1].insertBefore(y,x.nextSibling);
}else{
z.href = x.childNodes[0].href + '&section=0';
z.appendChild(document.createTextNode('0'));
y.appendChild(z);
document.getElementById('p-cactions').childNodes[3].insertBefore(y,x.nextSibling);
}
summ=document.getElementById("wpSummary");
summ.value=summ.value+summary;
RemoveNode('inlinePopupDiv');
}
 
function Ficus(Template){
switch(Template){
case "A":
Greeter = "Hai richiesto di inserire questa pagina nella Categoria <b>\"Da aiutare\"</b>\n." +
" Per favore scrivi una motivazione e scegli un argomento dalla lista";
break;
case "C":
Greeter = "Hai richiesto di inserire questa pagina nella Categoria <b>\"Da controllare\"</b>\n." +
" Per favore scrivi una motivazione e scegli un argomento dalla lista";
break;
case "P":
Greeter = "Hai richiesto di inserire questa pagina nella Categoria <b>\"Segnalazioni NPOV\"</b>\n." +
" Per favore scrivi una motivazione e scegli un argomento dalla lista";
break;
case "W":
Greeter = "Hai richiesto di inserire questa pagina nella Categoria <b>\"Da wikificare\"</b>\n." +
" Per favore scegli un argomento dalla lista.";
break;
default: Greeter = "Qualcosa è andato storto, fai pure quello che vuoi: non ho idea di cosa succederà"
}
 
curTemplate = Template;
 
var div = document.createElement( 'div' );
div.id = 'inlinePopupDiv';
div.style.position = 'absolute';
div.style.zIndex = 1000;
div.style.left = '5px';
div.style.top = '5px';
div.style.backgroundColor = '#FFFFFF';
div.style.borderStyle = 'solid';
div.style.borderWidth = ' medium';
div.style.borderColor = '#000000';
 
var top = document.createElement( 'div' );
top.id = 'inlinePopupTop';
top.style.textAlign = 'right';
top.style.margin = '8px';
top.style.backgroundColor = '#DDDDDD';
 
 
var a = document.createElement( 'a' );
a.appendChild( document.createTextNode( 'Close' ) );
a.href = "javascript:void RemoveNode('inlinePopupDiv')";
a.style.margin = '8px';
 
top.appendChild( a );
 
div.appendChild( top );
 
var greet = document.createElement('p');
greet.innerHTML = Greeter;
div.appendChild(greet);
 
var form = document.createElement('form');
form.name = "popupForm";
var p = document.createElement('p');
 
p.appendChild(document.createTextNode('Motivazione:'));
if(Template!='W'){
var myedit = document.createElement('input');
myedit.name = 'editReason';
myedit.type = 'text';
p.appendChild(myedit);
}
 
p.appendChild(document.createTextNode('Argomento:'));
 
var sel = document.createElement('select');
sel.name = 'popupSelect';
sel.size = 1;
var option;
for (i=0; i<arrayArgument.length; i++){
option = new Option(arrayArgument[i],' ');
option.value = arrayArgument[i];
sel.options[sel.options.length] = option;
}
p.appendChild(sel);
 
var button = document.createElement('input');
button.value = 'OK';
button.type = 'button';
button.setAttribute('onclick', 'auxFicus()');
p.appendChild(button);
 
form.appendChild(p);
div.appendChild(form);
 
document.body.appendChild( div );
div.getElementsByTagName('input')[0].focus();
}
 
 
/**** Make the top links look better ****/
 
function changeLinks()
{
if(!document.getElementById) return;
// remove the "my" bits
document.getElementById('pt-mytalk').firstChild.innerHTML = 'discussione';
document.getElementById('pt-preferences').firstChild.innerHTML = 'preferenze';
document.getElementById('pt-watchlist').firstChild.innerHTML = 'osservati speciali';
document.getElementById('pt-mycontris').firstChild.innerHTML = 'contributi';
// add a clock
var toplinks = document.getElementById('p-personal').getElementsByTagName('ul')[0];
addlilink(toplinks, '#', '', 'utcdate');
showtime();
}
 
/**** Add generic tab ****/
 
function addlilink(tabs, url, name, id){
Riga 190 ⟶ 102:
return li;
}
 
/**** Add tab as menu ****/
 
function addlimenu(tabs, name, id)
{
var na = document.createElement('a');
na.href = '#';
var mn = document.createElement('ul');
na.appendChild(document.createTextNode(name));
Riga 207 ⟶ 117:
return li;
}
 
/**** Add purge tab ****/
 
function addPurge()
Riga 219 ⟶ 127:
if(x.children) x = x.children[0];
else x = x.childNodes[0];
addlilink(tabs, x.href.replace(/=history/, "=purge"), 'purge', 'ca-purge');
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();', 'aggiorna', 'ca-purge');
}
 
function getParamclosevfd(namebold, notbold){
{
if(___location.search){
var txt = document.editform.wpTextbox1;
for(var x in ___location.search.substring(1).split('&')){
txt.value = "{{subst:vt}} '''" + bold + "'''" + notbold + ". &ndash; ~~~~\n" + txt.value + "\n{{subst:vb}}\n";
var eq = x.indexOf('=');
txt = document.editform.wpSummary;
if(x.substring(0, eq) == name) return x.substring(eq + 1);
txt.value = "close discussion: " + bold + notbold;
}
document.editform.wpWatchthis.checked = false;
}
return '';
}
 
function editSummary()
/**** Tools menu ****/
{
var txt = document.editform.wpTextbox1;
document.editform.wpSummary.value = 'Edit summary';
if(txt.value.length > 0) txt.value += '\n';
txt.value += '{{subst:edit summary}} ~~~~';
txt.focus();
}
 
function fixformatstartThread(){
{
var form = document.editform;
var txt = formdocument.editform.wpTextbox1;
var which = prompt("Thread number?");
txt.value = txt.value
var now = new Date();
.replace(/<\/?(b|strong)>/gi, "'''")
if(which < 10) which = '0' + which;
.replace(/<\/?(i|em|var)>/gi, "''")
var timestamp = now.getUTCFullYear() + '';
.replace(/\{\{([Ss]u[bp])\|([^}]+)\}\}/g, "{{subst:$1|$2}}")
now.getUTCMonth() < 9 ? timestamp += '0' + (now.getUTCMonth() + 1) : timestamp += (now.getUTCMonth() + 1);
.replace(/<\/div +>/gi, "</div>");
now.getUTCDate() < 10 ? timestamp += '0' + now.getUTCDate() : timestamp += now.getUTCDate();
form.wpSummary.value += "formatting";
txt.value += '\n{{User talk:Alphax/' + timestamp + '-' + which + '}}';
form.wpMinoredit.checked = true;
document.editform.wpSummary.value = 'new thread';
}
 
function replacewelcomeMessage(){
{
document.editform.wpSummary.value = 'Benvenuto nella Wikipedia';
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
txt.value += '{{subst:User:Alphax/Welcome}} ~~~~';
txt.focus();
}
 
function anonWelcome()
{
document.editform.wpSummary.value = 'Create an account!';
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
txt.value += '{{subst:anon}} Thanks, ~~~~';
txt.focus();
}
 
function replace()
{
var s = prompt("Search regexp?");
if(s){
var r = prompt("Replace regexp?");
if(!r && r != '') return;
var txt = document.editform.wpTextbox1;
txt.value = txt.value.replace(new RegExp(s, "g"), r);
Riga 263 ⟶ 189:
}
 
function vfdresult()
/**** Talk message functions ****/
{
var res = prompt("Result?");
var vfddate = prompt("Nomination date?");
if(!res) return;
document.editform.wpSummary.value = 'VFD result - ' + res.replace(/'/g, '');
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
txt.value += '==VFD==\nOn [[' + vfddate + ']] [[{{subst:CURRENTYEAR}}]], this article was nominated for deletion. The result was ' + res + '. See [[Wikipedia:Votes for deletion/{{subst:PAGENAME}}]] for a record of the discussion. &ndash; ~~~~';
txt.focus();
}
 
function hidevfd()
// Appends msg to the currently editted page, sets the summary to summ,
// marks or unmarks the "Watch this page" checkbox according to watch,
// and marks or unmarks the "Minor edit" checkbox
function edit_summary_watch(msg, summ, watch, minor)
{
var fdivs = document.editform, t = f.wpTextbox1getElementsByTagName("div");
for(var x = 0; x < divs.length; ++x)
if (t.value.length > 0)
if(divs[x].className.indexOf("vfd") != -1)
t.value += '\n';
divs[x].style.display = "none";
t.value += msg;
document.getElementById('footer').style.display = 'none';
f.wpSummary.value = summ;
f.wpWatchthis.checked = watch;
f.wpMinoredit.checked = minor;
}
 
function showvfd()
// Like the former one, but adds "msg" in the beginning
function edit_summary_watch2(msg, summ, watch, minor)
{
var fdivs = document.editform, t = f.wpTextbox1getElementsByTagName("div");
for(var x = 0; x < divs.length; ++x)
t.value = msg + '\n' + t.value;
if(divs[x].className.indexOf("vfd") != -1)
f.wpSummary.value = summ;
divs[x].style.display = "";
f.wpWatchthis.checked = watch;
document.getElementById('footer').style.display = '';
f.wpMinoredit.checked = minor;
}
 
function vfdlinks()
// Places perm block and name block tags at top of edit section,
{
// marks or unmarks the "Watch this page" checkbox according to watch,
if(!document.getElementById) return;
// and marks or unmarks the "Minor edit" checkbox
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
function perm_name_block(msg, summ, watch, minor)
addlilink(tabs, 'javascript:hidevfd()', 'hide closed', 'ca-hide');
{
ta['ca-hide'] = ['', 'Hide closed VFDs'];
var f = document.editform, t = f.wpTextbox1;
addlilink(tabs, 'javascript:showvfd()', 'show closed', 'ca-show');
if (t.value.length > 0)
ta['ca-show'] = ['', 'Show closed VFDs'];
t.value += '\n';
var temp = t.value;
t.value = msg + '\n\n' + temp;
f.wpSummary.value = summ;
f.wpWatchthis.checked = watch;
f.wpMinoredit.checked = minor;
}
 
function changeLinks()
/**** Integrate tabs and talk message functions ****/
 
// adds various tabs and menu tabs
function add_tabs()
{
var tabs = if(!document.getElementById('p-cactions').getElementsByTagName('ul')[0] return;
// remove the "my" bits
// add a clock
var toplinks = document.getElementById('p-personal').getElementsByTagName('ul')[0];
addlilink(toplinks, '', '', 'utcdate');
showtime();
}
 
function addForceSummary(){
//Solo per le pagine di discussioni
if(!/&action=edit/.test(window.___location.href)) return;
if (document.title.indexOf("Modifica di Discussioni utente:") != -1)
if(/&section=new/.test(window.___location.href)) return;
{
if(!document.forms.editform) return;
addlimenu(tabs, 'Messaggi talk', 'talkm');
document.forms.editform.wpSave.onclick = forceSummary;
var talkm = document.getElementById('talkm').getElementsByTagName('ul')[0];
addlilink(talkm,'javascript:edit_summary_watch("{{subst:benve|~~~~}}", "Benvenuto", false, true)','Welcome', '');
addlilink(talkm,'javascript:edit_summary_watch("{{test}}", "test", false, true)','Test', '');
addlilink(talkm,'javascript:edit_summary_watch("{{vandalismo}}", "vandal", false, true)','Vandal', '');
addlilink(talkm,'javascript:edit_summary_watch("{{spam}}", "spam", false, true)','Spam', '');
addlilink(talkm,'javascript:edit_summary_watch("{{Avvisocopyviol|articolo=|url=}} ~~~~","avviso cv",false,true)','avviso cv','');
addlilink(talkm,'javascript:edit_summary_watch("{{Avvisocancellautente|wikilink=[[Titolo_pagina]]}}~~~~","avviso proposta cancellazione",false,true)','avviso canc','');
}
else if (document.title.indexOf("Modifica") != -1) // Solo durante le modifiche
{
addlimenu(tabs, 'strumenti vari', 'tools');
var tools = document.getElementById('tools').getElementsByTagName('ul')[0];
addlilink(tools,'javascript:fixformat()','format', '');
addlilink(tools,'javascript:replace()','replace', '');
addlilink(tools,'javascript:edit_summary_watch2("{{cancella subito|motivo=}}", "cancimm", false, true)','cancimm', '');
addlilink(tools,'javascript:edit_summary_watch2("{{cancelcopy|firma=~~~|fonte=}}", "cancelcopy", false, true)','cancelcopy', '');
addlilink(tools,'javascript:edit_summary_watch2("{{da cancellare}}", "cancellare", false, true)','da cancellare', '');
}
}
 
function forceSummary(){
/**** Add links to the toolbox ****/
if(!document.forms.editform.wpSummary.value.replace(/^(?:\/\\*.*\\*\/)? *(.*) *$/,'$1')){
var r = prompt('Are you sure you want to submit without adding a summary?\nTo add a summary, type it in the box below:',document.forms.editform.wpSummary.value);
if(r == null) return false;
document.forms.editform.wpSummary.value = r;
}
return true;
}
 
function vfddelete(){
var form = document.forms.deleteconfirm;
form.wpReason.value = '[[Wikipedia:Votes for deletion/' + unescape(window.___location.href.replace(/^.*\?title=([^&]+)&action=delete.*$/, '$1').replace(/_/g, ' ')) + ']]';
form.wpConfirm.checked = true;
}
 
function morelinks(){
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
if(document.title.indexOf("Editing Wikipedia:Votes for deletion") == 0)
{
addlimenu(tabs, 'vfd actions', 'vfda');
var vfda = document.getElementById('vfda').getElementsByTagName('ul')[0];
addlilink(vfda, 'javascript:closevfd("keep", "")', 'keep', '');
addlilink(vfda, 'javascript:closevfd("merge and redirect", " to [[" + prompt("Merge and redirect to?") + "]]")', 'merge', '');
addlilink(vfda, 'javascript:closevfd("redirect", " to [[" + prompt("Redirect to?") + "]]")', 'redir', '');
addlilink(vfda, 'javascript:closevfd("transwiki", " to " + prompt("Transwiki to?"))', 'trans', '');
addlilink(vfda, 'javascript:closevfd("transwiki", " to Wiktionary")', 'wikt', '');
addlilink(vfda, 'javascript:closevfd("speedy delete", "")', 'speedy', '');
addlilink(vfda, 'javascript:closevfd("delete", "")', 'del', '');
addlilink(vfda, 'javascript:closevfd(prompt("Result?"), "")', 'other', '');
addlilink(tabs, 'javascript:replace()', 'replace', '');
}
else if(document.title.indexOf("Confirm delete - Delete") == 0)
{
addlilink(tabs, 'javascript:vfddelete()', 'vfd', '');
}
else if(document.title.indexOf("Editing User talk:") == 0)
{
addlilink(tabs, 'javascript:replace()', 'replace', '');
addlimenu(tabs, 'talk messages', 'talkm');
var talkm = document.getElementById('talkm').getElementsByTagName('ul')[0];
addlilink(talkm, 'javascript:welcomeMessage()', 'welcome', '');
addlilink(talkm, 'javascript:anonWelcome()', 'anon', '');
addlilink(talkm, 'javascript:startThread()', 'thread', '');
addlilink(talkm, 'javascript:editSummary()', 'summary', '');
}
else if(document.title.indexOf("Editing ") == 0)
{
addlilink(tabs, 'javascript:replace()', 'replace', '');
addlilink(tabs, 'javascript:vfdresult()', 'vfd result', '');
}
 
 
}
 
function addToolBoxLinks()
{
var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0];
addlilink(tb, '/wiki/Speciale:Newpages', 'New pages', '');
var cur_user=document.getElementById("pt-userpage").textContent;
addlilink(tb, '/wiki/WikipediaSpeciale:Pagine_da_cancellareShortpages', 'CancellazioniShort pages', '');
addlilink(tb, 'http:/wiki/tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=itwiki_p&user=Speciale:Log' + cur_user, 'Edit countLogs', '');
addlilink(tb, '/wiki/SpecialeTemplate:LogDeletiontools', 'LogDeletion tools', '');
addlilink(tb, '/wiki/Wikipedia:Disambiguation_pages_with_links', 'Dab list', '');
addlilink(tb, '/wiki/Wikipedia:Template_messages/User_talk_namespace', 'Talk messages', '');
addlilink(tb, '/wiki/User_talk:Alphax/special', 'Special characters', '');
addlilink(tb, '/wiki/WP:ICT', 'Image Copyright tags', '');
}
 
/**** Aggiungi collegamenti alla barra di navigazione ****/
 
function addNavBarLinks()
{
var navbar = document.getElementById('p-navigation').getElementsByTagName('ul')[0];
var username=document.getElementById("pt-userpage").textContent;
addlilink(navbar, '/w/index.php?title=Utente:' + username + '/monobook.js&action=edit', 'monobook.js', '');
addlilink(navbar, '/w/index.php?title=Utente:' + username + '/monobook.css&action=edit', 'monobook.css', '');
/*addlilink(navbar, '/wiki/Utente:' + username + '/Sandbox', 'My sandbox', '');*/
addlilink(navbar, '/wiki/Discussioni progetto:Fumetti', 'Wikifumetteria', '');
addlilink(navbar, '/wiki/Progetto:Fumetti', 'Progetto:Fumetti', '');
addlilink(navbar, '/wiki/Portale:Fumetti', 'Portale:Fumetti', '');
addlilink (navbar, '/wiki/Progetto:Fumetti/Guida fumettobox', 'Guida fumettobox', '');
}
/**** Get a clock that autoupdates! ****/
 
function showtime()
Riga 373 ⟶ 322:
}
 
/**** Auto start new topics when hitting empty talk pages from the content page ****/
 
// Returns <li><a href="url">name</a></li>
function talkpageplus()
function addlilink(url, name)
{
var talkpagelinkna = document.getElementByIdcreateElement('ca-talka');
na.setAttribute('href', url);
if (talkpagelink.className == 'new')
{
talkpagelink.firstChild.href += '&section=new';
}
}
 
var txt = document.createTextNode(name);
/**** Add "unwatch" link to watchlist ****/
na.appendChild(txt);
 
var li = document.createElement('li');
addOnloadHook(function () {
li.appendChild(na);
var query_prefix = "title=Speciale:Watchlist&action=submit&remove=1&id[]=";
return li;
var query_prefix = "action=unwatch&title=";
}
 
// Adds a "blocklog" tab and fills in the username field on Speciale:Blockip, if a "&faketarget=username" is present.
if (window.___location.href.indexOf("Speciale:Watchlist") == -1) return;
function do_blockip_stuff()
var links = document.getElementById('content').getElementsByTagName('a');
{
for (var i = 0; i < links.length; i++) {
// focus on Reason field
if (links[i].href.substring(links[i].href.length-15) != '&action=history')
document.getElementsByName('wpBlockReason')[0].focus();
continue;
 
var unwatch = document.createElement('a');
// Look for a &faketarget= for the username/ip
unwatch.href = "/w/index.php?" + query_prefix + encodeURIComponent(links[i].title);
var l = ___location.search.substring(1).split('&');
unwatch.title = "Unwatch "+links[i].title;
var target = '';
unwatch.appendChild(document.createTextNode("unwatch"));
for (var i = 0; i < l.length; ++i)
links[i].parentNode.insertBefore(unwatch, links[i].nextSibling);
{
// kluge to handle case where "diff" is unlinked:
var delimn = linksl[i].previousSiblingindexOf('=');
delim =if (deliml[i].nodeTypesubstring(0, n) == 3 ? delim.nodeValue : ""'faketarget');
{
links[i].parentNode.insertBefore(document.createTextNode(delim.replace(/^.*diff/, "")), unwatch);
target = l[i].substring(n + 1);
break;
}
}
});
 
if (target == '')
function RemoveNode(id){
return;
var node = document.getElementById(id)
 
node.parentNode.removeChild(node);
// put account name in "IP Address/username" field
var addr = document.getElementsByName('wpBlockAddress')[0];
addr.value = unescape(target);
 
// add "blocklog" tab
var c1 = document.getElementById('column-one');
var tabs = c1.getElementsByTagName('div')[0].getElementsByTagName('ul')[0];
tabs.appendChild(addlilink('/w/index.php?title=Special%3ALog&type=block&user=&page=Utente%3A' + target, 'blocklog'));
}
 
// Opens the block log in the current window, and Speciale:Blockip in a popup.
//Create a blank portlet which can be filled with
// Width, height, top, and left are chosen for a 1600x1200 display.
//subsequent calls to addToPortlet.
//function blockpage_and_log(target)
//PARAMS:
//{
//* title: Top label of the portlet
// window.open('Special_Blockip.html?foo=blarg&faketarget=' + target, 'Block', 'width=1600,height=600,top=600,left=0');
//* newid: The id of the new portlet, needed to call addToPortlet
// document.___location.href = 'http://it.wikipedia.org/w/index.php?title=Speciale%3ALog&type=block&user=&page=Utente%3A' + target;
//* beforewhat: The name of an existing portlet; the new portlet is placed before it.
//}
// If void or invalid, the portlet is added after all the other ones.
 
function createPortlet(title, newid, beforewhat)
// Adds "block" and "blocklog" tabs to User: and User talk: pages.
function add_block_tab()
{
var c1 = document.getElementById('column-one');
var y;
var tabs = c1.getElementsByTagName('div')[0].getElementsByTagName('ul')[0];
var z;
var f = document.getElementById("column-one");
 
// use the "edit this page" tab to get already-tidied url
var portlet = document.createElement('div');
var editlk = document.getElementById('ca-edit').getElementsByTagName('a')[0].href;
// cut everything up to "title=" from the start and everything past "&action=edit" from the end
editlk = editlk.substring(editlk.indexOf('title=') + 6, editlk.lastIndexOf('&action=edit'));
editlk = editlk.substring(editlk.indexOf(':') + 1);
var slloc = editlk.indexOf('/');
if (slloc > 0)
editlk = editlk.substring(0, slloc);
 
// add var"block" pos;tab
tabs.appendChild(addlilink('/w/index.php?title=Special%3ABlockip&faketarget=' + editlk, 'block'));
if (beforewhat) pos = document.getElementById(beforewhat);
 
// To open the block page and block log simultaneously, replace the above line with:
portlet.className = "portlet";
// tabs.appendChild(addlilink('javascript:blockpage_and_log("' + editlk + '")', 'Block'));
portlet.id = newid;
// and uncomment the blockpage_and_log() function above.
y = document.createElement('h5');
y.appendChild(document.createTextNode(title));
 
// add "blocklog" tab
portlet.appendChild(y);
tabs.appendChild(addlilink('/w/index.php?title=Speciale%3ALog&type=block&user=&page=Utente%3A' + editlk, 'blocklog'));
 
//add "contributions" tab
y = document.createElement('div');
tabs.appendChild(addlilink('/w/wiki.phtml?title=Speciale:Contributions&target=User%3A' + editlk, 'contributions'));
y.className= "pBody";
 
}
portlet.appendChild(y);
 
function do_onload()
if (beforewhat) f.insertBefore(portlet, pos);
{
else f.appendChild(portlet);
if (document.title.indexOf('User:') == 0
|| document.title.indexOf('User talk:') == 0)
add_block_tab();
else if (document.title.indexOf('Block user') == 0) // could stand to be more robust
do_blockip_stuff();
}
 
if (window.addEventListener)
//Add something to a portlet.
window.addEventListener("load", do_onload, false);
//PARAMS:
else if (window.attachEvent)
//* id: The id of the portlet.
window.attachEvent("onload", do_onload);
//* obj: The object to be added.
 
function addToPortlet(id, obj)
if ( document.createElement && window.addEventListener )
{
function SoFixItInit() // pre-load, (don't want to slow down loading of article's content, though)
var f = document.getElementById(id);
{
 
}
f = f.getElementsByTagName("div")[0];
f.appendChild(obj);
}
 
function SoFixItLoad() // post-load
//Add an "allpages" button in "search" portlet
{
function allpages_button_click(){
UserMenu = new PortletMenu( 'p-personal' );
var inputs = document.getElementById("p-search").getElementsByTagName('input');
PageMenu = new PortletMenu( 'p-cactions' );
var i;
NavMenu = new PortletMenu( 'p-navigation' );
for (i = 0; i < inputs.length; ++i)
//ToolMenu = new PortletMenu( 'p-tb' );
if (inputs[i].type == "text")
top.___location.href = 'http://it.wikipedia.org/wiki/Speciale:Allpages/' + inputs[i].value;
}
 
// This is inefficient and not particularly robust.
function setup_allpages_button(){
// This comes first, I want this link to come up as
var button = document.createElement('input');
// fast as possible.
button.type = "button";
//
button.value = "Allpages";
function GetByClass( sElem, sClass )
button.setAttribute('onClick', 'allpages_button_click()');
{ var i, a2 = [], a = document.getElementsByTagName( sElem );
for ( i = 0; i < a.length; i++ )
if ( a[ i ].className == sClass )
a2.push( a[ i ] );
return a2;
}
var a, td = GetByClass( 'td', 'diff-otitle' );
if ( ( td = td[ 0 ] ) && ( a = td.getElementsByTagName( 'a' )[ 0 ] ) )
a.href = a.href + '&action=edit'; // need to change text, later
 
var userName = UserMenu.getText( 'pt-userpage' );
addToPortlet("p-search", document.createElement("hr"));
addToPortlet("p-search", button);
 
// personal (top-most) menu
}
//
addOnloadHook(setup_allpages_button);
// Func Talk Prefs Watch List Edits Kate Logs #IRC Out
//
UserMenu.setText( 'pt-mytalk' , 'le mie discussioni' );
UserMenu.setText( 'pt-preferences', 'preferenze' );
UserMenu.setText( 'pt-watchlist' , 'osservati speciali' );
UserMenu.setText( 'pt-mycontris' , 'miei contributi' );
UserMenu.setText( 'pt-logout' , 'esci' );
//
UserMenu.setHref( 'pt-mycontris',
'http://it.wikipedia.org/w/index.php?title=Speciale:Contributions&target=' +
userName + '&offset=0&limit=500' );
//
//
// it seems there is a stylesheet that makes them lowercase
//
// ok, the lowercased menu items are starting to really bug me:
//
document.getElementById( 'p-personal' ).getElementsByTagName( 'ul' )[0].style.textTransform = 'none';
//
UserMenu.insertBefore( 'pt-mycontris', 'pt-list', 'Argo', 'http://argo.altrove.de' );
UserMenu.insertBefore( 'pt-logout' , 'pt-logs', 'log',
'/w/index.php?title=Special%3ALog&user=' + userName );
UserMenu.insertBefore( 'pt-logout' , 'pt-irc' , '#irc', 'irc://irc.freenode.net/wikipedia-it' );
UserMenu.insertBefore( 'pt-logs' , 'pt-kate', 'n° edit',
'javascript:void InlineKate( "' + userName + '" )' );
 
// so I always know what time it is in UTC land:
// WikiSign
//
function WikiSign() {
UserMenu.append( 'pt-utc', UTCTime(), 'javascript:void UserMenu.setText("pt-utc",UTCTime())' );
arra = document.getElementsByTagName("a");
for ( i=0; i < arra.length;i++ ) {
if ( arra[i].getAttribute("href") == "javascript:insertTags('--~~~~','','');" ) {
arra[i].setAttribute("href", "javascript:insertTags('~~~~','','');");
break;
}
}
}
addLoadEvent(WikiSign);
 
// article-actions menu, (the "tabs")
//ToolbarButton
//
function addToolbarButton(id, href, src, alt, title)
if ( PageMenu[ 'ca-history' ] ) // theory: if it has a history tab, then it's purgable
{
{
var toolbar = document.getElementById("toolbar");
PageMenu.insertBefore( 'ca-history', 'ca-lastdiff', 'Ultimo edit',
var today = new Date();
PageMenu.getHref( 'ca-history' ).replace( /action=history/, 'diff=0' ) );
var anno= today.getYear()+1900;
var mese = arrayMese[today.getMonth()];
 
PageMenu.append( 'ca-purge', 'Purga',
var tmp = document.createElement("a");
PageMenu.getHref( 'ca-history' ).replace( /action=history/, 'action=purge' ) );
tmp.id = id;
}
tmp.href = href;
var imag = document.createElement("img");
imag.setAttribute('src', src);
imag.setAttribute('alt', alt);
imag.setAttribute('title', title);
tmp.appendChild(imag);
toolbar.appendChild(tmp);
}
 
var x = 1;
function addText(text, summary, n)
NavMenu.append( 'n-' + x++, 'Amministratori', '/wiki/Wikipedia:Amministratori' );
{
NavMenu.append( 'n-' + x++, 'Log', '/wiki/Speciale:Log' );
wpTextbox1=document.getElementById("wpTextbox1");
NavMenu.append( 'n-' + x++, 'Pagine da cancellare', '/wiki/Wikipedia:Pagine_da_cancellare' );
if (n == 0)
NavMenu.append( 'n-' + x++, 'SunBot', '/w/index.php?title=Speciale:Contributions&target=SunBot&offset=0&limit=500' );
wpTextbox1.value=text + "\n" +wpTextbox1.value;
NavMenu.append( 'n-' + x++, 'Sandbox', '/wiki/Utente:Helios89/Sandbox' );
else
NavMenu.append( 'n-' + x++, 'Utenti problematici', '/wiki/Wikipedia:Utenti problematici' );
wpTextbox1.value=wpTextbox1.value + text;
summ=document.getElementById("wpSummary");
summ.value=summ.value+summary;
document.getElementById("wpMinoredit").checked=1
}
 
function ToolbarButton() {
var toolbar = null;
toolbar = document.getElementById("toolbar");
if (toolbar == null)
return;
var today = new Date();
var anno= today.getYear()+1900;
var mese = arrayMese[today.getMonth()];
 
}
// pulsante STUB
addToolbarButton('tb-stb', 'javascript:addText("{{stub fumetti}}", "+{{stub fumetti}}", 0)',
'http://upload.wikimedia.org/wikipedia/it/1/11/Stubber.png', '[Stub fumetti]', '{{stub fumetti}}');
// pulsante FICUS-AIUTARE
addToolbarButton('tb-fic', "javascript:Ficus('A');", 'http://upload.wikimedia.org/wikipedia/it/c/c4/Pulsante-aiutare.gif',
'[ficus]', '{{A}}iutare');
 
function PortletMenu( id ) // constructor
// pulsante FICUS-CONTROLLARE
{
addToolbarButton('tb-fic', "javascript:Ficus('C');", 'http://upload.wikimedia.org/wikipedia/it/e/e2/Pulsante-controllare.gif',
this.menu = document.getElementById( id );
'[ficus]', '{{C}}ontrollare');
this.list = this.menu.getElementsByTagName( 'ul' )[ 0 ]; // bypass "<h5>Views</h5>", etc.
 
// sigh...as far as I can figure, there is empty whitespace being treated
// pulsante FICUS-POV
// as TextNodes....
addToolbarButton('tb-fic', "javascript:Ficus('P');", 'http://upload.wikimedia.org/wikipedia/it/a/ab/Pulsante-pov.gif',
//
'[ficus]', '{{P}}OV');
var LIs = this.list.getElementsByTagName( 'li' );
 
for ( var i = 0; i < LIs.length; i++ )
// pulsante FICUS-WIKIFICARE
{
addToolbarButton('tb-fic', "javascript:Ficus('W');", 'http://upload.wikimedia.org/wikipedia/it/2/24/Pulsante-wikificare.gif',
this[ LIs[ i ].id ] = LIs[ i ];
'[ficus]', '{{W}}ikificare');
}
// pulsante VOTO FAVOREVOLE +1
addToolbarButton('tb-piu', 'javascript:addText("*{{+1}} ~~~~","+1", 1)',
'http://upload.wikimedia.org/wikipedia/it/f/f8/Favorevole.png', '[+1]', 'voto +1');
 
this.newItem = function( id, txt, url )
// pulsante VOTO ASTENUTO =0
{ var li = document.createElement( 'li' ); li.id = id;
addToolbarButton('tb-uguale', 'javascript:addText("*{{0}} ~~~~","=0", 1)',
var a = document.createElement( 'a' ); a.href = url;
'http://upload.wikimedia.org/wikipedia/it/a/aa/Astenuto.png', '[=1]', 'voto =0');
 
a.appendChild( document.createTextNode( txt ) );
// pulsante VOTO CONTRARIO -1
li.appendChild( a );
addToolbarButton('tb-meno', 'javascript:addText("*{{-1}} ~~~~","-1", 1)',
'http://upload.wikimedia.org/wikipedia/it/4/43/Contrario.png', '[-1]', 'voto -1');
 
this[ id ] = li; // watch this!!!
// pulsante CONTROLCOPY
addToolbarButton('tb-vnd', 'javascript:addText("{{Controlcopy|firma=~~~|motivo=probabile copia di materiale già pubblicato altrove e dunque non originale}}", "+Controlcopy", 0)',
'http://upload.wikimedia.org/wikipedia/it/7/75/Wiki_c_copy.gif', '[Vnd]', '{{Controlcopy|firma=~~~|motivo=probabile copia di materiale già pubblicato altrove e dunque non originale}}');
 
return li;
// pulsante CANCELCOPY
}
addToolbarButton('tb-vnd', 'javascript:addText("{{cancelcopy|firma=~~~|fonte=}}", "Da cancellare subito", 0)',
'http://upload.wikimedia.org/wikipedia/it/1/15/Pulsante-canccopy.png', '[Vnd]', '{{cancelcopy|firma=~~~|fonte=}}');
 
this.append = function( id, txt, url )
// pulsante CATEGORIZZARE
{ this.list.appendChild( this.newItem( id, txt, url ) );
addToolbarButton('tb-stb', 'javascript:addText("{{Categorizzare}}", "+{{Categorizzare}}", 1)',
}
'http://upload.wikimedia.org/wikipedia/it/5/55/Pulsante-categorizzare.gif', '[Cat]', '{{Categorizzare}}');
this.insertBefore = function( old, id, txt, url )
{ this.list.insertBefore( this.newItem( id, txt, url ), this[ old ] );
}
 
// the ByTagName here is a bit annoying, but in Safari, I was picking
// pulsante TEST
// up TextNodes by using this[ id ].firstChild.firstChild
addToolbarButton('tb-vnd', 'javascript:addText("{{subst:test}}~~~~", "Avviso test", 0)',
//
'http://upload.wikimedia.org/wikipedia/it/4/40/Wiki_test.GIF', '[Test]', '{{test}}');
this.getText = function( id ) { return this[ id ].getElementsByTagName( 'a' )[ 0 ].firstChild.data }
this.setText = function( id, txt ) { this[ id ].getElementsByTagName( 'a' )[ 0 ].firstChild.data = txt }
 
this.getHref = function( id ) { return this[ id ].getElementsByTagName( 'a' )[ 0 ].href }
// pulsante BENVENUTO
this.setHref = function( id, url ) { this[ id ].getElementsByTagName( 'a' )[ 0 ].href = url }
addToolbarButton('tb-vnd', 'javascript:addText("{{subst:benvenuto}}~~~~", "Benvenuta/o su it.wiki!", 0)',
'http://upload.wikimedia.org/wikipedia/it/7/74/Pulsante_benvenuto.png', '[Benve]', '{{subst:benvenuto|{{subst:PAGENAME}}}}~~~~');
// I add em as I need em....
}
 
function InlineKate( user )
// pulsante CANCELLAZIONE
{
addToolbarButton('tb-vnd', 'javascript:addText("{{Da cancellare}}", "+ da cancellare", 0)',
var kate =
'http://upload.wikimedia.org/wikipedia/it/f/f8/Wiki_del.gif', '[Canc]', '{{Da cancellare}}');
'http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=itwiki_p&user=' + user;
 
var div = document.createElement( 'div' );
// pulsante CANCELLA UTENTE
div.id = 'inlineKateDiv';
addToolbarButton('tb-vnd', 'javascript:addText("{{subst:Avvisocancellautente|wikilink=[[Titolo_pagina]]}}~~~~", "Avviso cancellazione", 1)',
div.style.position = 'absolute';
'http://upload.wikimedia.org/wikipedia/it/0/00/Pulsante-cancut.png', '[Canc]', '{{Avvisocancellautente|wikilink=[[Titolo_pagina]]}}');
div.style.zIndex = 1000;
div.style.left = '5px';
div.style.top = '5px';
div.style.backgroundColor = '#FFFFFF';
div.style.borderStyle = 'solid';
div.style.borderWidth = ' medium';
div.style.borderColor = '#000000';
 
var top = document.createElement( 'div' );
// pulsante CANCELLAZIONE IMMEDIATA
top.id = 'inlineKateTop';
addToolbarButton('tb-vnd', 'javascript:addText("{{Cancella subito}}", "Da cancellare subito", 0)',
top.style.textAlign = 'right';
'http://upload.wikimedia.org/wikipedia/it/8/8f/Pulsante-cancimm.png', '[Canc]', '{{Cancella subito}}');
top.style.margin = '8px';
top.style.backgroundColor = '#DDDDDD';
 
var a = document.createElement( 'a' );
// pulsante COPYVIOL
a.appendChild( document.createTextNode( "Go to Kate's" ) );
addToolbarButton('tb-vnd', 'javascript:addText("{{ViolazioneCopyright|url=indirizzo_web_del_sito}}", "Violazione di Copyright", 0)',
a.href = kate;
'http://upload.wikimedia.org/wikipedia/it/5/52/Pulsante_copyviol.png', '[Avv]', '{{ViolazioneCopyright|url=indirizzo_web_del_sito}}');
a.target = '_parent';
a.style.margin = '8px';
 
top.appendChild( a );
// pulsante AVVISO COPYVIOL
addToolbarButton('tb-vnd', 'javascript:addText("{{Avvisocopyviol|articolo=Nome della voce|url=Fonte da cui proviene il testo}} ~~~~", "+Avviso copyviol", 1)',
'http://upload.wikimedia.org/wikipedia/it/e/ef/Pulsante_avvcopy.png', '[Avv]', '{{Avvisocopyviol|articolo=Nome della voce|url=Fonte da cui proviene il testo}} ~~~~');
 
a = document.createElement( 'a' );
// pulsante AVVISO VANDALISMO
a.appendChild( document.createTextNode( 'Close' ) );
addToolbarButton('tb-vnd', 'javascript:addText("{{Vandalismo}}~~~~", "Avviso vandalismo", 1)',
a.href = "javascript:void RemoveNode('inlineKateDiv')";
'http://upload.wikimedia.org/wikipedia/it/6/64/Wiki_vand.gif', '[Avv]', '{{Vandalismo}}');
a.style.margin = '8px';
 
top.appendChild( a );
// pulsante AVVISO SPAM
addToolbarButton('tb-vnd', 'javascript:addText("{{Spam}}~~~~", "Avviso spam", 1)',
'http://upload.wikimedia.org/wikipedia/it/c/cb/Pulsante_spam.png', '[Avv]', '{{Spam}}');
 
div.appendChild( top );
// pulsante AVVISO DAUNIRE
addToolbarButton('tb-vnd', 'javascript:addText("{{Da unire|pagina da unire}}", "Da unire", 0)',
'http://upload.wikimedia.org/wikipedia/it/e/eb/Pulsante_unire.png', '[Avv]', '{{Da unire|pagina da unire}}');
 
var iframe = document.createElement( 'iframe' );
// pulsante TYPO
iframe.id = 'inlineKateBot';
addToolbarButton('tb-vnd', 'javascript:addText(" ", "Typo", 1)',
iframe.style.width = '400px';
'http://upload.wikimedia.org/wikipedia/it/9/92/Pulsante_typo.png', '[Avv]', ' ');
iframe.style.height = '600px';
iframe.style.margin = '8px';
iframe.style.borderStyle = 'solid';
iframe.style.borderWidth = 'thin';
iframe.style.borderColor = '#000000';
iframe.src = kate;
 
div.appendChild( iframe );
// pulsante AVVISO IMMAGINE
addToolbarButton('tb-stb', 'javascript:addText("{{subst:Avvisoimmagine|immagine=[[:Immagine:]]}}~~~~", "Copyright immagini", 0)',
'http://upload.wikimedia.org/wikipedia/it/a/a5/Pulsante_avviso_licenza_immagine.png', '[AI]', '{{Avvisoimmagine}}');
 
document.body.appendChild( div );
// pulsante UNVERIFIED
}
addToolbarButton('tb-stb', 'javascript:addText("{{Unverified}}", "Unverified", 0)',
'http://upload.wikimedia.org/wikipedia/it/e/e8/Pulsante_unverified.png', '[Uv]', '{{Unverified}}');
 
function RemoveNode( id )
{ var node = document.getElementById( id )
node.parentNode.removeChild( node );
}
 
function UTCTime()
{
// Get a date stamp for the time in UTC-land.
//
// for the future: a format arg
//
var s = '',
d = new Date(),
a = 'Gen Feb Mar Apr Mag Giu Lug Ago Set Ott Nov Dic'.split(' ');
return d.getUTCDate() + ' ' +
a[ d.getUTCMonth() ] + ' ' +
d.getUTCFullYear() + ' ' +
( '0' + d.getHours() ).substr( -2 ) + ':' +
( '0' + d.getMinutes() ).substr( -2 ) + ' ' + 'UTC';
}
 
SoFixItInit();
window.addEventListener( 'load', SoFixItLoad, false );
}
// Trigger generale: addLoadEvent();
 
 
//Add an "invert" button in Undeletion page (source: http://en.wikipedia.org/wiki/User:Cryptic/toggleundelete.js)
 
function toggle_undelete()
{
var f = document.getElementById("undelete");
if (f)
{
var inputs = f.getElementsByTagName("input");
var i;
for (i = 0; i < inputs.length; ++i)
if (inputs[i].type == "checkbox")
inputs[i].checked = !inputs[i].checked;
}
}
 
function setup_toggle_undelete()
{
if (document.title.indexOf("Vedi e recupera pagine cancellate") == 0)
{
var f = document.getElementById("undelete");
if (f)
{
var h2 = f.getElementsByTagName("h2")[0];
if (h2)
{
var button = document.createElement('input');
button.type = "button";
button.value = "Inverti";
button.setAttribute('onClick', 'toggle_undelete()');
f.insertBefore(button, h2);
}
}
}
}
 
addOnloadHook(setup_toggle_undelete);
 
 
// <nowiki>
var wikisign_pre = '~~~ ~~~~~';
var wikisign_post = ' ';
var dell = "med hr sign red";
var agg = "sign typo wik stu aiu pov ctrl ben voto red vand copy test avcpy spam licim ref";
document.writeln('<script type="text/javascript" src="/w/index.php?title=Utente:Timendum/Toolbar.js&amp;action=raw&amp;ctype=text/javascript&amp;dontcountme=s"></script>');;
// </nowiki>
 
// <nowiki>
// [[User:Lupin/popups.js]]
 
//document.write('<script type="text/javascript" src="'
// + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
// + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
// </nowiki>
addLoadEvent(ToolbarButton);
 
//<nowiki>
//Please leave the following line
//[[user:Where/usertabs]]
addOnloadHook(function() {
if (document.title.search("/") != -1 || document.title.search("- History -") != -1) { //no subpages or history
return;
}
if (document.title.indexOf("User:") == 0 || document.title.indexOf("User talk:") == 0) {
username_a = document.___URL.match(/:.*:(.*)/);
username=username_a[1];
addTab("http://it.wikipedia.org/wiki/Speciale:Contributions/" + username, "contrib", "ca-contrib", "contribs", "");
addTab("http://it.wikipedia.org/w/index.php?title=Speciale%3ALog&type=move&user=" + username, "page moves", "ca-pagemoves", "page moves", "");
addTab("http://it.wikipedia.org/w/index.php?title=Speciale%3ALog&type=block&user=" + username, "block log", "ca-blog", "blog", "");
addTab("http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=itwiki_p&user=" + username, "edit count", "ca-kate", "kate", "");
}
});
 
/**** FINE MONOBOOK ****/
 
/* /</nowiki></pre> */