Module:User:Balyozxane/singular
Appearance
- This module sandbox lacks a documentation subpage. You may create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • user page • user talk page • userspace
This is a private module sandbox of Balyozxane, for their own experimentation. Items in this module may be added and removed at Balyozxane's discretion; do not rely on this module's stability.
-- [[ku:Modul:ku-tewîn-nav/yekjimar]]
local export = {}
decl = require('Module:User:Balyozxane').decl
function genderTable(gender)
if (gender == 'm') then return 'masculine gender'
elseif (gender == 'f') then return 'feminine gender'
end
end
function export.singular(title, gender, variant)
return
'<div class="NavFrame" style="width:20%">'
..'\n<div class="NavHead" style="">declension of ' ..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" |Definite ' .. genderTable(gender)
..'\n|-'
..'\n! style="background-color:#FFFFE0; text-align:left;" | Case'
..'\n! colspan="1" style="background-color:#FFFFE0;" | Singular'
..'\n|-'
..'\n| style="background-color:#f8f9fa; text-align:left;" | Nominative'
..'\n|' .. decl(title, gender, variant)["def_nom_s"]
..'\n|-'
..'\n| style="background-color:#f8f9fa; text-align:left;" | Construct'
..'\n|' .. decl(title, gender, variant)["def_cons_s"]
..'\n|-'
..'\n| style="background-color:#f8f9fa; text-align:left;" | Oblique'
..'\n|' .. decl(title, gender, variant)["def_obl_s"]
..'\n|-'
..'\n| style="background-color:#f8f9fa; text-align:left;" | Demonstrative oblique'
..'\n|' .. decl(title, gender, variant)["def_demons_obl_s"]
..'\n|-'
..'\n| style="background-color:#f8f9fa; text-align:left;" | Vocative'
..'\n|' .. decl(title, gender, variant)["voc_s"]
-- ..'\n|' .. decl(title, gender, variant)["voc_p"]
..'\n|-'
..'\n! colspan="5" align="center" |Indefinite ' .. genderTable(gender)
..'\n|-'
..'\n!style="background-color:#FFFFE0; text-align:left;" | Case'
..'\n!colspan="1" style="background-color:#FFFFE0;" | Singular'
..'\n|-'
..'\n| style="background-color:#f8f9fa; text-align:left;" | Nominative'
..'\n|' .. decl(title, gender, variant)["indef_nom_s"]
..'\n|-'
..'\n| style="background-color:#f8f9fa; text-align:left;" | Construct'
..'\n|' .. decl(title, gender, variant)["indef_cons_s"]
..'\n|-'
..'\n| style="background-color:#f8f9fa; text-align:left;" | Oblique'
..'\n|' .. decl(title, gender, variant)["indef_obl_s"]
..'\n|}</div></div>'
end
return export