local export = {}
local lang = require('Module:languages').getByCode('khv')
function export.show(frame)
local params = {
[1] = {alias_of = 'head'},
[3] = {alias_of = 'tr'},
[2] = {alias_of = 'g'},
[4] = {alias_of = 'erg'},
[6] = {alias_of = 'pl'},
['head'] = {list = true},
['tr'] = {list = true},
['ts'] = {list = true},
['g'] = {list = true, default = '?'},
['erg'] = {list = true},
['pl'] = {list = true},
} local args = require('Module:parameters').process(frame:getParent().args,params)
local data = {
lang = lang,
heads = args['head'],
translits = args['tr'],
transcriptions = args['ts'],
genders = args['g'],
inflections = {},
pos_category = "名詞",
categories = {}}
if args['erg'][1] then
args.erg.label = '作格'
table.insert(data.inflections, args['erg'])
end
if args['pl'][1] then
args.pl.label = '複數'
table.insert(data.inflections, args['pl'])
end
return require('Module:headword').full_headword(data)
end
return export