Module:Language info

---Split the `str` on each `div` in it and return the result as a table. ---Original version credit: http://richard.warburton.it. ---@param div string ---@param str string ---@return table|boolean local function explode(div,str) if (div=='') then return false end local pos,arr = 0,{} -- for each divider found for st,sp in function return string.find(str,div,pos,true) end do		arr[#arr + 1] = string.sub(str,pos,st-1) -- Attach chars left of current divider pos = sp + 1 -- Jump past current divider end arr[#arr + 1] = trim(string.sub(str,pos)) -- Attach chars right of last divider return arr end

-- We only invoke this module once per page, therefore we do not need to use mw.loadData, require is faster. local info = require("Module:Language info/data")

return { interwiki_links = function(frame) local key = frame.args['en'] local lang = frame.args['lang'] local str = '' for k,v in pairs(info) do			if k ~= lang then if v[key] then str = str ..  .. k .. ':'.. v[key] ..  end end end return str end, }