跳到内容

Module:沙盒/Economy666/SongCollectionMulti:修订间差异

无编辑摘要
 
无编辑摘要
第37行: 第37行:


local sectionCode = {unknown = 0, free = 1, archive = 2, mainstory = 3, sidestory = 4, collab = 5, single = 6}
local sectionCode = {unknown = 0, free = 1, archive = 2, mainstory = 3, sidestory = 4, collab = 5, single = 6}
local function main(plat, args, durArgs)
local function main(args, durArgs)
local view = {}
local view = {}
local plat = 'mobile'
-- 不对song下述提及的字段存在性做检验
-- 不对song下述提及的字段存在性做检验
for _, song in ipairs(mad.listOf('songs', plat)) do
for _, song in ipairs(mad.listOf('songs', plat)) do
第89行: 第90行:
end
end


function p.mobile(frame)
function p.multi(frame)
for record in mw.text.gsplit(frame.args._ver_, '%s') do
for record in mw.text.gsplit(frame.args._ver_, '%s') do
local date, name = record:match '(%d+):(.*)'
local date, name = record:match '(%d+):(.*)'
第95行: 第96行:
table.insert(versionNames, name)
table.insert(versionNames, name)
end
end
return main('mobile', frame:getParent().args, frame.args)
return main(frame:getParent().args, frame.args)
end
end
function p.ns(frame) return main('ns', frame:getParent().args, frame.args) end


return p
return p
685

个编辑