Module:accel/cy
- පහත දැක්වෙන උපදෙස්, Module:documentation මගින් ජනනය කොට ඇත. [සංස්කරණය කරන්න]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • testcases • sandbox
This module contains new entry creation rules for වේල්ස; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.
return {generate = function (params, entry)
local template = {
["nasal"] = "nasal mutation of",
["soft"] = "soft mutation of",
["aspirate"] = "aspirate mutation of",
["h-prothesis"] = "h-prothesis of",
["singulative"] = "singulative of",
}
if template[params.form] then
entry.def = entry.make_def(template[params.form])
end
entry.mutation = "{{cy-mut}}"
if params.pos == "noun" and params.form == "plural" then
entry.head = entry.make_head("noun plural form")
elseif params.form == "singulative" then
entry.head = entry.make_head("singulative")
elseif params.form == "nasal" or params.form == "soft" or params.form == "aspirate" or params.form == "h-prothesis" then
entry.head = entry.make_head("mutated " .. params.pos)
entry.mutation = "{{cy-mut|" .. params.origin .. "}}"
end
end}