Module:eu-verb/tables

local export = {} local m_utilities = require("Module:utilities") local m_links = require("Module:links") local lang = require("Module:languages").getByCode("eu")

--nor-nori function export.make_table_nornori_complete(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then return "&mdash;" end local ret = {} for key, subform in ipairs(forms) do			if param == "1b" or param == "11b" or param == "17b" or param == "31b" or param == "73b" or param == "89b" or param == "109b" or param == "125b" or 			param == "181b" or param == "191b" or param == "197b" or param == "211b" or param == "217b" or param == "233b" or			param == "361b" or param == "364b" or param == "369b" or param == "372b" or param == "377b" or param == "393b" or param == "413b" or param == "423b" or			param == "429b" or param == "443b" or param == "479b" or param == "465b" or param == "459b" or param == "449b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) elseif param == "37b" or param == "53b" or param == "253b" or param == "269b" or param == "289b" or param == "299b" or param == "305b" or param == "319b" or param == "325b" or param == "341b" or param == "145b" or param == "161b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "nan"})) elseif param == "319bla" or param == "305bla" or param == "299bla" or param == "289bla" or param == "341bla" or param == "325bla" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "nala"})) else table.insert(ret, m_links.full_link({lang = lang, term = subform})) end end return table.concat(ret, " ") end local wikicode = [=[ ― NOR-NORI paradigm {| style="background:#F9F9F9;width:100%;border-collapse:separate;border-spacing:2px;" class="inflection-table" ! colspan="2" rowspan="3" style="width:15%;vertical-align:bottom;" | Mood / Tense ! colspan="7" style="width:70%;" | NOR (absolutive) ! colspan="2" rowspan="3" style="width:15%;vertical-align:bottom" | NORI (dative) ! style="width:10%;" | 1st sg ! style="width:10%;" | 2nd sg inf. ! style="width:10%;" | 3rd sg ! style="width:10%;" | 1st pl ! style="width:10%;" | 2nd sg ! style="width:10%;" | 2nd pl ! style="width:10%;" | 3rd pl ! ni !! hi !! hura !! gu !! zu !! zuek !! haiek ! rowspan="9" style="background:#c0cfe4;width:8.7%;" | indicative ! style="background:#ECECEC;" | present ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | past ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | conditional
 * - style="background:#DEDEDE;"
 * - style="background:#DEDEDE;"
 * - style="background:#ECECEC;"
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|

! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | hyp. cons. ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | past cons. ! style="background:#DEDEDE;height:.25em" colspan="11" | ! rowspan="9" style="background:#e2e4c0;width:8.7%;" | potential2 ! style="background:#ECECEC;" | present
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|

! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | hypothetic ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | past
 * colspan="9"|
 * colspan="9"|

! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | close cond. 1 ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | distal cond. 1
 * colspan="9"|
 * colspan="9"|

! style="background:#DEDEDE;height:.25em" colspan="11" | ! rowspan="5" style="background:#c0e4c0;width:8.7%;" | subjunctive2 ! style="background:#ECECEC;" | present ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | hypothetic ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | past ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#e4d4c0;width:8.7%;" | imperative2 ! style="background:#ECECEC;" | present
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|
 * colspan="9" style="text-align:left" |1. Archaic or dialectal. 2. Forms belong to the reconstructed verb *ezan.
 * } ]=]
 * } ]=]

return mw.ustring.gsub(wikicode, "", repl) end

