Module:Spy-x-family-Interlanguage

local p = {} function p.getInterwikiLinks local contentLang = mw.getContentLanguage:getCode local name = mw.title.getCurrentTitle.text

pages = mw.loadData("Module:Spy-x-family-Interlanguage/data") languages = {} for p in pairs(pages) do 		for l in pairs(pages[p]) do			languages[string.match(pages[p][l], ":(.*)")] = pages[p] end end local links = ""; if languages[name] ~= nil then for p in pairs(languages[name]) do			if string.match(languages[name][p], "(.*):") ~= contentLang then links = links .. "" .. languages[name][p] .. "" end end end return links end

return p