Module:Inventory icon: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 17: Line 17:
file = filePrefix 'Invicon ' .. fileName .. '.png'
file = filePrefix 'Invicon ' .. fileName .. '.png'
end
end
-- if file:match( '%.gif$' ) or file:match( '%.png$' ) then
-- file = 'Invicon ' .. file
-- else
-- file = 'Invicon ' .. file .. '.png'
-- end
return '[[File:' .. file .. '|32x32px|link=' .. ( link or '' ) .. '|' .. ( title or '' ) .. '|class=pixel-image]]'
return '[[File:' .. file .. '|32x32px|link=' .. ( link or '' ) .. '|' .. ( title or '' ) .. '|class=pixel-image]]'
end
end


return p
return p