MediaWiki:Wikia.js

/* ===================   Google Play Award Right rail module This code is temporary, and will only be active until early 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 November 2018. =================== */

var rightRailModules = { config: { loadOnNamespaces: [0], locales: { image: { "en": "//images.wikia.com/czech-prey-out/images/3/3b/Pokemon.jpg" },			altText: { "en": "Vote now!" },			url: { "en": "https://play.google.com/store/apps/uservoting/Games%20US%20-%20Best%20Of%20User%20Voting%202018%20Voting%20Page%20?id=mc_games_us_bestofuservoting2018_uv_page" }		}	},	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; });

/* ===================   Google Play Award end =================== */