Module:User:Benwing2/languages/utilities
Appearance
- This module sandbox lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local export = {}
function export.generateForms(frame)
local iparams = {
[1] = {required = true},
[2] = {required = true},
}
local iargs = require("Module:parameters").process(frame.args, iparams)
local langcode = iargs[1]
local lang = require("Module:languages").getByCode(langcode, true)
local forms = lang:generateForms(iargs[2])
return table.concat(forms, "||")
end
return export