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)
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