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