MediaWiki:Wikia.js

/* Add modules to the right rail var rightRailModules = { config: { loadOnArticleId: [138] },	checkRail: 0, addModules: function { var railHasLoaded = $("#WikiaRail .rail-module").length > 0; if (railHasLoaded) { clearInterval(this.checkRail); this.addCTABanner; }			},	addCTABanner: function { var	addAfter = $('.chat-module'), bannerHTML = '  '; addAfter.after(bannerHTML); },	init: function { var thisObject = this; if (($.inArray(mw.config.get('wgArticleId'), this.config.loadOnArticleId) > -1)) { this.checkRail = setInterval(function { thisObject.addModules; }, 750); }			} } $(function {	rightRailModules.init; });