Hello, you have come here looking for the meaning of the word
MediaWiki:Common.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word
MediaWiki:Common.js, but we will also tell you about its etymology, its characteristics and you will know how to say
MediaWiki:Common.js in singular and plural. Everything you need to know about the word
MediaWiki:Common.js you have here. The definition of the word
MediaWiki:Common.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
MediaWiki:Common.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
/* Il codice JavaScript inserito qui viene caricato da ciascuna pagina, per tutti gli utenti. */
/**
* Menu interprogetto nella sidebar, vedi anche ]
*/
importScript('MediaWiki:InterProject.js');
/*
* Aggiunge il menu a tendina per selezionare un sottoinsieme di caratteri speciali
* Aggiornto da: https://it.wikipedia.orghttps://it.wiktionary.org/w/index.php?title=MediaWiki:Common.js&oldid=98798969
*/
function comboboxEdittools() {
var $specialChars = $( '#specialchars' );
if ( $specialChars.length ) {
var $select = $( '<select>' ).change( function () {
$specialChars.find( 'p' ).hide();
$specialChars.find( 'option:selected' ).data().show();
} );
$specialChars.find( 'p' ).each( function () {
$( '<option>' ).html( $( this ).attr( 'id' ).replace( /_/g, ' ' ) )
.data( $( this ) ).appendTo( $select );
} );
$specialChars.prepend( $select );
$select.change();
}
}
$( comboboxEdittools );
// END Menu caratteri speciali
/*** Collegamento diretto alla pagina di upload di Commons nel menu di sinistra */
$('#t-upload a').text('Carica su Commons');
//AUTO REDIRECT di ]
function doRedirect() {
var dym = document.getElementById('did-you-mean');
var wiktDYMfrom= window.location.href.replace(/^(.+rdfrom=(+).*|.*)?$/,"$2");
// REDIRECTED DA
if( window.location.href.indexOf('rdfrom=')!=-1 ) {
var insertPosition= document.getElementById("siteSub");
var div=document.createElement("div");
if(insertPosition){
div.setAttribute("id","contentSub");
var tt=document.createElement('tt');
var lnk =document.createElement('a');
lnk.setAttribute("href",mw.config.get('wgArticlePath').replace("$1",wiktDYMfrom)+ '?redirect=no');
lnk.className="new"; //As they are redlinks
lnk.appendChild(document.createTextNode(decodeURI(wiktDYMfrom)));
tt.appendChild(lnk);
div.appendChild(document.createTextNode("(Auto-redirect da "));
div.appendChild(tt);
div.appendChild(document.createTextNode(")"));
insertPosition.parentNode.insertBefore(div,insertPosition.nextSibling);
} else {
alert('No insertposition');
}
// FORSE CERCAVI
}else if( dym
&& !window.location.href.match(/redirect=no/)
) {
var target = dym.firstChild.title;
var pagetitle = document.getElementsByTagName('h1').firstChild.nodeValue;
if( pagetitle != target
&& pagetitle.toLowerCase().replace(//g, "") == target.toLowerCase().replace(//g, "")
&& pagetitle.search(/Editing /g) == -1
&& !document.getElementById('contentSub').innerHTML.indexOf("Redirected from")>=0 // does contentSub always exist
) {
document.location = mw.config.get('wgArticlePath').replace("$1",encodeURIComponent(target.replace(/\ /g, "_")))
+ '?rdfrom=' + encodeURIComponent(pagetitle.replace(/ /g,"_"))
+ '&redirect=no';
}
}
}
$(document).ready(doRedirect);
// Aiuto:Diff & Aiuto:Redirect
if ( mw.config.get( 'wgPageName' ) === 'Aiuto:Diff' || mw.config.get( 'wgPageName' ) === 'Aiuto:Redirect' ) {
$(document).ready( mw.loader.load('mediawiki.diff.styles') );
}
/* Codice snellito per il {{Cassetto}}, con possibilità di personalizzare le scritte dei link "apri/chiudi"
//Di ]
var show = $('#show').text();
var hide = $('#hide').text();
$("#LinkPosition").prepend('<a id="ToggleHideLink">' + show +'</a>');
$("#ToggleHideLink").click(function() {
$(".NavContent2").slideToggle('slow');
var LinkText = $('#ToggleHideLink').text();
$('#ToggleHideLink').text(
LinkText == ""+ hide +"" ? "" + show +"" : ""+ hide +"");
});
$(".NavContent2").hide();
*/