Module:Infobox: Difference between revisions
No edit summary |
No edit summary |
||
| Line 58: | Line 58: | ||
if #invImgCount > 0 then | if #invImgCount > 0 then | ||
table.sort( invImgCount ) | table.sort( invImgCount ) | ||
local grid | local grid | ||
for k, v in ipairs( invImgCount ) do | for k, v in ipairs( invImgCount ) do | ||
local image = args['invimage' .. v] | local image = args['invimage' .. v] | ||
| Line 71: | Line 71: | ||
if image then | if image then | ||
if not grid then | |||
grid = require( 'Module:Grid' ).cell | |||
end | |||
table.insert( invImages, grid{ image, link = 'none' } ) | table.insert( invImages, grid{ image, link = 'none' } ) | ||
end | end | ||