Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Module:Inventory slot

From Mine in Abyss
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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
Please note that all contributions to Mine in Abyss may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Mine in Abyss:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)