Module:ms-derivations/affix-summary
Appearance
- The following documentation is located at Module:ms-derivations/affix-summary/documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local export = {}
local m_ms_derived = require("Module:ms-derivations").affix_table
local special_ids = {
[11] = "(''noun-producing'')",
[111] = "(''verb-producing'')",
[411] = "(''adverb-producing'')",
}
function export.show(frame)
local result, ids = {}, {}
local affix_table = m_ms_derived()
for id, properties in pairs(affix_table) do
table.insert(ids, id)
end
table.sort(ids)
for _, id in ipairs(ids) do
table.insert(result, special_ids[id] or nil)
data = affix_table[id]
table.insert(result, "* " .. id .. ": ''[[" .. data[2] .. "#Malay|" .. data[1] .. "]]'' <small>[" .. data[3] .. "] (" .. data[4] .. ")</small>")
end
return table.concat(result, "\n")
end
return export