“模块:Dict”的版本间的差异
来自希灵百科
第20行: | 第20行: | ||
end | end | ||
− | res = res .." < | + | res = res .." <br>" |
end | end | ||
2020年5月9日 (六) 23:10的版本
local p = {} local getArgs = require("Module:Arguments").getArgs local dictionary = mw.loadData("Module:Dict/Data") function p.DictIndex(frame) local DictDate = {} --local SerilNum = {"A","C","D","F","G","H","J"} local SerilNum = {"A","C"} local res = "" for a,SN in pairs(SerilNum) do res = res .. "\n " for b,list in pairs(dictionary[SN]) do res = res .. b .. " " .. list end res = res .." <br>" end return tostring(res) end return p