Jump to content

မေႃႇၵျူး:anagrams

လုၵ်ႉတီႈ ဝိၵ်ႇသျိၼ်ႇၼရီႇ မႃး

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

local m_links = require("Module:links")

local export = {}

function export.show(frame)
	local params = {
		[1] = {required = true, type = "full language", default = "und"},
		[2] = {required = true, default = "anagram", list = true},
		["a"] = true,
	}
	
	local args = require("Module:parameters").process(frame:getParent().args, params)
	
	for i, val in ipairs(args[2]) do
		args[2][i] = m_links.full_link({lang = args[1], term = val})
	end

	return table.concat(args[2], ", ")
		
end

return export