Module:User:Balyozxane/masc and fem

-- ku:Modul:ku-tewîn-nav/mê û nêr local export = {}

decl = require('Module:User:Balyozxane').decl

local function tooltip(word, abbr) return ' ( ' .. abbr .. '  )' end function export.mf(title, variant) return ' '  ..'\n declension of ' ..title.. ' '  ..'\n ' ..'\n{| border="1" style="border-collapse:collapse; background-color:white; clear:right; width:100%; " class="inflection-table"' ..'\n|-' ..'\n! colspan="4" align="center" | Definite feminine and masculine' ..'\n|-' ..'\n! style="background-color:#FFFFE0; text-align:left;" | Case' ..'\n! colspan="1" style="background-color:#FFFFE0;" | Feminine' .. tooltip('singular', 'sg') ..'\n! colspan="1" style="background-color:#FFFFE0;" | Masculine' .. tooltip('singular', 'sg') ..'\n! colspan="1" style="background-color:#FFFFE0;" | Plural' ..'\n|-' ..'\n| style="background-color:#f8f9fa; text-align:left;" | Nominative' ..'\n|' .. decl(title, 'f', variant)["def_nom_s"] ..'\n|' .. decl(title, 'm', variant)["def_nom_s"] ..'\n|' .. decl(title, 'm', variant)["def_nom_p"] ..'\n|-' ..'\n| style="background-color:#f8f9fa; text-align:left;" | Construct' ..'\n|' .. decl(title, 'f', variant)["def_cons_s"] ..'\n|' .. decl(title, 'm', variant)["def_cons_s"] ..'\n|' .. decl(title, 'm', variant)["def_cons_p"] ..'\n|-' ..'\n| style="background-color:#f8f9fa; text-align:left;" | Oblique' ..'\n|' .. decl(title, 'f', variant)["def_obl_s"] ..'\n|' .. decl(title, 'm', variant)["def_obl_s"] ..'\n|' .. decl(title, 'm', variant)["def_obl_p"] ..'\n|-' ..'\n| style="background-color:#f8f9fa; text-align:left;" | Demonstrative oblique' ..'\n|' .. decl(title, 'f', variant)["def_demons_obl_s"] ..'\n|' .. decl(title, 'm', variant)["def_demons_obl_s"] ..'\n|' .. decl(title, 'm', variant)["def_demons_obl_p"] ..'\n|-' ..'\n| style="background-color:#f8f9fa; text-align:left;" | Vocative' ..'\n|' .. decl(title, 'f', variant)["voc_s"] ..'\n|' .. decl(title, 'm', variant)["voc_s"] ..'\n|' .. decl(title, 'm', variant)["voc_p"] ..'\n|-' ..'\n! colspan="5" align="center" | Indefinite feminine and masculine' ..'\n|-' ..'\n!style="background-color:#FFFFE0; text-align:left;" | Rewş' ..'\n! colspan="1" style="background-color:#FFFFE0;" | Feminine' .. tooltip('singular', 'sg') ..'\n! colspan="1" style="background-color:#FFFFE0;" | Masculine' .. tooltip('singular', 'sg') ..'\n! colspan="1" style="background-color:#FFFFE0;" | Plural' ..'\n|-' ..'\n| style="background-color:#f8f9fa; text-align:left;" | Nominative' ..'\n|' .. decl(title, 'f', variant)["indef_nom_s"] ..'\n|' .. decl(title, 'm', variant)["indef_nom_s"] ..'\n|' .. decl(title, 'm', variant)["indef_nom_p"] ..'\n|-' ..'\n| style="background-color:#f8f9fa; text-align:left;" | Construct' ..'\n|' .. decl(title, 'f', variant)["indef_cons_s"] ..'\n|' .. decl(title, 'm', variant)["indef_cons_s"] ..'\n|' .. decl(title, 'm', variant)["indef_cons_p"] ..'\n|-' ..'\n| style="background-color:#f8f9fa; text-align:left;" | Oblique' ..'\n|' .. decl(title, 'f', variant)["indef_obl_s"] ..'\n|' .. decl(title, 'm', variant)["indef_obl_s"] ..'\n|' .. decl(title, 'm', variant)["indef_obl_p"] ..'\n|} ' end return export