Module:siwa-noun/data: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Replaced content with "local data = {} local sub = mw.ustring.sub data["a"] = { params = { [1] = {}, }, } setmetatable(data["a"], {__call = function(self, args, data) local stem = args[1]...") Tag: Replaced |
||
Line 3: | Line 3: | ||
local sub = mw.ustring.sub | local sub = mw.ustring.sub | ||
data[" | data["a"] = { | ||
params = { | params = { | ||
[1] = {}, | [1] = {}, | ||
}, | }, | ||
} | } | ||
setmetatable(data[" | setmetatable(data["a"], {__call = function(self, args, data) | ||
local stem = args[1] | local stem = args[1] | ||
table.insert(data.categories, "Siwa inanimate nouns") | table.insert(data.categories, "Siwa inanimate nouns") | ||
table.insert(data.categories, "Siwa a-declension nouns") | table.insert(data.categories, "Siwa a-declension nouns") | ||
data.forms["unm"] = {stem} | |||
data.forms[" | |||
end | end | ||
}) | }) |
Revision as of 18:33, 19 July 2021
- The following documentation is located at Module:siwa-noun/data/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
local data = {}
local sub = mw.ustring.sub
data["a"] = {
params = {
[1] = {},
},
}
setmetatable(data["a"], {__call = function(self, args, data)
local stem = args[1]
table.insert(data.categories, "Siwa inanimate nouns")
table.insert(data.categories, "Siwa a-declension nouns")
data.forms["unm"] = {stem}
end
})
return data