Differenze tra le versioni di "Utente:Barbaforcuta/vector.js"

nessun oggetto della modifica
( Creata nuova pagina: →‎pagina vuota)
 
mw.loader.using( ['ext.wikiEditor'], function(){
/* pagina vuota*/
$("body").attr("style","overflow:auto;");
$("#mw-panel").css("overflow","auto");
$(document).ready( bloccaTools );
$("input#wpSave").val("Salva").addClass("bl2").attr("style","margin-top:3px; padding-top:4px; padding-bottom:.38em; margin-left:3px; font-weight:bold; box-shadow:0 1px 3px rgba(0,0,0,.2); -webkit-box-shadow:0 1px 3px rgba(0,0,0,.2);");
$("input#wpDiff,input#wpPreview").addClass("button2").attr("style","margin-top:3px; padding:5px 7px 4px 7px !important; box-shadow:0 1px 3px rgba(0,0,0,.2); -webkit-box-shadow:0 1px 3px rgba(0,0,0,.2);");
$("input#wpDiff").val("Modifiche");
$("input#wpPreview").val("Anteprima");
$("#wpPreviewWidget").click(function(){
$("body").css("overflow","auto");
});
$("#mw-editpage-minoredit > div > span.oo-ui-fieldLayout-header,#mw-editpage-watch > div > span.oo-ui-fieldLayout-header").attr("style","font-size:smaller; font-weight:bold;");
$("a#mw-editform-cancel").attr("style","font-size:x-small; font-weight:bold;");
$("div.editCheckboxes.min span label,div.editCheckboxes.min span a").remove();
$(window).one('mousemove',function() {
$("button.oo-ui-inputWidget-input").removeClass("button2");
if (mw.config.get("wgAction")=="edit") {
$("body").attr("style","overflow:hidden;");
}
function dpFont() {
if ($("#wpprpindex-Volumi,#wpprpindex-Pagine,#wpprpindex-Sommario,textarea.prp-input-string,#wpFooterTextbox.mw-ui-input,#wpHeaderTextbox.mw-ui-input,#wpTextbox1.mw-ui-input").css("font-family") == "DPCustomMono2") $("#wpprpindex-Volumi,#wpprpindex-Pagine,#wpprpindex-Sommario,textarea.prp-input-string,#wpFooterTextbox.mw-ui-input,#wpHeaderTextbox.mw-ui-input,#wpTextbox1.mw-ui-input,div.ace_content").css("font-family","Courier");
else {
$("#wpprpindex-Volumi,#wpprpindex-Pagine,#wpprpindex-Sommario,textarea.prp-input-string,#wpFooterTextbox.mw-ui-input,#wpHeaderTextbox.mw-ui-input,#wpTextbox1.mw-ui-input").css("font-family","DPCustomMono2");
}
}
newButton("DPfont","dpFont()","es","Cambia il font del testo");
 
if (mw.config.get("wgCanonicalNamespace")=="Index" && (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit") ) {
newButton("AutoSommario", "autoSommario()","es","Compila in automatico il sommario");
$( document ).ready( function () {
$("*").mousemove(function(){
$("#mw-content-text").css("margin-top","30px");
$("#specialchars").css("display","block");
$("div.editButtons").css("margin-top","10px");
$("div.editOptions").css("display","contents");
$('[title="Cambia il font del testo"]').hide();
$("#editform > div.editOptions > div.editButtons.height > div.editCheckboxes.min > div > div.oo-ui-widget.oo-ui-widget-enabled > label").hide();
$("body").attr("style","overflow:auto !important;");
});
$("#content").attr("style","margin-top:0px;");
$("#p-personal").toggleClass("index");
$("#newtattoo").css("right","25px");
$("a#Control").click(function(){
$("#newtattoo").toggleClass("sposta");
$("#mw-panel").addClass("sposta2");
$("#p-logo").addClass("sposta3");
});
});
 
}
 
if (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit") {
$("#newtattoo").insertBefore("a#Control").css("right","27px").css("bottom","auto").show();
$('[onclick="deIndentSelection()"],[title="Applica il temmplate Centrato"],[title="Applica il template AutoreCitato scegliendo in una lista"],[title="Applica il template TestoCitato"],[title="Applica il template SmallCaps (maiuscoletto)"],[title="Applica il template Rule (traccia una riga orixzzontale centrata)"],[title="Applica Maiuscole alle iniziali delle parole nella selezione"],[title="Applica maiuscolo/minuscolo alla selezione, alternandole"],[title="Indenta le righe della selezione (utile per i versi nelle poesie)"],[title="Elimina le righe vuote (talora presenti ed erronee nelle scansioni di testi poetici)"],[title="Gestisce le annotazioni (vedi istruzioni in Utente:Alex brollo/Aiuto tool note)"],[title="Inserisce un template RigaIntestazione ricavandolo da quello eventualmente presente due pagine prima"],[title="Applica il template Pt alla selezione in modo intelligente (legge il codice della pagina precedente)"],[title="Inserisce due tag section begin e section end attorno alla selezione"],[title="Elimina caratteri casuali da un testo OCR; NON USARE su pagine già formattate"],[title="Trasforma in tabella wiki il codice copiaincollato da Excel (separatori di cella: tabulazioni; separatori di righe; a capo)"]').hide();
$("div.tool.tool-select ul div.options").css("z-index","1 !important");
$("div.plainlinks").attr("style","margin-top:0px !important; width:inherit; background-color:#E0EEf7; border:0px solid #aaa;").hide();
$("span.tab.tab-help").insertAfter("span.tab.tab-Edittools");
$("div.plainlinks,#specialchars").insertAfter("div.editButtons.height");
$("div.group-format:nth-child(2) > img:nth-child(8)").insertAfter("a.tool:nth-child(6)");
$("#wikiEditor-ui-toolbar > div.tabs").append($('<li id="t-car" style="z-index:1002; right:130px; display:inline-block; list-style:none; margin-bottom:3px;"><a title="Nascondi caratteri speciali"><img width="22" src="https://upload.wikimedia.org/wikipedia/commons/1/10/Circle_arrow_up_font_awesome.svg" /></a></li>'));
$("#wikiEditor-ui-toolbar > div.tabs").append($('<li id="t-cars" style="z-index:1002; right:130px; display:inline-block;"><a title="Mostra caratteri speciali"><img width="22" src="https://upload.wikimedia.org/wikipedia/commons/9/9c/Circle_arrow_down_font_awesome.svg"/></a></li>'));
$("#t-car").hide();
$("#t-car,#t-cars").click(function(){
$("#t-car,#t-cars").toggle();
$("div.plainlinks,#specialchars").toggleClass("sup").insertAfter("#wikiEditor-ui-toolbar > div.editButtons.height");
});
$("#wpSummaryWidget").attr("style","bottom:5px;").css("margin-bottom","0px");
$("#wpDiffWidget,#wpPreviewWidget,#wpSaveWidget,#wikiEditor-ui-toolbar > div.editButtons.height > div.oo-ui-fieldLayout-field").attr("style","margin-top:-15px;");
document.getElementById("mw-editpage-minoredit").title = "Modifica minore";
document.getElementById("mw-editpage-watch").title = "Osservati speciali";
if ($(".wikiEditor-ui-left").css("width")==$("#wpTextbox1").css("width")){
var heu=$("div.prp-page-image").height();
$('[rel="zoom-in"],[rel="zoom-out"],[rel="reset-zoom"]').css("top",""+-heu+"px").css("left","-1px");
}
}
});
$("body").mousemove(function() {
$("#wikiPreview > div.mw-content-ltr > div").css("padding-top","15px");
$("#mw-templatesandbox-editform-need-title").insertAfter("#wikiEditor-ui-toolbar > div.editButtons.height");
$('[rel="zoom-in"],[rel="zoom-out"],[rel="reset-zoom"]').appendTo("div.prp-page-image").css("position","fixed").css("z-index","99");
$('[rel="zoom-out"]').css("margin-left","30px");
$('[rel="reset-zoom"]').css("margin-left","60px");
$("#newtattoo > button").addClass("bluen");
$("#mw-content-text > div > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr:nth-child(5) > td > div > div.mw-inputbox-centered > form > input.mw-ui-button.mw-ui-progressive.createboxButton.button2.webfonts-changed").css("color","black");
$("#wpSummaryLabel").hide();
$("#wikiEditor-ui-toolbar > div.editButtons.height > div.editCheckboxes.min > div").attr("style","margin-right:7px;");
if (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit") {
$("#ca-eis,#t-cropNew").appendTo("#newtattoo").attr("style","display:inline-block; margin-left:5px; border-style:double; font-size:small;");
}
$("#wikiEditor-ui-toolbar > div.editButtons.height > div.oo-ui-fieldLayout-field > div.mw-summary-preview.mw-preview-copyelements,#wikiEditor-ui-toolbar > div.mw-newarticletext.plainlinks.sup,#wikiEditor-ui-toolbar > div.ve-init-mw-editSwitch.oo-ui-toolbar.oo-ui-toolbar-position-top").remove();
$("#bodyContent > div.editButtons.height > div.editCheckboxes.min > div > div.oo-ui-widget.oo-ui-widget-enabled > label").hide();
$("#wikiEditor-section-Strumenti > div.group.group-relex > a:nth-child(3),#wikiEditor-section-Strumenti > div.group.group-relex > a:nth-child(2)").css("width","45px");
$("#wikiEditor-section-Strumenti > div.group.group-relex > span,#wikiEditor-section-advanced > div.group.group-format > span.label,#wikiEditor-section-advanced > div.group.group-heading > div > a,#wikiEditor-section-advanced > div.group.group-Tools > span,#wikiEditor-section-advanced > div.group.group-insert > span.label").attr("style","width:auto;");
$('[rel="Fatto"]').css("background-size","22px");
$('[rel="Notifica"]').css("background-size","22px");
$('[rel="Costruisce il codice prettytable dalla selezione di un copiaincolla di una tabella excel "]').css("background-size","22px");
$('[rel="wsOcr1"]').css("background-size","40px 22px");
$("span.tab.tab-proofreadpage-tools,div.editOptions").hide();
$("#wpSummaryLabel > div > div").insertAfter("div.editCheckboxes.min");
$("div.oo-ui-fieldLayout-field").attr("style","display:inline-block;");
$("div.mw-userconfigpublic,div.mw-userconfigdangerous").hide();
$("div.group.group-other").insertAfter("#wikiEditor-ui-toolbar > div.editButtons.height > div.oo-ui-fieldLayout-field");
$("div.group.group-other").attr("style","display:inline-block !important; z-index:1001; float:none;");
$('[rel="toggle-visibility"],[rel="toggle-layout"]').css("bottom","5px");
$("div.group.group-other span.label,div.group.group-zoom span.label").remove();
});
if (mw.config.get("wgCanonicalNamespace")=="Template" | mw.config.get("wgNamespaceNumber")=="828" && (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit") ) {
$("fieldset#templatesandbox-editform,fieldset.mw-scribunto-console-fieldset").appendTo("#wikiEditor-ui-toolbar").css("margin-top","0").css("margin-bottom","0").css("background","ghostwhite").css("display","none");
$("#wikiEditor-ui-toolbar").append($('<li id="t-rem" style="position:absolute; right:5px; display:none; list-style:none; margin-top:3px;"><a title="Nascondi templatesandbox"><img src="https://upload.wikimedia.org/wikipedia/commons/9/95/UpGold.gif" /></a></li>'));
$("#wikiEditor-ui-toolbar").append($('<li id="t-rem1" style="position:absolute; right:5px; display:block;"><a title="Mostra templatesandbox"><img src="https://upload.wikimedia.org/wikipedia/commons/b/b5/DownGold.png"/></a></li>'));
$("fieldset.mw-scribunto-console-fieldset div input,input#wpTemplateSandboxPreview").addClass("button2").css("padding","5px 7px 4px 7px").css("font-size","95%");
$("input#wpTemplateSandboxPreview").val("Prova");
$("*").mousemove (function (){
$("#mw-content-text > div.tdg-editscreen-main > span").insertAfter("#wikiEditor-ui-toolbar > div.tabs").attr("style","vertical-align:text-bottom");
$("button.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only.tdg-editscreen-main-button").insertAfter($("input#wpTemplateSandboxPreview"));
$("#mw-content-text > div.mw-editintro,a.tdg-editscreen-main-helplink,#mw-content-text > div.tdg-editscreen-main").remove();
});
$("#t-rem,#t-rem1").click(function(){
$("#t-rem,#t-rem1,fieldset#templatesandbox-editform,fieldset.mw-scribunto-console-fieldset").toggle();
});
}
if (mw.config.get("wgCanonicalNamespace")=="Page" && (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit") ) {
$('[title="Allinea memoRegex alla pagina Discussioni indice"]').hide();
$(".mw-editButtons-pipe-separator").remove();
$('[for="wpQuality-container"]').remove();
$("div.prp-page-image").hover(function(){
$("div.prp-page-image img").css("cursor","move");
$("div.prp-page-image").css("cursor","default");
});
} else {
$('[title="Scarica sulla pagina Discussioni indice le sostituzioni attive"],[title="Esegue le sostituzioni memorizzate"]').hide();
}
});
function bloccaTools() {
// blocco della toolbar a piè di pagina
$("#ca-eis").click(function(){
$("#editBoxEis").insertAfter("#wpDiffWidget").attr("style","position:inherit !important; display:inline-block;");
$("#wikiEditor-ui-toolbar > div.editButtons.height > div.oo-ui-fieldLayout-field").addClass("lev");
});
$(".editHelp").remove();
$("#wikiEditor-ui-toolbar").attr("style","position:fixed; background-repeat:repeat; top:0; right:0; width:100%; z-index:1000; font-family:serif;");
$("div.editButtons").appendTo($("#wikiEditor-ui-toolbar"));
$("p#mw-returnto").appendTo($("#wikiEditor-ui-toolbar"));
$("p#mw-returnto a").text("questa pagina");
$("p#mw-returnto").attr("style","margin-top:auto; margin-bottom:auto; z-index:1001; margin-left:5px; width:122px; background-color:antiquewhite; padding:4px 6px; border:1px solid indianred; border-radius:10px; color:firebrick; font-family:serif; font-size:95%;");
// Blocco del pannello sin
$("#content,#p-logo").mousemove(function() {
var x=$(window).height();
var z=$("#p-logo").height();
var l=x-z;
$("#p-logo").insertBefore("#mw-panel").css("position","fixed").css("margin-left","-8px").css("padding-right","15px").css("top","0px").css("left","0px");
$("#mw-panel").css("top",""+z+"px").css("height",""+l+"px").css("position","fixed").css("overflow-x","hidden");
var too=$("#wikiEditor-ui-toolbar").height();
var logo=$("#p-logo").height();
var l1=x-too-logo
var dol3=$("#wpTextbox1").height();
$("body,#mw-head,#mw-panel").css("margin-top",""+too+"px");
$("body").css("height",""+dol3+"px");
$("#mw-panel").css("position","fixed").css("height",""+l1+"px").css("overflow-x","hidden");
$("#p-logo").css("top",""+too+"px");
});
}
$(document).ready(bloccaTools);
 
/**
* Introduces a toggle icon than can be used to hide navigation menu in vector
* @author Niklas Laxström
* @license GPL2+
*/
(function ( mw, $ ) {
'use strict';
var delay = ( function () {
var timer = 0;
return function ( callback, milliseconds ) {
clearTimeout( timer );
timer = setTimeout( callback, milliseconds );
};
} () );
$( document ).ready( function () {
var $miniLogo, $toggle, rtl, delim,
$body = $( 'body' );
rtl = $body.hasClass( 'rtl' );
delim = rtl ?
$( '#mw-head-base' ).css( 'margin-right' ) :
$( '#mw-head-base' ).css( 'margin-left' );
$miniLogo = $( '#p-logo' )
.clone()
.removeAttr( 'id' )
.addClass( 'tux-navi-minilogo' );
$toggle = $( '<div>' )
.addClass( 'tux-navitoggle' )
.css( rtl ? 'right' : 'left' , delim )
.click( function () {
$body.toggleClass( 'tux-navi-collapsed' );
// Allow for animations etc to go
delay( function () {
$( window ).trigger( 'resize' );
$( window ).trigger( 'scroll' );
}, 250 );
} );
$( 'body' ).append( $miniLogo, $toggle );
} );
}( mediaWiki, jQuery ) );
 
$(document).ready(function(){
var dimensioneCarattere = 1;
$("#wpHeaderTextbox,#wpFooterTextbox,#wpTextbox1,textarea.prp-input-string").css("font-size", dimensioneCarattere+"30%");
$("*").mousemove(function(){
$("div.codeEditor-status").insertAfter("#wikiEditor-ui-toolbar > div.editButtons.height");
var f=$("div.ace_gutter.ace_fade-fold-widgets").width();
var a=$("div.wikiEditor-ui-text").width()-13;
var g=$("div.wikiEditor-ui-text").width()-2;
var e=a-(f+7);
var i=a+13;
$("textarea.noime").attr("style","top:0px !important; left:"+f+"px;").css("width",""+e+"px");
$("div.ui-resizable-handle.ui-resizable-s").attr("style","width:"+i+"px; bottom:0;");
$("div.editor.ace_editor.ace-tm").css("width",""+g+"px");
$("div.ace_scroller").css("width",""+e+"px").css("left",""+f+"px").css("right","17px !important");
$("div.wikiEditor-ui-text div.ui-resizable").css("width",""+i+"px");
$("div.ace_sb").css("width","17px").css("z-index","100");
});
 
$(function() {
mw.util.addPortletLink('p-personal', '/wiki/Utente:' + mw.config.get('wgUserName') + '/Sandbox', 'sandbox', 'pt-sandbox');
});
 
$("*").mousemove(function(){
$("#wikiEditor-ui-toolbar > div.editButtons.height > div.editCheckboxes.min > div > div.oo-ui-widget.oo-ui-widget-enabled > label").remove();
if (mw.config.get("wgAction")=="delete" || mw.config.get("wgAction")=="rollback"){
$("#newtattoo").remove();
}
$("div.group:nth-child(9)").attr("style","border-left:1px solid rgb(221,221,221); margin-left:7px; padding-left:5px;");
});
$("span.plainlinks > small:nth-child(1) > a:nth-child(2),#afinepagina > small:nth-child(1) > a:nth-child(3),span.plainlinks > small:nth-child(1) > a:nth-child(1)").click(function(){
$(document).scrollTop($(document).height());
});
$("div.tux-navitoggle").click(function(){
$("#showWikiCodeTattoo").toggleClass("all1");
$("body").mousemove(function(){
var ri=$("#content").width();
var ra=ri+48;
$("#mw-head").css("width",""+ra+"px");
$("#p-namespaces").css("left","0 !important");
$("#left-navigation").removeClass("tux-navi-collapsed #left-navigation").css("margin-left","0px");
});
});
$( window ).scroll( function() {
if ( $ ( window ).scrollTop() > 0 ) {
$("#mw-head").css("box-shadow","rgb(128, 128, 128) 0px 1px 15px 0px");
} else {
$("#mw-head").css("box-shadow","none");
}
});
$( window ).scroll( function() {
if ( $ ( window ).scrollLeft() > 0 ) {
$("#mw-panel").css("box-shadow","rgb(128, 128, 128) -15px -60px 15px 15px");
} else {
$("#mw-panel").css("box-shadow","none");
}
});
if (mw.config.get("wgAction")=="view" || mw.config.get("wgAction")=="history" || mw.config.get("wgAction")=="delete"){
$('[type="submit"]').addClass("button2").css("padding","5px 7px 4px 7px !important");
}
$("#wpTextbox1").css("resize","none");
$("div.suggestions").css("position","fixed").css("width","inherit");
$("pre").attr("style","overflow-x:auto;");
$("#p-personal").attr("style","font-size:90%;");
$("#mw-head").attr("style","position:fixed; z-index:100; background-color:white; background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAsCAIAAAArRUU2AAAAOklEQVR42lWNWwoAQAgCde9/59mgF30EOmgKeJLmUHjGpzbBdXnl6F5oV5/J9e/tr/czydmt7RT33floBCM5ZQLqdwAAAABJRU5ErkJggg==);background-position:bottom left;background-repeat:repeat-x;");
$("#mw-editpage-minoredit > div > span.oo-ui-fieldLayout-header").text("Mod. minore");
$("#mw-editpage-watch > div > span.oo-ui-fieldLayout-header").text("Osserva");
$("li#pt-watchlist a").text("osserva");
$("#mw-editform-cancel > a > span.oo-ui-labelElement-label").text("Esci");
$("#mw-editform-cancel").css("top","-8px");
$("span.cancelLink").attr("style","margin-left:3px;");
$("#simpleSearch").attr("style","width:175px;");
$("span#wpSummaryLabel.mw-summary label,div.mw-editTools,#catlinks.catlinks.catlinks-allhidden").remove();
$("#mw-panel").addClass("tux-navitoggle1").attr("style","z-index:101; padding-right:8px; padding-left:8px; background-color:#f6f6f6;");
$("#p-logo").attr("style","z-index:101; background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAsCAIAAAArRUU2AAAAOklEQVR42lWNWwoAQAgCde9/59mgF30EOmgKeJLmUHjGpzbBdXnl6F5oV5/J9e/tr/czydmt7RT33floBCM5ZQLqdwAAAABJRU5ErkJggg==); background-position:top left; background-repeat:repeat-x; padding-right:8px; padding-left:8px; left:0; background-color:#f6f6f6;");
$("#p-namespaces.vectorTabs").addClass("tux-navitoggle2").attr("style","padding-left:0px !important;");
$("#content").addClass("tux-navitoggle3").attr("style","border:0px !important;");
$("#left-navigation").addClass("tux-navitoggle4");
$("input#wpSummary.mw-summary,div.editCheckboxes").addClass("min");
$("div.editButtons").addClass("height");
$("div.editCheckboxes,input#wpSummary.mw-summary").insertAfter("span.cancelLink");
$("#mw-panel,#p-logo,h1#firstHeading,#footer,.mw-dismissable-notice,#mw-clearyourcache,#administrator.metadata,div.usermessage").hide();
$("#content").addClass(".tux-navi-collapsed #left-navigation");
$("div.tux-navitoggle").click(function(){
$("#newtattoo").toggleClass("pleft");
});
$("div.tux-navitoggle").click(function(){
$("#mw-panel,.mw-dismissable-notice,#p-logo,div.tux-navi-minilogo,h1#firstHeading,#footer,#mw-clearyourcache,#administrator.metadata,div.usermessage").toggle();
$("#catlinks").toggleClass("view");
$("#mw-panel").toggleClass("tux-navitoggle1");
$("#p-namespaces.vectorTabs").toggleClass("tux-navitoggle2");
$("#content").toggleClass("tux-navitoggle3");
$("#left-navigation").toggleClass("tux-navitoggle4");
});
if (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit"){
$("#editFormAutoreRight > div:nth-child(1) > a:nth-child(1)").attr("style","margin-right:10px;");
$("#content").addClass("large").css("padding-bottom","3px");
$("div.plainlinks").attr("style","border:0px solid #AAA !important; padding:0px !important;");
$("#wikiPreview,pre.mw-code.mw-js,pre.mw-code.mw-css").attr("style","margin-bottom:0;");
$("div.tux-navi-minilogo,div.tux-navitoggle").remove();
$("*").mousemove(function(){
$("pre").attr("style","overflow-x:auto;");
var too=$("#wikiEditor-ui-toolbar").height();
var dol3=$("#wpTextbox1").height();
$("body,#mw-head").css("margin-top",""+too+"px");
$("body").css("height",""+dol3+"px");
$("#popolaTestiAutoreLink,#aggiungiTestiLink,#aggiungiTraduzioniLink").insertAfter("#editFormAutoreRight > table");
});
$("#mw-content-text > ul,#editform > div.wikibase-entity-usage,#mw-content-text > div.warningbox,div.mw-translateinterface,div.mw-summary-preview,#mw-content-text > p:nth-child(2),#mw-content-text > p:nth-child(3),.mw-editinginterface > p:nth-child(1),#bodyContent > div:nth-child(2),#mw-content-text > p:nth-child(4),#mw-content-text > hr:nth-child(3),#mw-content-text > p:nth-child(1),#mw-panel,#p-logo,div.mw-undo-success,#catlinks.catlinks.catlinks-allhidden,h1#firstHeading,#mw-clearyourcache,#footer,div.templatesUsed,div.limitreport,#mw-userjsyoucanpreview,#mw-usercssyoucanpreview,div.hiddencats,mw-limitReportExplanation mw-editfooter-toggler mw-icon-arrow-collapsed,div.previewnote,#siteNotice,div.usermessage,#contentSub,#right-navigation,#left-navigation,#p-personal,#mw-page-base,div.mw-warning-with-logexcerpt,div.mw-newarticletext,div.permissions-errors").hide();
$("#wikiEditor-ui-toolbar > div.mw-newarticletext.plainlinks.sup").remove();
$("#content").append('<div id="Control" style="position:fixed; top:5px; right:5px; z-index:1000; cursor:pointer;" title="Mostra/nascondi struttura pagina"><a id="Control"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/3/33/High-contrast-view-restore.svg/20px-High-contrast-view-restore.svg.png"/></a></div>');
$("a#Control").click(function(){
$("#mw-content-text > ul,#mw-content-text > div.warningbox,div.mw-translateinterface,div.mw-summary-preview,#mw-content-text > p:nth-child(2),#mw-content-text > p:nth-child(3),.mw-editinginterface > p:nth-child(1),#mw-content-text > p:nth-child(4),#mw-content-text > hr:nth-child(3),#mw-content-text > p:nth-child(1),#catlinks.catlinks.catlinks-allhidden,div.mw-undo-success,h1#firstHeading,#mw-clearyourcache,#footer,div.templatesUsed,div.limitreport,#mw-userjsyoucanpreview,#mw-usercssyoucanpreview,div.hiddencats,mw-limitReportExplanation mw-editfooter-toggler mw-icon-arrow-collapsed,div.previewnote,#siteNotice,div.usermessage,#contentSub,#right-navigation,#left-navigation,#p-personal,#mw-page-base,div.mw-warning-with-logexcerpt,div.mw-newarticletext,div.permissions-errors").toggle();
$("#content").toggleClass("large").toggleClass("tux-navi-collapsed #content").toggleClass("tux-navitoggle3");
$("#mw-panel").toggle();
$("#p-logo").toggleClass("inlinelogo");
$("#mw-head").toggleClass("inlinehead");
$("#catlinks").toggleClass("view");
$("#p-logo").toggle();
$("body").toggleClass("flow1");
});
}
if (mw.config.get("wgAction")=="view" || mw.config.get("wgAction")=="history"){
$("#newtattoo").attr("style","position:fixed; overflow-y:auto; top:10px; left:120px; z-index:1000;");
}
 
if (mw.config.get("wgCanonicalNamespace")=="Page" && (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit") ) {
$("body").mousemove(function(){
$("#wikiEditor-ui-toolbar > div.ve-init-mw-editSwitch.oo-ui-toolbar.oo-ui-toolbar-position-top").hide();
var win=$(window).height();
var c=$("#wikiEditor-ui-toolbar").height();
var con=win-c-8
$("#divPreview").css("padding","0px").css("height",""+con+"px");
if ($(".wikiEditor-ui-left").css("width")==$("#wpTextbox1").css("width")){
var c1=$("div.prp-page-edit-header").height();
var c2=$("div.prp-page-edit-footer").height();
var scansione=$("div.prp-page-image").height();
var cont=$("div.prp-page-content").height();
var dil=(win-c-9)/2;
$("textarea#wpTextbox1,.prp-page-image").css("height",""+dil+"px");
$("#divPreview").css("padding","0px").css("height",""+cont+"px");
if ($("div.prp-page-edit-header").css("display")==$("#newtattoo").css("display")){
var dal1=(win-c-c1-c2-28)/2;
$("textarea#wpTextbox1").css("height",""+dal1+"px");
$(".prp-page-image").css("height",""+dal1+"px");
$("#divPreview").css("padding","0px").css("height",""+cont+"px");
}
} else {
var hei2=win-c-195;
var hei3=win-c-7;
$("div.prp-page-content").css("width","51%");
$("textarea#wpTextbox1,.prp-page-image").css("height",""+hei3+"px");
if ($("div.prp-page-edit-header").css("display")==$("#newtattoo").css("display")){
$("textarea#wpTextbox1").css("height",""+hei2+"px");
}
}
});
}
else {
$("body").mousemove(function(){
var b=$(window).height()-7;
var c=$("#wikiEditor-ui-toolbar").height();
var d=b-c;
$("textarea#wpTextbox1,#editFormAutoreRight").css("height",""+d+"px");
$("#editFormAutoreRight").css("overflow","auto");
});
}
if (mw.config.get("wgCanonicalNamespace") == "Page" && (mw.config.get("wgAction") == "view")) {
$("#bodyContent").append($('<li id="t-crop1" style="top:0px; position:absolute; margin-top:5px; right:0px; display:inline;"><a title="Ricarica l’immagine" href="javascript:ThPurge()"><img width="24" src="https://upload.wikimedia.org/wikipedia/commons/a/ab/Torchlight_reload.png"/></a></li>'));
}
$("*").mouseenter(function(){
$("#p-regex.portal.persistent").css("display","none");
$("div.editCheckboxes.min span label,div.editCheckboxes.min span a").remove();
});
});
 
/* [[Category:Wikipedia scripts]]
This script was given to me by ultradude25 of the Minecraft Wiki.
If adding this to your userspace, please provide attribution to the original author.
http://minecraftwiki.net/wiki/User:ultradude25/goToTop.js/ */
$( function() {
'use strict';
$( 'body' ).append( '<span id="to-top">▲</span>' );
var $topButton = $( '#to-top' );
$(document).ready(function(){
$("#to-top").mouseenter(function(){
$("#to-top").addClass("op");
});
$("#to-top").mouseleave(function(){
$("#to-top").removeClass("op");
});
});
$topButton.css( {
'color': '#0645ad',
'position': 'fixed',
'bottom': '-30px',
'right': '4px',
'opacity': '0.2',
'font-size': '30px',
'cursor': 'pointer',
'transition': 'bottom 0.5s',
'-webkit-transition': 'bottom 0.5s',
'user-select': 'none',
'-webkit-user-select': 'none',
'-moz-user-select': 'none',
'-ms-user-select': 'none'
} ).click( function() {
$( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
} );
$( window ).scroll( function() {
if ( $ ( window ).scrollTop() > 100 ) {
$topButton.css( 'bottom', '4px' );
} else {
$topButton.css( 'bottom', '-35px' );
}
} );
} );
 
$(document).ready(function(){
$("body").one('mousemove',function(){
mw.loader.using( ['ext.wikiEditor'], function(){
$(document).ready( bloccaTools );
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
if (mw.user.options.get("gadget-bottoniera")===null) {
} else {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'groups': {
'Tools': {
'label': 'Tools'
}
}
});
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Fatto': {
label: 'Aggiunge il template Fatto',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/b/be/Button_accept.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Fatto}}"
}
}
}
}
} );
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Rientro': {
label: 'Aggiunge il template Rientro',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/a/ab/U%2B2199.svg',
action: {
type: 'encapsulate',
options: {
pre: "{{Rientro}}"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'Tools',
'tools': {
'Costruisce il codice prettytable dalla selezione di un copiaincolla di una tabella excel ': {
label: 'Costruisce il codice prettytable dalla selezione di un copiaincolla di una tabella excel ',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/8/8e/Maket_icon.svg',
action: {
type: 'callback',
execute: function(context){
tableMaker();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'Tools',
'tools': {
'Dal copiaincolla di una tabella excel prepara la serie di Indice Sommario': {
label: 'Dal copiaincolla di una tabella excel prepara la serie di Indice Sommario',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/5/55/Table_multiple.png',
action: {
type: 'callback',
execute: function(context){
tabSomMaker();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'Tools',
'tools': {
'Trasforma una stringa in una riga tabella': {
label: 'Trasforma una stringa in una riga tabella',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/a/a0/Icons-mini-table.gif',
action: {
type: 'callback',
execute: function(context){
rmak();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'Tools',
'tools': {
'Crea le immagini a 200px di una serie di pagine': {
label: 'Crea le immagini a 200px di una serie di pagine',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/9/95/Page.png',
action: {
type: 'callback',
execute: function(context){
thumbs();
}}}}});
}
return false;
})}
});
});
});
$(document).ready(function(){
if (mw.user.options.get("gadget-bottoniera")===null) {
} else {
$("body").mousemove(function() {
if (mw.config.get("wgCanonicalNamespace")=="Page" && (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit") ) {
$('[title="Aggiunge i tag section attorno al testo selezionato"],[title="Indenta i versi selezionati [alt-shift-y]"],[title="De-indenta i versi selezionati [alt-shift-u]"]').appendTo("#wikiEditor-section-Strumenti > div.group.group-poetry");
} else {
$('[title="Aggiunge i tag section attorno al testo selezionato"],[title="Indenta i versi selezionati [alt-shift-y]"],[title="De-indenta i versi selezionati [alt-shift-u]"]').hide();
}
});
}
});
$(document).ready(function(){
if (mw.config.get("wgCanonicalNamespace")=="Page") {
$("body").one('mousemove',function(){
mw.loader.using( ['ext.wikiEditor'], function(){
$(document).ready( bloccaTools );
$("#specialchars.plainlinks").show();
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
if (mw.user.options.get("gadget-bottoniera")===null) {
} else {
$('#wpTextbox1').wikiEditor('addToToolbar', {
'sections': {
'Strumenti': {
'type': 'toolbar',
'label': 'Strumenti',
}
}
});
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'groups': {
'relex': {
'label': 'Rilettura'
}
}
});
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'groups': {
'poetry': {
'label': ''
}
}
});
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'groups': {
'note': {
'label': ''
}
}
});
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'groups': {
'dati': {
'label': ''
}
}
});
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'postOCR': {
label: 'postOCR',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/9/96/Button_ocr_fix.png',
action: {
type: 'callback',
execute: function(context){
cleanup();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'preOCR': {
label: 'preOCR',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/a/af/Button_Fractur_OCR.png',
action: {
type: 'callback',
execute: function(context){
preOCR();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'dati',
'tools': {
'Trova e Sostituisci': {
label: 'Trova&Sostituisci',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/1/12/Button_find.png',
action: {
type: 'callback',
execute: function(context){
mostraTrovaSostituisci();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'AC plus': {
label: 'Applica il template AutoreCitato scegliendo in una lista',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/7/7d/Button_question_author.png',
action: {
type: 'callback',
execute: function(context){
mw.itsg.selAut();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Autore citato a due parametri': {
label: 'Autore Citato a due parametri',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Button_AC_plus.png',
action: {
type: 'callback',
execute: function(context){
ac_plus();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Testo citato': {
label: 'Testo citato',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/4/45/Button_TC.png',
action: {
type: 'encapsulate',
options: {
pre: "{{TestoCitato|",
post: "}}"
}
}
}
}
} );
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Rimuove la prima riga': {
label: 'Rimuove la prima riga',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/3/31/Button_broom_R.png',
action: {
type: 'callback',
execute: function(context){
rimuoviPrimaRiga();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Elimina le righe vuote': {
label: 'Elimina le righe vuote',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/5/56/Center.png',
action: {
type: 'callback',
execute: function(context){
eraseWl();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Aggiusta paragrafi': {
label: 'Aggiusta paragrafi',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/0/04/Button_multicol.png',
action: {
type: 'callback',
execute: function(context){
aggiustaParagrafi();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Unisci linee': {
label: 'Unisci linee',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/0/05/Button_thisline.png',
action: {
type: 'callback',
execute: function(context){
joinLines();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Aggiunge in automatico RigaIntestazione': {
label: 'Aggiunge in automatico RigaIntestazione',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/7/79/Button_reg_trademark.png',
action: {
type: 'callback',
execute: function(context){
newRi();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'poetry',
'tools': {
'Aggiunge numerazione ogni 3 versi': {
label: 'Aggiunge numerazione ogni 3 versi',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/b/ba/Button_paragraphe_3.png',
action: {
type: 'callback',
execute: function(context){
numeroRiga(2, 3);
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'poetry',
'tools': {
'Aggiunge numerazione ogni 4 versi': {
label: 'Aggiunge numerazione ogni 4 versi',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/6/61/Button_paragraphe_4.png',
action: {
type: 'callback',
execute: function(context){
numeroRiga(2, 4);
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'poetry',
'tools': {
'Aggiunge numerazione ogni 5 versi': {
label: 'Aggiunge numerazione ogni 5 versi',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/7/79/Button_paragraphe_5.png',
action: {
type: 'callback',
execute: function(context){
numeroRiga(2, 5);
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'poetry',
'tools': {
'Aggiunge numerazione a fine strofa': {
label: 'Aggiunge numerazione a fine strofa',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/d/d0/%C4%80_button.png',
action: {
type: 'callback',
execute: function(context){
numeroRiga(1);
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'poetry',
'tools': {
'Rimuove numerazione dei versi': {
label: 'Rimuove numerazione dei versi',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/c/c7/Button_a_with_ring.png',
action: {
type: 'callback',
execute: function(context){
numeroRiga(0);
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Converte é in è': {
label: 'Converte é in è',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/e/ea/Button_%C3%89.PNG',
action: {
type: 'callback',
execute: function(context){
convertiAcuti();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Converte virgolette dattilografiche in tipografiche': {
label: 'Converte virgolette dattilografiche in tipografiche',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anf%C3%BChrung.png',
action: {
type: 'callback',
execute: function(context){
Virgolette();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Converte gli apostrofi': {
label: 'Converte gli apostrofi',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/3/32/Button_apostrophe.PNG',
action: {
type: 'callback',
execute: function(context){
newApostrofi();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'note',
'tools': {
'Sposta le note a fine testo': {
label: 'Sposta le note a fine testo',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/c/c4/Button_ref.png',
action: {
type: 'callback',
execute: function(context){
toggleNote();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'poetry',
'tools': {
'Rende maiuscola la lettera iniziale di versi e righe': {
label: 'Rende maiuscola la lettera iniziale di versi e righe',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/8/8f/Button_toUpperCase.png',
action: {
type: 'callback',
execute: function(context){
inizialeMaiuscola();
}
}
}
}
} );
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'poetry',
'tools': {'section': {
label: 'Lettera iniziale in maiuscolo',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Button_capitalize.svg/23px-Button_capitalize.svg.png',
action: {type: 'callback',
execute: function(context){capit();} }
}}});
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'poetry',
'tools': {'section': {
label: 'Inverti maiuscolo/minuscolo',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Button_Up_Low_toggle.svg/23px-Button_Up_Low_toggle.svg.png',
action: {type: 'callback',
execute: function(context){up_low();} }
}}});
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'note',
'tools': {
'Gestisce l’inserimento dei template nota e ref': {
label: 'Gestisce l’inserimento di <sup>nota</sup> e di <ref>...</ref>',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/8/8a/Ref-button-bg.png',
action: {
type: 'callback',
execute: function(context){
note();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'note',
'tools': {
'Verifica il corretto succedersi delle note': {
label: 'Verifica il corretto succedersi delle note',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/9/92/Cite_button.png',
action: {
type: 'callback',
execute: function(context){
verificaNote();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'note',
'tools': {
'Applica il template Pt alla prima e alla seconda parte di una parola spezzata in due pagine successive': {
label: 'Applica il template Pt alla prima e alla seconda parte di una parola spezzata in due pagine successive',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/a/ad/Button_pt.png',
action: {
type: 'callback',
execute: function(context){
autoPt();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Strumenti',
'group': 'relex',
'tools': {
'Rimuove alcuni tag dalla selezione': {
label: 'Rimuove alcuni tag dalla selezione',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/5/50/Button_tidyman.png',
action: {
type: 'callback',
execute: function(context){
rtg();
}
}
}
}
} );
}
return false;
})}
});
});
}
});
26 047

contributi