ماڈیول:fa-adj

ویکی لغت سے

"اس ماڈیول کی دستاویز ماڈیول:fa-adj/دستاویز پر بنائی جاسکتی ہے"

local export = {}

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 c = args["c"]
	
	local data = {lang = lang, pos_category = "صفات", categories = {}, inflections = {}}
	
	if c == "+" then
		table.insert(data.inflections, {
			label = 'comparative',
			accel = 'comparative-form-of' .. (tr and (' transliteration-' .. mw.uri.anchorEncode(tr) .. 'تر') or ""),
			word .. m_common.ZWNJ(word) .. "تر"
		})
		
		table.insert(data.inflections, {
			label = 'superlative',
			accel = 'superlative-form-of' .. (tr and (' transliteration-' .. mw.uri.anchorEncode(tr) .. 'ترین') or ""),
			word .. m_common.ZWNJ(word) .. "ترین"
		})
	end
	
	return require("Module:headword").full_headword(data)
end

return export