Module:Sandbox

local p = {}

function p.main( frame ) local args = frame:getParent.args local i = 0 local items = {} while true do		i = i + 1 local name = ( 'invimage%s' ):format( i == 1 and '' or i ) -- 1 is just "invimage", not "invimage1" local parameter = args[ name ] if not parameter then break end items[ #items + 1 ] = frame:expandTemplate{ title = 'Inventory slot', args = { parameter, link = 'none' } }	end return table.concat( items, '' ) end

return p