Module:qhv-adj: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 126: Line 126:
end
end


local function make_cases(data, pre)
local function make_cases(data, pre, post)
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 = pre and true or false
data.pre, data.post = pre, post
for _, case in ipairs(cases) do
for _, case in ipairs(cases) do
Line 169: Line 169:
! ]=] .. g_tooltip("s", "ol") .. [=[​
! ]=] .. g_tooltip("s", "ol") .. [=[​
! ]=] .. g_tooltip("p", "pa") .. [=[​
! ]=] .. g_tooltip("p", "pa") .. [=[​
|- ]=] .. make_cases(data, true) .. [=[
|- ]=] .. make_cases(data, true, false) .. [=[
|}<ul style="margin-left:0px;"></ul>
|}<ul style="margin-left:0px;"></ul>
]=]
]=]
Line 190: Line 190:
! ]=] .. 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, false) .. [=[
|- style="background-color:#fdfdfd;" ]=] .. make_cases(data, false, true) .. [=[
|}
|}
]=]
]=]