MediaWiki:Gadget-NewImageThumb.js
Tampilan
Catatan: Setelah menyimpan, Anda harus memintas tembolok (cache) peramban Anda untuk melihat perubahannya. Google Chrome, Firefox, Microsoft Edge dan Safari: Tahan tombol ⇧ Shift dan klik Muat ulang (Reload) di tombol bilah alat. Untuk detail dan instruksi tentang peramban lain, lihat halaman menghapus singgahan (Inggris).
/* _____________________________________________________________________________
* | |
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
* |_____________________________________________________________________________|
*
* New image thumb design
*
* @dependencies none
* @source en.wikipedia.org/wiki/MediaWiki:Gadget-NewImageThumb.js
* @revision 1
* @author: Edokter ([[User:Edokter]])
*/
mw.hook( 'wikipage.content' ).add( function() {
$( '.thumbinner' ).not( '.mp-thumb' ).each( function() {
$( this ).css( 'width', ( parseInt( $( this ).css( 'width' ) ) - 2 ) + 'px' );
} );
} );