Module:Album image
Documentation for this module may be created at Module:Album image/doc
local p = {}
function p._albumImage(title)
local cargo = mw.ext.cargo
local results = cargo.query(
'albums',
'cover',
{ where = 'name = "' .. title .. '"' }
)
for r = 1, #results do
local result = results[r]
return result['cover']
end
end
function p.albumImage(frame)
return p._albumImage(frame.args[1])
end
return p