Module:Inventory icon: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Manual revert
 
(6 intermediate revisions by the same user not shown)
Line 11: Line 11:
local title = args.title
local title = args.title
local filePrefix,fileName = s: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
if filePrefix == nil then
Line 22: Line 22:
file = 'Invicon ' .. file .. '.png'
file = 'Invicon ' .. file .. '.png'
else
else
file = filePrefix 'Invicon ' .. fileName .. '.png'
file = filePrefix .. 'Invicon ' .. fileName .. '.png'
end
end
end
end