Module:Album image: Difference between revisions
From The Kristen Barry Archive
Template:Infobox song>MusikAnimal No edit summary |
m 1 revision imported |
(No difference)
|
Latest revision as of 19:43, 29 May 2025
Documentation for this module may be created at Module:Album image/doc
local p = {}
function p._main(title)
if title == nil or title == '' then
return ''
end
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.main(frame)
return p._main(frame.args[1])
end
return p