မာတိကာသို့ ခုန်သွားရန်

မဝ်ဂျူ:accel/hi

နူ ဝိက်ရှေန်နရဳ

Documentation for this module may be created at မဝ်ဂျူ:accel/hi/doc

return {generate = function (params, entry)
	local pos_to_template = {
		['နာမ်'] = 'hi-noun form',
		['ကြိယာ'] = 'hi-verb form',
		['နာမဝိသေသန'] = 'hi-adj form',
		['သဗ္ဗနာမ်'] = 'hi-pron form',
		['ဖျေံလဝ်သန္နိဋ္ဌာန်'] = 'hi-det form',
		['ဝိဘတ်'] = 'hi-post form',
	}
	
	if pos_to_template[params.pos] then
		entry.head = "{{" .. pos_to_template[params.pos] ..
			(params.target ~= params.target_pagename and "|head=" .. params.target or "") ..
			(params.transliteration and "|tr=" .. params.transliteration or "") ..
			(params.gender and "|g=" .. params.gender or "") ..
			"}}"
	end

	entry.pronunc = "* {{hi-IPA" .. (params.transliteration and "|" .. params.transliteration or "") .. "}}"
end}