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=frame.args.object
local object2=frame.args.object2
local object3=frame.args.object3
local title=frame.args.title
if object2 then
if object3 then
return tostring(list['songs'][title][object][object2][object3])
else
return tostring(list['songs'][title][object][object2])
end
else
return tostring(list['songs'][title][object])
end
end
return p