Diferencia entre revisiones de «MediaWiki:Common.js»

Contenido eliminado Contenido añadido
retiro (por el momento?) la búsqueda especial, que no está funcionando
Bene* (discusión · contribs.)
Update script to work with the new badges system. Please report any issues or questions at d:Wikidata:Contact the development team. Per [[MediaWiki talk:Common.js#Announced JavaScript change for badges implement...
Línea 428:
for ( var i = 0; i < InterwikiLinks.length; i++ ) {
var className = InterwikiLinks[i].className.match(/interwiki-[-\w]+/);
if ( document.getElementById( className + '-fa' ) && InterwikiLinks[i].className.indexOf( 'badge-featuredarticle' ) === -1 ) {
InterwikiLinks[i].className += ' destacado';
InterwikiLinks[i].title = 'Éste es un artículo destacado en esta Wikipedia.';
} else if ( document.getElementById( className + '-ga' ) && InterwikiLinks[i].className.indexOf( 'badge-goodarticle' ) === -1 ) {
InterwikiLinks[i].className += ' bueno';
InterwikiLinks[i].title = 'Éste es un artículo bueno en esta Wikipedia.';