Module:senseid/templates

Text-x-generic with pencil.svg This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local export = {}


function export.senseid_t(frame)
	local params = {
		[1] = {required = true, default = "und"},
		[2] = {required = true, default = ""},
	}
	
	local args = require("Module:parameters").process(frame:getParent().args, params)
	
	local m_languages = require("Module:languages")
	local lang = m_languages.getByCode(args[1]) or m_languages.err(args[1], 1)
	
	return require("Module:senseid").senseid(lang, args[2])
end


return export