MediaWiki:Gadget-InterlanguageChecker.js

// Interlanguage Checker addOnloadHook( => {   if (skin !== "oasis") return;

const menuItems = $(".page-header__contribution-buttons .wds-dropdown .wds-list"); if (!menuItems.length) return;

const apiUrl = encodeURIComponent("https://fallout.fandom.com/api.php"); const namespace = Object.keys(wgNamespaceIds).find(key => wgNamespaceIds[key] === wgNamespaceNumber); const articleId = namespace === "" ? wgTitle : (namespace + ":" + wgTitle); const ilcUrl = `https://fwdekker.com/tools/interlanguage-checker/?api=${apiUrl}&article=${articleId}`; const button = `Check IW`; menuItems.append(button); });