Modul:accel/mai
Qiyofa
Bu modul uchun Modul:accel/mai/doc nomli hujjat sahifasini yaratishingiz mumkin
return {generate = function (params, entry)
local pos_to_template = {
['noun'] = 'mai-noun form',
['verb'] = 'mai-verb form',
['adjective'] = 'mai-adj form',
['pronoun'] = 'mai-pron form',
['determiner'] = 'mai-det form',
['postposition'] = 'mai-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 = "* {{mai-IPA" .. (params.transliteration and "|" .. params.transliteration or "") .. "}}"
end}