Module:mg-noun/data: Difference between revisions
Jump to navigation
Jump to search
(Created page with "local sub = mw.ustring.sub local gsub = mw.ustring.gsub local match = mw.ustring.match local PAGENAME = mw.title.getCurrentTitle().text local data = {} data["r"] = { params...") |
No edit summary |
||
Line 25: | Line 25: | ||
end | end | ||
}) | }) | ||
return data |
Revision as of 17:11, 5 September 2021
- The following documentation is located at Module:mg-noun/data/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
local sub = mw.ustring.sub
local gsub = mw.ustring.gsub
local match = mw.ustring.match
local PAGENAME = mw.title.getCurrentTitle().text
local data = {}
data["r"] = {
params = {
[1] = {},
},
}
setmetatable(data["r"], {__call = function(self, args, data)
local stem = args[1]; local s1 = sub(stem, 1, -1)
table.insert(data.categories, "Modern Gallaecian r-declension nouns")
data.forms["di_s"] = {stem .. "r"}
data.forms["da_s"] = {s1 .. "re"}
--data.forms["lo_s"] = data.forms["da_s"]
data.forms["di_p"] = {s1 .. "res"}
data.forms["da_p"] = {s1 .. "rú"}
data.forms["lo_p"] = {s1 .. "rui"}
end
})
return data