Module:User:Victar/term cognates/templates

Hello, you have come here looking for the meaning of the word Module:User:Victar/term cognates/templates. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Victar/term cognates/templates, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Victar/term cognates/templates in singular and plural. Everything you need to know about the word Module:User:Victar/term cognates/templates you have here. The definition of the word Module:User:Victar/term cognates/templates will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Victar/term cognates/templates, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}

local m_languages = require("Module:languages")

function export.show(frame)
	local params = {
		 = {required = true, default = "gem-pro"},
		 = {required = true, default = "*fuhsaz"},
	}
	
	local args
	if frame.args then
		args = require("Module:parameters").process(frame.args, params)
	else
		args = require("Module:parameters").process(frame:getParent().args, params)
	end
	
	local lang = args
	local term = args
	
	lang = m_languages.getByCode(lang)
		or require("Module:etymology languages").getByCode(lang)
		or m_languages.err(lang, 1)
		
	local entryLang = require("Module:etymology").getFull(lang)
	
	if lang:getCode() ~= entryLang:getCode() then
		-- ]
		require("Module:debug").track("descendant/etymological")
		require("Module:debug").track("descendant/etymological/" .. lang:getCode())
	end
	
	local cognates = require("Module:User:Victar/term cognates").getCognates(entryLang, term)
	
	return cognates
end

return export