View source for Module:Inventory icon
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
p.icon = function( f )
local args = f
if f == mw.getCurrentFrame() then
args = f:getParent().args
end
local file = args[1]
local link = args.link
local title = args.title
local filePrefix,fileName = file:match("(.+):(.+)")
if file:match( '%.gif$' ) or file:match( '%.png$' ) then
if filePrefix == nil then
file = 'Invicon ' .. file
else
file = filePrefix .. 'Invicon ' .. fileName
end
else
000
1:0
Templates used on this page:
Return to Module:Inventory icon.