5,478
edits
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
local images = cargo.query('Gallery_Image', | local images = cargo.query('Gallery_Image', | ||
table.concat(fields, ','), query) | table.concat(fields, ','), query) | ||
if #images == 0 then | |||
return '' | |||
end | |||
local wikitext = '==' .. header .. '==\n' | local wikitext = '==' .. header .. '==\n' |