Module:qhv-adj: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 71: Line 71:
data.head = parent_args["head"] or nil
data.head = parent_args["head"] or nil
data.pre = ""
-- Generate the forms
-- Generate the forms
Line 128: Line 127:
end
end


local function make_cases(data, pop)
local function make_cases(data, pre)
local cases = {"nominative", "accusative", "genitive", "dative", "locative", "instrumental", "comitative", "vocative"}
local cases = {"nominative", "accusative", "genitive", "dative", "locative", "instrumental", "comitative", "vocative"}
local genders = {"lunar", "solar", "terrestrial", "aquatic"}
local genders = {"lunar", "solar", "terrestrial", "aquatic"}
local ret = {}
local ret = {}
data.pre = pop == "pre" and true
data.pre = pre
for _, case in ipairs(cases) do
for _, case in ipairs(cases) do
Line 171: Line 170:
! ]=] .. g_tooltip("s", "ol") .. [=[​
! ]=] .. g_tooltip("s", "ol") .. [=[​
! ]=] .. g_tooltip("p", "pa") .. [=[​
! ]=] .. g_tooltip("p", "pa") .. [=[​
|- ]=] .. make_cases(data, "pre") .. [=[
|- ]=] .. make_cases(data, true) .. [=[
|}<ul style="margin-left:0px;"></ul>
|}<ul style="margin-left:0px;"></ul>
]=]
]=]
Line 192: Line 191:
! ]=] .. g_tooltip("s", "ol") .. [=[&#x200B;
! ]=] .. g_tooltip("s", "ol") .. [=[&#x200B;
! ]=] .. g_tooltip("p", "pa") .. [=[&#x200B;
! ]=] .. g_tooltip("p", "pa") .. [=[&#x200B;
|- style="background-color:#fdfdfd;" ]=] .. make_cases(data, "post") .. [=[
|- style="background-color:#fdfdfd;" ]=] .. make_cases(data, false) .. [=[
|}
|}
]=]
]=]

Navigation menu