Module:accel/hi
Jump to navigation
Jump to search
- The following documentation is generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
This module contains new entry creation rules for Hindi; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.
return {generate = function (params, entry)
local pos_to_template = {
['noun'] = 'hi-noun form',
['verb'] = 'hi-verb form',
['adjective'] = 'hi-adj form',
['pronoun'] = 'hi-pron form',
['determiner'] = 'hi-det form',
['postposition'] = '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}