In this article, we will explore the fascinating life of
MediaWiki:Gadget-topalert.js, a character who has left an indelible mark on history. From his humble beginnings to his rise to fame,
MediaWiki:Gadget-topalert.js has captured the attention of thousands of people around the world. Through exclusive interviews and archival footage, we will closely examine the highlights of
MediaWiki:Gadget-topalert.js's life, his impact on society, and his lasting legacy. Join us on this journey through time as we unravel the mysteries and achievements of
MediaWiki:Gadget-topalert.js, a figure who will continue to inspire and intrigue generations to come.
( function( $, mw ) {
$alert = '<div id="mw-echo-sliding-alert">';
$alert += '<div id="mw-echo-close-box"><img style="display: block;" src="//upload.wikimedia.org/wikipedia/commons/3/36/CloseWindow.svg"/></div>';
$alert += '<div id="mw-echo-alert-text">You have <a href="#" id="mw-echo-talk-link">new messages</a>. (<a href="#" id="mw-echo-talk-diff-link">view changes</a>)</div>';
$alert += '</div>';
$(document).ready(function() {
var newMsgRevisionId = mw.config.get( 'wgUserNewMsgRevisionId' );
if ( newMsgRevisionId ) {
var userName = mw.config.get( 'wgUserName' );
var talkLink = 'https://wikifreehand.com/en/User_talk:' + userName + '?redirect=no';
var diffLink = '/w/index.php?title=User_talk:' + userName + '&oldid=' + newMsgRevisionId + '&diff=cur';
$( 'body' ).append( $alert );
$( '#mw-echo-close-box' ).click( function( e ) {
$( '#mw-echo-sliding-alert' ).hide();
e.preventDefault();
} );
$( 'a#mw-echo-talk-link' ).attr( 'href', talkLink );
$( 'a#mw-echo-talk-diff-link' ).attr( 'href', diffLink );
mw.config.set( 'echoNewMsgAlertDisplayed', true );
}
} );
} )( jQuery, mediaWiki );