Module:Infobox: Difference between revisions
Remove 0th edit section. Despite the edit links already all over the page, this one in particular seems to be an idiot magnet. It also didn't work for the few infoboxes that weren't in the 0th section. |
Add invimage dividers |
||
| Line 73: | Line 73: | ||
end | end | ||
if image then | if image == '----' then | ||
table.insert( '</div><div class="infobox-invimages">' ) | |||
elseif image then | |||
if not grid then | if not grid then | ||
grid = require( 'Module:Grid' ).cell | grid = require( 'Module:Grid' ).cell | ||
| Line 81: | Line 83: | ||
end | end | ||
if #invImages > 0 then | if grid and #invImages > 0 then | ||
invImages = '<div class="infobox-invimages">' .. table.concat( invImages, '' ) .. '</div>' | invImages = '<div class="infobox-invimages">' .. table.concat( invImages, '' ) .. '</div>' | ||
else | else | ||