Module:Enhancement list

-- local p = {} local getArgs = require("Dev:Arguments").getArgs local userError = require("Dev:User error")

function p.main(frame) local args = getArgs(frame)

for _, argName in ipairs{"name", "desc"} do       if not args[argName] then return userError(               "the   parameter is required"            ) end end

local links = {"" .. args.name .. ""}

if args.langs then for lang in mw.text.gsplit(args.langs, "%s*,%s*") do           table.insert(                links,                "(" .. lang .. ")"            ) end end

return "; " .. table.concat(links, " ") .. "\n: " .. args.desc end

return p