Module:Songlist Retrieval
可在Module:Songlist Retrieval/doc创建此模块的帮助文档
local p = {}
function p.retrieval(frame)
local list=require("Module:Songlist")
for i=1,250 do
if list['songs'][i]==nil then break end
local s=tostring(list['songs'][i]['title_localized']['en'])
list['songs'][s]=list['songs'][i]
end
local object=tostring(frame.args.object)
local title=tostring(frame.args.title)
local object2=tostring(frame.args.object2)
if object2 then
return tostring(list['songs'][title][object][object2])
else
return tostring(list['songs'][title][object])
end
end
return p