Module:language tracking

local export = {}

local function generate_lemmas(langs) local output = " " return output end

local function generate_nonlemmas(langs) local output = " " return output end

local function generate_both(langs) local output = " " return output end

function export.show(frame) local args = require("Module:parameters").process(		frame:getParent.args,		{			[1] = { list = true },			["type"] = { default = "lemma" },		})

local langs = {}

local languageData = mw.loadData("Module:languages/code to canonical name")

for _, language in ipairs(args[1]) do       language = languageData[language] table.insert(langs, (language ~= "") and language or nil) end local output

if args.type == "lemma" then output = generate_lemmas(langs) elseif args.type == "nonlemma" then output = generate_nonlemmas(langs) elseif args.type == "both" then output = generate_both(langs) else error("Invalid type.") end return output end

return export