Documentation for this module may be created at Modul:fa-adj/belge

local export = {}
-- Ji [[en:Module:fa-adj]]
local m_common = require("Module:fa-common")

local lang = require("Module:languages").getByCode("fa")

function export.main(frame)
	local args = frame:getParent().args
	local word = mw.title.getCurrentTitle().text
	local tr = args["tr"]; if tr == "" then tr = nil end
	local tr2 = args["tr2"] or nil
	local c = args["c"]
	
	local data = {lang = lang, pos_category = "rengdêr", categories = {}, translits = {tr, tr2}, inflections = {}}
	
	if c == "+" then
		table.insert(data.inflections, {
			label = 'komparatîv',
			accel = {form = "comparative", translit = tr and mw.uri.anchorEncode(tr) .. '-tar' or nil},
			word .. m_common.ZWNJ(word) .. "تر"
		})
		
		table.insert(data.inflections, {
			label = 'sûperlatîv',
			accel = {form = "superlative", translit = tr and mw.uri.anchorEncode(tr) .. '-tarin' or nil},
			word .. m_common.ZWNJ(word) .. "ترین"
		})
	end
	
	return require("Module:headword").full_headword(data)
end

return export