Documentation for this module may be created at မေႃႇၵျူး:senseid/templates/doc

local export = {}


function export.senseid_t(frame)
	local params = {
		[1] = {required = true, default = "und"},
		[2] = {required = true, default = ""},
		tag = {default = "li"},
	}
	
	local args = require("Module:parameters").process(frame:getParent().args, params)
	
	if not (args.tag == "li" or args.tag == "p") then
		error("Unauthorized tag: " .. args.tag)
	end
	
	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], args.tag)
end


function export.etymid_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").etymid(lang, args[2])
end


return export