Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 96: | Line 96: | ||
data.decl_type = decl_type | data.decl_type = decl_type | ||
data.q = detect_quality(data.head, data.sv) | data.q = detect_quality(data.head, data.sv) | ||
if data.g ~= "i" and data.g ~= "a" then error("Unknown gender: it must be either ‘i’ or ‘a’") end | |||
-- Generate the forms | -- Generate the forms | ||
| Line 184: | Line 186: | ||
|}</div></div>]=] | |}</div></div>]=] | ||
local animate = [=[]=] | local animate = [=[ | ||
{| class="greentable" border="1px #aaaaaa solid" margin="1em 1em 1em 0" style="background: #f9f9f9; border-collapse: collapse;" width="100%" | |||
|- | |||
! Unmarked<br>''agentive/dative'' !! Marked<br>''patientive/genitive'' | |||
|- | |||
]=] .. export.make_cases(data) .. [=[ | |||
|}</div></div>]=] | |||
local wikicode = navframe .. inanimate | local wikicode = navframe .. (data.g == "i" and inanimate or animate) | ||
return gsub(wikicode, "{{{([a-z0-9_]+)}}}", repl) .. (not data.nocat and m_u.format_categories(data.categories, lang) or "") | return gsub(wikicode, "{{{([a-z0-9_]+)}}}", repl) .. (not data.nocat and m_u.format_categories(data.categories, lang) or "") | ||