--nor-nork function export.make_table_nornork(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then if param == "11b" or param == "31b" or param == "227b" or param == "247b" then return "" else return "&mdash;" end end local ret = {} for key, subform in ipairs(forms) do			if param == "11b" or param == "31b" or param == "227b" or param == "247b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) else table.insert(ret, m_links.full_link({lang = lang, term = subform})) end end return table.concat(ret, " ") end local wikicode = [=[ ― NOR-NORK paradigm

return mw.ustring.gsub(wikicode, "", repl) end

function export.make_table_nornork_sing(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then if param == "11b" or param == "31b" or param == "227b" or param == "247b" then return "" else return "&mdash;" end end local ret = {} for key, subform in ipairs(forms) do			if param == "11b" or param == "31b" or param == "227b" or param == "247b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) else table.insert(ret, m_links.full_link({lang = lang, term = subform})) end end return table.concat(ret, " ") end local wikicode = [=[ ― NOR-NORK paradigm

return mw.ustring.gsub(wikicode, "", repl) end

function export.make_table_nornork_imp(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then if param == "11b" or param == "31b" or param == "227b" or param == "247b" then return "" else return "&mdash;" end end local ret = {} for key, subform in ipairs(forms) do			if param == "11b" or param == "31b" or param == "227b" or param == "247b" then if subform == "igorna" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "na"})) else table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) end else table.insert(ret, m_links.full_link({lang = lang, term = subform})) end end return table.concat(ret, " ") end local wikicode = [=[ ― NOR-NORK paradigm

return mw.ustring.gsub(wikicode, "", repl) end

function export.make_table_nornork_eroan(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then if param == "11b" or param == "31b" or param == "227b" or param == "247b" then return "" else return "&mdash;" end end local ret = {} for key, subform in ipairs(forms) do			if param == "11b" or param == "31b" or param == "227b" or param == "247b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) else table.insert(ret, m_links.full_link({lang = lang, term = subform})) end end return table.concat(ret, " ") end local wikicode = [=[ ― NOR-NORK paradigm

return mw.ustring.gsub(wikicode, "", repl) end

function export.make_table_nornork_complete(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then return "&mdash;" end local ret = {} for key, subform in ipairs(forms) do			if param == "1b" or param == "11b" or param == "17b" or param == "31b" or param == "73b" or param == "89b" or param == "109b" or param == "125b" or 			param == "181b" or param == "191b" or param == "197b" or param == "211b" or param == "217b" or param == "233b" or			param == "361b" or param == "364b" or param == "369b" or param == "372b" or param == "377b" or param == "393b" or param == "413b" or param == "423b" or			param == "429b" or param == "443b" or param == "479b" or param == "465b" or param == "459b" or param == "449b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) elseif param == "37b" or param == "53b" or param == "253b" or param == "269b" or param == "289b" or param == "299b" or param == "305b" or param == "319b" or param == "325b" or param == "341b" or param == "145b" or param == "161b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "nan"})) elseif param == "319bla" or param == "305bla" or param == "299bla" or param == "289bla" or param == "341bla" or param == "325bla" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "nala"})) else table.insert(ret, m_links.full_link({lang = lang, term = subform})) end end return table.concat(ret, " ") end local wikicode = [=[ ― NOR-NORK paradigm {| style="background:#F9F9F9;width:100%;border-collapse:separate;border-spacing:2px;" class="inflection-table" ! colspan="2" rowspan="3" style="width:15%;vertical-align:bottom;" | Mood / Tense ! colspan="7" style="width:70%;" | NORK (ergative) ! colspan="2" rowspan="3" style="width:15%;vertical-align:bottom" | NOR (absolutive) ! style="width:10%;" | 1st sg ! style="width:10%;" | 2nd sg inf. ! style="width:10%;" | 3rd sg ! style="width:10%;" | 1st pl ! style="width:10%;" | 2nd sg ! style="width:10%;" | <abbr title="second-person plural">2nd pl ! style="width:10%;" | <abbr title="third-person plural">3rd pl ! nik !! hik !! hark !! guk !! zuk !! zuek !! haiek ! rowspan="11" style="background:#c0cfe4;width:8.7%;" | indicative ! style="background:#ECECEC;" | present ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | past ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | conditional
 * - style="background:#DEDEDE;"
 * - style="background:#DEDEDE;"
 * - style="background:#ECECEC;"
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|

! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | <abbr title="hypothetic consequence">hyp. cons. ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | <abbr title="past consequence">past cons. ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | future1
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|

! style="background:#DEDEDE;height:.25em" colspan="11" | ! rowspan="9" style="background:#e2e4c0;width:8.7%;" | potential2 ! style="background:#ECECEC;" | present ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | hypothetic
 * colspan="9"|
 * colspan="9"|

! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | past ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | <abbr title="close conditional">close cond. 1 ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | <abbr title="distal conditional">distal cond. 1
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|

! style="background:#DEDEDE;height:.25em" colspan="11" | ! rowspan="5" style="background:#c0e4c0;width:8.7%;" | subjunctive2 ! style="background:#ECECEC;" | present ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | hypothetic ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#ECECEC;" | past ! style="background:#DEDEDE;height:.25em" colspan="11" | ! style="background:#e4d4c0;width:8.7%;" | imperative2 ! style="background:#ECECEC;" | present
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|
 * colspan="9"|
 * colspan="9" style="text-align:left" |1. Archaic or dialectal. 2. Forms belong to the reconstructed verb *ezan.
 * } ]=]
 * } ]=]

return mw.ustring.gsub(wikicode, "", repl) end

function export.make_table_nornork_eduki(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then return "&mdash;" end local ret = {} for key, subform in ipairs(forms) do			if param == "1b" or param == "11b" or param == "17b" or param == "31b" or param == "73b" or param == "89b" or param == "109b" or param == "125b" or param == "364b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) elseif param == "37b" or param == "53b" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "nan"})) elseif param == "372b" then if subform == "euzkan" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) elseif subform == "NA" then table.insert(ret, "") end else table.insert(ret, m_links.full_link({lang = lang, term = subform})) end end return table.concat(ret, " ") end local wikicode = [=[ ― NOR-NORK paradigm

return mw.ustring.gsub(wikicode, "", repl) end

--nor-nori-nork function export.make_table_nornorinork_imp(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then if param == param == "i1sb" or param == "i1pb" or param == "i4sb" or param == "i4pb" or param == "i7sb" or param == "i7pb" or param == "i10sb" or param == "i10pb" then return "" else return "&mdash;" end end local ret = {} for key, subform in ipairs(forms) do			if param == "i1sb" or param == "i1pb" or param == "i4sb" or param == "i4pb" or param == "i7sb" or param == "i7pb" or param == "i10sb" or param == "i10pb" then table.insert(ret, "/" .. m_links.full_link({lang = lang, term = subform, alt = "n"})) else table.insert(ret, m_links.full_link({lang = lang, term = subform})) end end return table.concat(ret, " ") end

local wikicode = [=[ ― NOR-NORI-NORK paradigm

return mw.ustring.gsub(wikicode, "", repl) end

function export.make_table_nor_izan_allocutive(data) local function repl(param) if param == "info" then return mw.getContentLanguage:ucfirst(data.info or "") end local forms = data.forms[param] if not forms then return "&mdash;" end local ret = {} for key, subform in ipairs(forms) do			table.insert(ret, m_links.full_link({lang = lang, term = subform})) end return table.concat(ret, " ") end local wikicode = [==[ ― NOR allocutive forms return mw.ustring.gsub(wikicode, "", repl) end

return export