Module:qhv-noun: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 109: Line 109:
return table.concat(ret, ", ")
return table.concat(ret, ", ")
end
end
local function link(term)
return "[[Contionary:" .. term .. "|" .. term .. "]]"
end
local function repl(param)
local function repl(param)
Line 127: Line 131:
local case_short = sub(case, 1, 3)
local case_short = sub(case, 1, 3)
table.insert(ret, "|- \n! style=\"background-color: #dcffed;\ |" .. case .. "\n")
table.insert(ret, "|- \n! style=\"background-color: #dcffed;\ |" .. case .. "\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | [[Contionary:" .. show_form(pass.forms[case_short .. "_sg"]) .. "|" .. show_form(pass.forms[case_short .. "_sg"]) .. "]]\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. link(show_form(pass.forms[case_short .. "_sg"])) .. "]]\n")
if pass.forms[case_short .. "_pl"] or pass.forms[case_short .. "_pa"] or pass.forms[case_short .. "_co"] then
if pass.forms[case_short .. "_pl"] or pass.forms[case_short .. "_pa"] or pass.forms[case_short .. "_co"] then
table.insert(ret, "| style=\"background-color: #edfff6;\" | [[Contionary:" .. show_form(pass.forms[case_short .. "_pl"]) .. "|" .. show_form(pass.forms[case_short .. "_pl"]) .. "]]\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. link(show_form(pass.forms[case_short .. "_pl"])) .. "]]\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | [[Contionary:" .. show_form(pass.forms[case_short .. "_pa"]) .. "|" .. show_form(pass.forms[case_short .. "_pa"]) .. "]]\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. link(show_form(pass.forms[case_short .. "_pa"])) .. "]]\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | [[Contionary:" .. show_form(pass.forms[case_short .. "_co"]) .. "|" .. show_form(pass.forms[case_short .. "_co"]) .. "]]\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. link(show_form(pass.forms[case_short .. "_co"])) .. "]]\n")
end
end
end
end

Navigation menu