Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 107: | Line 107: | ||
-- Make the table | -- Make the table | ||
return make_table(data) | return make_table(data, args) | ||
end | end | ||
function make_table(data) | function make_table(data, args) | ||
local function show_form(form) | local function show_form(form) | ||
| Line 151: | Line 151: | ||
end | end | ||
function export.make_cases(data, animacy) | function export.make_cases(data, args, animacy) | ||
local cases = {"inessive", "illative", "elative", "adessive", "allative", "ablative"} | local cases = {"inessive", "illative", "elative", "adessive", "allative", "ablative"} | ||
local all = {"u", "m"} | local all = {"u", "m"} | ||
| Line 164: | Line 164: | ||
table.insert(ret, "|-\n") | table.insert(ret, "|-\n") | ||
for _, single in ipairs(all) do | for _, single in ipairs(all) do | ||
table.insert(ret, "| " .. link(show_form( | table.insert(ret, "| " .. link(show_form(args[single] or data.forms[single])) .. "\n") | ||
end | end | ||
| Line 183: | Line 183: | ||
! rowspan=2 | Unmarked<br>''agentive/dative'' !! rowspan=2 | Marked<br>''patientive/genitive'' !! colspan="6" | Locative | ! rowspan=2 | Unmarked<br>''agentive/dative'' !! rowspan=2 | Marked<br>''patientive/genitive'' !! colspan="6" | Locative | ||
|- | |- | ||
]=] .. export.make_cases(data) .. [=[ | ]=] .. export.make_cases(data, args) .. [=[ | ||
|}</div></div>]=] | |}</div></div>]=] | ||
| Line 191: | Line 191: | ||
! Unmarked<br>''agentive/dative'' !! Marked<br>''patientive/genitive'' | ! Unmarked<br>''agentive/dative'' !! Marked<br>''patientive/genitive'' | ||
|- | |- | ||
]=] .. export.make_cases(data) .. [=[ | ]=] .. export.make_cases(data, args) .. [=[ | ||
|}</div></div>]=] | |}</div></div>]=] | ||