Module:vo-conj

Hello, you have come here looking for the meaning of the word Module:vo-conj. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:vo-conj, but we will also tell you about its etymology, its characteristics and you will know how to say Module:vo-conj in singular and plural. Everything you need to know about the word Module:vo-conj you have here. The definition of the word Module:vo-conj will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:vo-conj, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local lang = require("Module:languages").getByCode("vo")

local p = {}

function p.init(frame)
    local intr = frame:getParent().args
    local pagename = tostring( mw.title:getCurrentTitle() )
    local root = mw.ustring.sub(pagename, 0, -3)
    return p.conj(root, intr)
end

function p.conj(root, intr)
    local function link(prefix, suffix)
        return require("Module:links").full_link({lang = lang, accel = {form = prefix .. suffix}, term = prefix .. root .. suffix})
    end

    local function row(r)
        return ""
    end

    local t = {{"", "pa"}, {"e", "pe"}, {"ä", "pä"}, {"i", "pi"}, {"o", "po"}, {"u", "pu"}, {"ö", "pö"}, {"ü", "pü"}}
    local p = {{"1st person singular", "ob"}, {"2nd person singular", "ol"}, {"2nd person polite singular", "or"}, {"3rd person singular", "on"}, {"3rd person male singular", "om"}, {"3rd person female singular", "of"}, {"reflexive singular", "ok"}, {"reciprocative singular", "od"}, {"1st person plural", "obs"}, {"2nd person plural", "ols"}, {"2nd person polite plural", "ors"}, {"3rd person plural", "ons"}, {"3rd person male plural", "oms"}, {"3rd person female plural", "ofs"}, {"reflexive plural", "oks"}, {"reciprocative plural", "ods"}, {"indefinite", "oy"}, {"impersonal", "os"}}
    local f = {{"Active indicative", "Passive indicative", ""}, {"Active subjunctive", "Passive subjunctive", "-la"}, {"Active optative", "Passive optative", "ös"}, {"Active interrogative", "Passive interrogative", "-li"}, {"Active jussive", "Passive jussive", "öz"}, {"Active conditional", "Passive conditional", nil}, {"Active imperative", "Passive imperative", nil}, {"Active infinitive", "Passive infinitive", nil}}

    local val = {[=[<div class="NavFrame">
<div class="NavHead" style="background-color:#FFE6FF;">] of <span lang="vo">]=] .. root .. [=[ön</span></div>
<div class="NavContent" style="overflow:auto">
{| border="1" cellpadding="5" style="border-bottom:2; border-collapse:collapse" width=100% class="inflection-table" align="center"]=]}

    local function verbs(voice)
        table.insert(val, "\n|-\n!style=\"background-color:#FFF55F\" colspan=18|" .. f)
        table.insert(val, "\n|-\n|style=\"background-color:#F0F0F0\" colspan=18|" .. link(t, "ön"))

        for i = 1, 5, 1 do
            table.insert(val, "\n|-\n!style=\"background-color:#FFF55F\" colspan=2|" .. f)
            table.insert(val, "\n!style=\"background-color:#C6C\" colspan=2|present")
            table.insert(val, "\n!style=\"background-color:#C6C\" colspan=2|present perfect")
            table.insert(val, "\n!style=\"background-color:#C6C\" colspan=2|imperfect")
            table.insert(val, "\n!style=\"background-color:#C6C\" colspan=2|pluperfect")
            table.insert(val, "\n!style=\"background-color:#C6C\" colspan=2|future")
            table.insert(val, "\n!style=\"background-color:#C6C\" colspan=2|future perfect")
            table.insert(val, "\n!style=\"background-color:#C6C\" colspan=2|future in the past")
            table.insert(val, "\n!style=\"background-color:#C6C\" colspan=2|future in the past perfect")

            for j = 1, 18, 1 do
                table.insert(val, "\n|-\n!style=\"background-color:#C6C\" colspan=2|" .. p)
                for k = 1, 8, 1 do
                    table.insert(val, "\n|style=\"background-color:#F0F0F0\" colspan=2|" .. link(t, p .. f))
                end
            end
        end

        table.insert(val, "\n|-\n!style=\"background-color:#FFF55F\" colspan=18|" .. f)
        for j = 1, 18, 1 do
            table.insert(val, "\n|-\n!style=\"background-color:#C6C\" colspan=2|" .. p)
            table.insert(val, "\n|style=\"background-color:#F0F0F0\" colspan=16|" .. link(t, p .. "öv"))
        end

        table.insert(val, "\n|-\n!style=\"background-color:#FFF55F\" colspan=18|" .. f)
        for j = 1, 18, 1 do
            table.insert(val, "\n|-\n!style=\"background-color:#C6C\" colspan=2|" .. p)
            table.insert(val, "\n|style=\"background-color:#F0F0F0\" colspan=16|" .. link(t, p .. "öd"))
        end
    end

    verbs(1)

    if intr ~= "yes" then
        verbs(2)
    end

table.insert(val, [=[

|}
</div></div>]=])

    return table.concat(val)
end


return p