模組:Ms-derivations/affix-summary
外观
- 下列說明文檔位於Module:Ms-derivations/affix-summary/doc。[編輯]
- 相關連結:根頁面 • 根頁面的子頁面 • 本頁面的子頁面 • 链入 • 嵌入包含 • 測試用例 • 沙盒
local export = {}
local m_ms_derived = require("Module:ms-derivations").affix_table
local special_ids = {
[11] = "(構成名詞)",
[111] = "(構成動詞)",
[411] = "(構成副詞)",
}
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] .. "#馬來語|" .. data[1] .. "]]''<small>[" .. data[3] .. "](" .. data[4] .. ")</small>")
end
return table.concat(result, "\n")
end
return export