More actions
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
local i18n = { | local i18n = { | ||
filename = 'Invicon $1', | filename = 'https://minecraft.wiki/images/Invicon $1', | ||
legacyFilename = 'Grid $1.png', | legacyFilename = 'Grid $1.png', | ||
modLink = 'Mods/$1/$2', | modLink = 'Mods/$1/$2', | ||
Line 114: | Line 114: | ||
else | else | ||
-- Fall back to an individual image if the sprite is lacking | -- Fall back to an individual image if the sprite is lacking | ||
img = i18n.filename:gsub( '%$1', name .. '.png' ) | img = i18n.filename:gsub( '%$1', name .. '.png' ):gsub( ' ', '%20' ) | ||
end | end | ||
Line 176: | Line 176: | ||
end | end | ||
item:addClass( 'invslot-item-image' ) | item:addClass( 'invslot-item-image' ) | ||
:wikitext( '[[File:', img, '|32x32px|link=', link or '', '|alt=', altText, '|', escapedTitle, ']]' ) | :wikitext( img ) | ||
-- :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 |