MediaWiki:Wikia.js

/* ===================   Devil May Cry 5 Right rail module This code is temporary, and will only be active until 31 December 2018. Based on w:c:dev:AdoptMe.js Are you an admin curious about what this is? Please refer to your message wall or user talk page. You'll find a message there from a FANDOM staff member left in the first week of December 2018. =================== */

var rightRailModules = { config: { loadOnNamespaces: [0], locales: { image: { "en": "//images.wikia.nocookie.net/czech-prey-out/images/5/5c/CTA-DMC5.jpg" },			altText: { "en": "Vote now!" },			url: { "en": "http://bit.ly/2EhkWiL" }		}	},	checkRail: 0, adoptImage: "", adoptAltText: "", adoptUrl: "", localizeModules: function { var	contentLanguage = wgContentLanguage, localizedAdoptImage = typeof this.config.locales.image[contentLanguage] !== "undefined" ? this.config.locales.image[contentLanguage] : this.config.locales.image["en"]; localizedAltText = typeof this.config.locales.altText[contentLanguage] !== "undefined" ? this.config.locales.altText[contentLanguage] : this.config.locales.altText["en"]; localizedUrl = typeof this.config.locales.url[contentLanguage] !== "undefined" ? this.config.locales.url[contentLanguage] : this.config.locales.url["en"]; this.adoptImage = localizedAdoptImage; this.adoptAltText = localizedAltText; this.adoptUrl = localizedUrl; },	addModules: function { var railHasLoaded = $("#WikiaRail .rail-module").length > 0; if (railHasLoaded) { clearInterval(this.checkRail); this.addCTABanner; }			},	addCTABanner: function { var	addBefore = $('#wikia-recent-activity'), bannerHTML = '  '; addBefore.before(bannerHTML); },	init: function { var thisObject = this; if (($.inArray(mw.config.get('wgNamespaceNumber'), this.config.loadOnNamespaces) > -1) && !mw.config.get('wgIsMainPage')) { this.localizeModules; this.checkRail = setInterval(function { thisObject.addModules; }, 750); }			} } $(function {	rightRailModules.init; });

/* ===================   DMC5 right rail module end =================== */