A modult a Modul:accel/yi/doc lapon tudod dokumentálni

local m_yi_common = require("Module:yi-common")

return {generate = function(params, entry)
	if params.form == "past-participle" then
		entry.head = "{{head|" .. params.lang .. "|past participle" .. (params.transliteration and "|tr=" .. params.transliteration or "") .. "}}"
		entry.def = "{{past participle of|" .. params.origin .. (params.origin_transliteration and "|tr=" .. params.origin_transliteration or "") .. "|lang=" .. params.lang .. "|nocat=1}}"
	elseif params.form == "diminutive" then
		local dimpl
		if mw.ustring.find(params.target, "ע$") then
			dimpl = m_yi_common.make_non_final(params.target) .. "ך"
		else
			dimpl = m_yi_common.make_non_final(params.target) .. "עך"
		end
		entry.head = "{{yi-noun|g=n" .. (params.transliteration and "|tr=" .. params.transliteration or "") .. "|pl=" .. dimpl .. "}}"
		entry.def = "{{diminutive of|" .. params.lang .. "|" .. params.origin .. (params.origin_transliteration and "|tr=" .. params.origin_transliteration or "") .. "}}"
	end
end}