VOOZH about

URL: https://minecraft.wiki/w/Module:Inventory_icon

⇱ Module:Inventory icon – Minecraft Wiki


Module:Inventory icon

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]Jump to code ↴

Usage

Used by {{Inventory icon}}.

[view] [edit] [history] [purge]The above documentation is transcluded from Module:Inventory icon/doc.
localp={}
p.icon=function(f)
localargs=f
iff==mw.getCurrentFrame()then
args=f:getParent().args
end
localfile=args[1]
locallink=args.link
localtitle=args.title
iffile:match('%.gif$')orfile:match('%.png$')orfile:match('%.webp$')then
file='Invicon '..file
else
file='Invicon '..file..'.png'
end
return'[[File:'..file..'|32x32px|link='..(linkor'')..'|class=pixel-image|'..(titleor'')..']]'
end
returnp
Retrieved from "https://minecraft.wiki/w/Module:Inventory_icon?oldid=3007568"

Navigation menu