/** * Aggiunge un orologio che si aggiorna automaticamente */ $( function() { var link = mw.util.addPortletLink( 'p-personal', '', '' ); setInterval( function() { var now = new Date(); $( link ).html( now.toLocaleString().replace( /GMT/, "CET" ) ); }, 300 ); } );