Anonymous user
Module:Inventory slot: Difference between revisions
m
no edit summary
imported>Ttv pedro270707 m (Added padding to remove empty space between items and removed page existence check) |
imported>Ttv pedro270707 mNo edit summary |
||
Line 110: | Line 110: | ||
if subitem:match( '\.gif$' ) or subitem:match( '\.png$' ) then | if subitem:match( '\.gif$' ) or subitem:match( '\.png$' ) then | ||
if link then | if link then | ||
slot:wikitext( "<span class=\"sprite pixelated\">[[" .. subitem .. "|160px|link=" .. link .. "]]</span>" ) | slot:wikitext( "<span class=\"sprite pixelated\">[[File:" .. subitem .. "|160px|link=" .. link .. "]]</span>" ) | ||
else | else | ||
slot:wikitext( "<span class=\"sprite pixelated\">[[File:" .. subitem .. "|160px|link=]]</span>" ) | slot:wikitext( "<span class=\"sprite pixelated\">[[File:" .. subitem .. "|160px|link=]]</span>" ) |