182
edits
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
local export = {} | local export = {} | ||
local lang = require("Module:languages").getByCode("ibe-pro") | |||
Line 49: | Line 49: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local data = {forms = {}, info = "feminine ā-stem", categories = " | local data = {forms = {}, info = "feminine ā-stem", categories = {lang:getCanonicalName() .. " ā-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "ā"} | data.forms["nom_sg"] = {args[1] .. "ā"} | ||
Line 76: | Line 76: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 90: | Line 90: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local data = {forms = {}, info = "masculine/feminine/neuter consonant stem", categories = " | local data = {forms = {}, info = "masculine/feminine/neuter consonant stem", categories = {lang:getCanonicalName() .. " consonant stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "s"} | data.forms["nom_sg"] = {args[1] .. "s"} | ||
Line 117: | Line 117: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 131: | Line 131: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local data = {forms = {}, info = "masculine/feminine i-stem", categories = " | local data = {forms = {}, info = "masculine/feminine i-stem", categories = {lang:getCanonicalName() .. " i-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "is"} | data.forms["nom_sg"] = {args[1] .. "is"} | ||
Line 158: | Line 158: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 172: | Line 172: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local data = {forms = {}, info = "neuter i-stem", categories = " | local data = {forms = {}, info = "neuter i-stem", categories = {lang:getCanonicalName() .. " i-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1]} | data.forms["nom_sg"] = {args[1]} | ||
Line 199: | Line 199: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 214: | Line 214: | ||
-- local delabial = mw.ustring.gsub(args[1], "ʷ$", "") | -- local delabial = mw.ustring.gsub(args[1], "ʷ$", "") | ||
local data = {forms = {}, info = "masculine/feminine n-stem", categories = " | local data = {forms = {}, info = "masculine/feminine n-stem", categories = {lang:getCanonicalName() .. " n-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "ō"} | data.forms["nom_sg"] = {args[1] .. "ō"} | ||
Line 241: | Line 241: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 255: | Line 255: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local data = {forms = {}, info = "neuter n-stem", categories = " | local data = {forms = {}, info = "neuter n-stem", categories = {lang:getCanonicalName() .. " n-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "an"} | data.forms["nom_sg"] = {args[1] .. "an"} | ||
Line 282: | Line 282: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 297: | Line 297: | ||
-- local delabial = mw.ustring.gsub(args[1], "ʷ$", "") | -- local delabial = mw.ustring.gsub(args[1], "ʷ$", "") | ||
local data = {forms = {}, info = "masculine o-stem", categories = " | local data = {forms = {}, info = "masculine o-stem", categories = {lang:getCanonicalName() .. " o-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "os"} | data.forms["nom_sg"] = {args[1] .. "os"} | ||
Line 323: | Line 323: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories, | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 338: | Line 338: | ||
-- local delabial = mw.ustring.gsub(args[1], "ʷ$", "") | -- local delabial = mw.ustring.gsub(args[1], "ʷ$", "") | ||
local data = {forms = {}, info = "neuter o-stem", categories = " | local data = {forms = {}, info = "neuter o-stem", categories = {lang:getCanonicalName() .. " o-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "om"} | data.forms["nom_sg"] = {args[1] .. "om"} | ||
Line 365: | Line 365: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 379: | Line 379: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local data = {forms = {}, info = "masculine/feminine/neuter r-stem", categories = " | local data = {forms = {}, info = "masculine/feminine/neuter r-stem", categories = {lang:getCanonicalName() .. " r-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "er"} | data.forms["nom_sg"] = {args[1] .. "er"} | ||
Line 406: | Line 406: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 420: | Line 420: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local data = {forms = {}, info = "masculine/feminine u-stem", categories = " | local data = {forms = {}, info = "masculine/feminine u-stem", categories = {lang:getCanonicalName() .. " u-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "us"} | data.forms["nom_sg"] = {args[1] .. "us"} | ||
Line 447: | Line 447: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories) | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 461: | Line 461: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local data = {forms = {}, info = "neuter u-stem", categories = " | local data = {forms = {}, info = "neuter u-stem", categories = {lang:getCanonicalName() .. " u-stem nouns"}} | ||
data.forms["nom_sg"] = {args[1] .. "u"} | data.forms["nom_sg"] = {args[1] .. "u"} | ||
Line 488: | Line 488: | ||
postprocess(args, data) | postprocess(args, data) | ||
return make_table(data) .. m_utilities.format_categories(data.categories, | return make_table(data) .. m_utilities.format_categories(data.categories, lang) | ||
end | end | ||
Line 527: | Line 527: | ||
for key, subform in ipairs(form) do | for key, subform in ipairs(form) do | ||
table.insert(ret, m_links.full_link({lang = | table.insert(ret, m_links.full_link({lang = lang, alt = "*" .. subform})) | ||
end | end | ||
edits