Module:ImageGallery: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 21: Line 21:
table.concat(fields, ','), query)
table.concat(fields, ','), query)
local build = '==' .. header .. '==\\n<gallery heights="180px">\\n'
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 .. '\\n'
build = build .. img.file .. '|' .. img.caption .. '\n'
end
end
return build .. '</gallery>'
return build .. '</gallery>\n'
end
end


return p
return p