Module:Inventory icon: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 10: Line 10:
local link = args.link
local link = args.link
local title = args.title
local title = args.title
-- local filePrefix,fileName = file:match("(.+):(.+)")
-- if file:match( '%.gif$' ) or file:match( '%.png$' ) then
-- file = filePrefix .. 'Invicon ' .. fileName
-- else
-- file = filePrefix .. 'Invicon ' .. fileName .. '.png'
-- end
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
file = filePrefix .. 'Invicon ' .. fileName
if filePrefix == nil then
file = 'Invicon ' .. file
else
file = filePrefix .. 'Invicon ' .. fileName
end
else
else
file = filePrefix .. 'Invicon ' .. fileName .. '.png'
if filePrefix == nil then
end
file = 'Invicon ' .. file .. '.png'
else
-- local filePrefix,fileName = file:match("(.+):(.+)")
file = filePrefix .. 'Invicon ' .. fileName .. '.png'
-- if file:match( '%.gif$' ) or file:match( '%.png$' ) then
end
-- if filePrefix == nil then
end
-- 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