MediaWiki:Gadget-SenLiberdadedePanorama.js
Aparencia
![]() | Nota: Despois de gardar, cómpre limpar a memoria caché do seu navegador para ver os cambios.
|
$( function () {
'use strict';
if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) {
$( '#mw-content-text img' ).each( function () {
if ( $( this ).attr( 'src' ).match( /\.jpe?g$/i ) && $( this ).attr( 'height' ) > 40 ) {
$( this ).parent( 'a' ).replaceWith( '<div class="gadget-panoramafrihet" style="display: table-cell; vertical-align: middle; height: ' + $( this ).attr( 'height' ) + 'px;"><a href="//gl.wikipedia.org/wiki/Wikipedia:Liberdade de Panorama en Europa 2015">A Liberdade de Panorama está en perigo en Europa. Prema para obter máis información.</a></div>' );
}
} );
}
} );