Module:Inventory icon: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Undo revision 5938 by Diamondback88 (talk))
Tag: Undo
No edit summary
Tag: Reverted
Line 13: Line 13:
local filePrefix,fileName = file:match("(.+):(.+)")
local filePrefix,fileName = file:match("(.+):(.+)")
if file:match( '%.gif$' ) or file:match( '%.png$' ) then
if file:match( '%.gif$' ) or file:match( '%.png$' ) then
if filePrefix == nil then
file = filePrefix .. 'Invicon ' .. fileName
file = 'Invicon ' .. file
else
file = filePrefix .. 'Invicon ' .. fileName
end
else
else
if filePrefix == nil then
file = filePrefix .. 'Invicon ' .. fileName .. '.png'
file = 'Invicon ' .. file .. '.png'
end
else
file = filePrefix .. 'Invicon ' .. fileName .. '.png'
-- local filePrefix,fileName = file:match("(.+):(.+)")
end
-- if file:match( '%.gif$' ) or file:match( '%.png$' ) then
end
-- if filePrefix == nil then
-- file = 'Invicon ' .. file
-- else
-- file = filePrefix .. 'Invicon ' .. fileName
-- end
-- else
-- if filePrefix == nil then
-- file = 'Invicon ' .. file .. '.png'
-- else
-- file = filePrefix .. 'Invicon ' .. fileName .. '.png'
-- end
-- end
-- if file:match( '%.gif$' ) or file:match( '%.png$' ) then
-- if file:match( '%.gif$' ) or file:match( '%.png$' ) then

Navigation menu