Module:ImageGallery: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
table.concat(fields, ','), query) | table.concat(fields, ','), query) | ||
local build = '==' .. header .. '== | local build = '==' .. header .. '==\n<gallery heights="180px">\n' | ||
for _, img in ipairs(images) do | for _, img in ipairs(images) do | ||
build = build .. img.file .. '|' .. img.caption .. ' | build = build .. img.file .. '|' .. img.caption .. '\n' | ||
end | end | ||
return build .. '</gallery>' | return build .. '</gallery>\n' | ||
end | end | ||
return p | return p |