Module:Inventory slot: Difference between revisions

m
Image now does not link to its page
imported>Ttv pedro270707
(Added animated items)
imported>Ttv pedro270707
m (Image now does not link to its page)
Line 58: Line 58:
if subitem:match( '\.gif$' ) or subitem:match( '\.png$' ) then
if subitem:match( '\.gif$' ) or subitem:match( '\.png$' ) then
slot:wikitext( "[[File:" .. subitem .. "|32px]]" )
slot:wikitext( "[[File:" .. subitem .. "|32px|link=]]" )
else
else
slot:wikitext( sprite( { data = "InvSprite", id = subvalue } ) )
slot:wikitext( sprite( { data = "InvSprite", id = subvalue } ) )