Module:Inventory slot: Difference between revisions
fix alt text showing in the minetip |
Just changing order of params, putting title last like in Module:SpriteFile fixes it as well |
||
| Line 173: | Line 173: | ||
end | end | ||
altText = altText:gsub( '&[0-9a-fk-or]', '' ) | altText = altText:gsub( '&[0-9a-fk-or]', '' ) | ||
end | end | ||
item:addClass( 'invslot-item-image' ) | item:addClass( 'invslot-item-image' ) | ||
:wikitext( '[[File:', img, '|32x32px|link=', link or '', '|alt=', altText, '|', escapedTitle, ']]' ) | |||
if num and num > 1 and num < 1000 then | if num and num > 1 and num < 1000 then | ||