MediaWiki:Wikia.js/sidebar.js

( function ( $, mw ) {

'use strict'; function addRSWGuideModule { $( ' ' )           .attr( 'class', 'RSWGuide module' ) .append(               $( ' ' )                    .css( { 'margin-top': '0px', 'margin-bottom': '10px' } )                   // Head text for module                    .text( 'Trouble Brewing event' )            ) .append(               $( ' ' )                    .append( $( ' ' )                           .append(                                $( '' )                                    .attr( 'href', '/wiki/RuneScape:Events_Team/Trouble_Brewing_(29_November_2014)?s' )                                    // you don't need a trailing period/full stop on this                                    .text( 'Join the wiki and RSBandB for Trouble Brewing this Saturday!' )                            ) )           )            .insertBefore( '.LatestPhotosModule' ); }   function init { if ( $( ".LatestPhotosModule" ).length ) { addRSWGuideModule; return; }       setTimeout( init, 500 ); }   init

}( this.jQuery, this.mediaWiki ) );