A modult a Modul:accel/cmn/doc lapon tudod dokumentálni
return {generate = function (params, entry)
if params.form == "pinyin-ts" then
entry.pos_header = "Romanization"
entry.head = "{{cmn-pinyin}}"
entry.def = "{{pinyin reading of|" .. params.origin .. "}}"
elseif params.form == "pinyin-t" then
entry.pos_header = "Romanization"
entry.head = "{{cmn-pinyin}}"
-- the simplified form is passed through the gender parameter
entry.def = "{{pinyin reading of|" .. params.origin .. "|" .. params.transliteration .. "}}"
elseif params.form == "pinyin-s" then
entry.pos_header = "Romanization"
entry.head = "{{cmn-pinyin}}"
-- the traditional form is passed through the gender parameter
entry.def = "{{pinyin reading of|" .. params.transliteration .. "|" .. params.origin .. "}}"
end
end}