Module:User:Erutuon/parameters

local export = {}

local m_params = require("Module:parameters/sandbox") local m_langs = require("Module:languages") local m_links = require("Module:links")

function export.show(frame) local output = {} params = { [1] = { required = true }, [2] = { list = true, allow_holes = true }, ["t"] = { list = true, allow_holes = true, corresponds_to = 2 }, }	local args = m_params.process(frame.args, params) local lang = m_langs.getByCode(args[1]) or m_langs.err(args[1], 1) for i = 1, args[2].allmaxindex do		local term = args[2][i] local gloss = args["t"][i] local link = m_links.full_link({ lang = lang, term = term, gloss = gloss }) table.insert(output, link) end return table.concat(output, ", ") end

return export