پودمان:az-verb

از ویکی‌واژه

توضیحات این پودمان می‌تواند در پودمان:az-verb/توضیحات قرار گیرد.

local export = {}

function export.light_verb(frame)
	local params = {
		["head"] = {list = true, default = ""},
		["c"] = {},
	}
	
	local args = require("Module:parameters").process(frame:getParent().args, params)
	
	local lang = require("Module:languages").getByCode("az")
	local data = {lang = lang,
		pos_category = "verbs",
		categories = {"Azerbaijani compound verbs"},
		heads = args["head"],
		genders = {},
		inflections = {},
		check = {}}

	if (args["c"]) then
		table.insert(data["categories"], "Azerbaijani compound verbs with " .. args["c"])
	else
		local pagename = mw.title.getCurrentTitle().text
		local parts = mw.text.split(pagename, " ", true);
		table.insert(data["categories"], "Azerbaijani compound verbs with " .. parts[#parts])
	end
	
	return require("Module:headword").full_headword(data)
	
end

return export