User:Philo04/common.js

mw.loader.load("https://terraria.fandom.com/wiki/MediaWiki:Gadget-hydralize.js?action=raw&ctype=text/javascript");

$.when(mw.loader.using(["mediawiki.api", "mediawiki.jqueryMsg"])).then(function{	return new mw.Api.loadMessagesIfMissing(["global-footer-licensing-and-vertical-description", "global-footer-licensing-and-vertical-description-param-vertical-games", "global-footer-mobile-site-link"]); }).then(function{	$(".license-description").prepend($(" ", {		text: mw.msg("global-footer-licensing-and-vertical-description", mw.config.get("wgSiteName"), mw.msg("global-footer-licensing-and-vertical-description-param-vertical-games"))	}));	$(".license-description").append($(" ", {		append: $("", { href: window.location.origin + window.location.pathname + window.location.search + (window.location.search ? "&" : "?") + "mobileaction=toggle_view_mobile" + window.location.hash, text: mw.msg("global-footer-mobile-site-link") })	})); });