本模块包含官話的新條目建立規則;有關概述,請參見en:WT:ACCEL,有關創建新規則的資訊,請參見en:Module:accel


return {generate = function (params, entry)
	if params.form == "pinyin-ts" then
		entry.pos_header = "羅馬化"
		entry.head = "{{cmn-pinyin}}"
		entry.def = "{{pinyin reading of|" .. params.origin .. "}}"
	elseif params.form == "pinyin-t" then
		entry.pos_header = "羅馬化"
		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 = "羅馬化"
		entry.head = "{{cmn-pinyin}}"
		-- the traditional form is passed through the gender parameter
		entry.def = "{{pinyin reading of|" .. params.transliteration .. "|" .. params.origin .. "}}"
	end
end}