Module:Infobox: Difference between revisions
No edit summary |
don't add empty div |
||
| Line 146: | Line 146: | ||
end | end | ||
table.insert( images, '<div>' .. image .. caption .. '</div>' ) | if image ~= '' or caption ~= '' then | ||
table.insert( images, '<div>' .. image .. caption .. '</div>' ) | |||
end | |||
end | end | ||