-- [[ku:Modul:ku-tewîn-nav/yekjimar]]
local export = {}
decl = require('Module:kmr-nouns').decl
function genderTable(gender)
if (gender == 'm') then return '陽性'
elseif (gender == 'f') then return '陰性'
end
end
function export.singular(title, gender, variant)
return
'<div class="NavFrame" style="width:65%">'
..'\n<div class="NavHead" style="">' ..title.. ' 的變格</div>'
..'\n<div class="NavContent">'
..'\n{| colspan="5" border="1" style="border-collapse:collapse; background-color:white; clear:right; width:100%; " class="inflection-table"'
..'\n|-'
..'\n! colspan="3" align="center" |定' .. genderTable(gender)
..'\n|-'
..'\n! style="background-color:#FFFFE0; text-align:left;" | 格'
..'\n! colspan="1" style="background-color:#FFFFE0;" | 單數'
..'\n|-'
..'\n| style="background-color:#e7e8ea; text-align:left;" | 主格'
..'\n|' .. decl(title, gender, variant)["def_nom_s"]
..'\n|-'
..'\n| style="background-color:#e7e8ea; text-align:left;" | 構造格'
..'\n|' .. decl(title, gender, variant)["def_cons_s"]
..'\n|-'
..'\n| style="background-color:#e7e8ea; text-align:left;" | 斜格'
..'\n|' .. decl(title, gender, variant)["def_obl_s"]
..'\n|-'
..'\n| style="background-color:#e7e8ea; text-align:left;" | 指示斜格'
..'\n|' .. decl(title, gender, variant)["def_demons_obl_s"]
..'\n|-'
..'\n| style="background-color:#e7e8ea; text-align:left;" | 呼格'
..'\n|' .. decl(title, gender, variant)["voc_s"]
-- ..'\n|' .. decl(title, gender, variant)["voc_p"]
..'\n|-'
..'\n! colspan="5" align="center" |不定' .. genderTable(gender)
..'\n|-'
..'\n!style="background-color:#FFFFE0; text-align:left;" | 格'
..'\n!colspan="1" style="background-color:#FFFFE0;" | 單數'
..'\n|-'
..'\n| style="background-color:#e7e8ea; text-align:left;" | 主格'
..'\n|' .. decl(title, gender, variant)["indef_nom_s"]
..'\n|-'
..'\n| style="background-color:#e7e8ea; text-align:left;" | 構造格'
..'\n|' .. decl(title, gender, variant)["indef_cons_s"]
..'\n|-'
..'\n| style="background-color:#e7e8ea; text-align:left;" | 斜格'
..'\n|' .. decl(title, gender, variant)["indef_obl_s"]
..'\n|}</div></div>'
end
return export