模块说明
本模块数据存放在 模块:Dict/Data 当中,主要用于模板:可搬运目录
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"}
--local SerilNum = {"A","C"}
local res = ""
local N = 0
local Table_Begin = '{| width="100%" <br>'
local Table_End = "\n|}"
--res = res .. Table_Begin
for a,SN in pairs(SerilNum) do
res = res .. " "
for b,list in pairs(dictionary[SN]) do
res = res .. b .. " [[" .. list .."]]<br> "
--[[ N = N+1
if N == 5 then
res = res .." <br>"
end]]
end
res = res .." <br>"
end
return tostring(res)
end
return p