MediaWiki:Common.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
reimplementato codice comune tolto a Vector.js e Monobook.js |
codice duplicato in Monobook.js e Vector.js; sposto qui |
||
Riga 16:
/*** Collegamento diretto alla pagina di upload di Commons nel portlet Strumenti */
jQuery(document).ready(function(){
mw.util.addPortletLink('p-tb', 'http://commons.wikimedia.org/wiki/Commons:Upload/it',
Riga 22:
});
/*** Evidenzia i link agli articoli di qualità su altre wiki */
function LinkAdQ()
{
if ( document.getElementById( "p-lang" ) ) {
var InterwikiLinks = document.getElementById( "p-lang" ).getElementsByTagName( "li" );
for ( var i = 0; i < InterwikiLinks.length; i++ ) {
if ( document.getElementById( InterwikiLinks[i].className + "-fa" ) ) {
InterwikiLinks[i].className += " FA"
InterwikiLinks[i].title = "La voce è in vetrina in questa lingua.";
}
}
}
}
jQuery(document).ready( LinkAdQ );
/*** RICERCA ***/
Riga 93 ⟶ 110:
* Maintainers: User:Mike Dillon, User:R. Koot, User:SG
*/
var hasClass = (function () {
var reCache = {};
|