Anonymous user
Module:ItemToImageMap: Difference between revisions
no edit summary
imported>Ttv pedro270707 mNo edit summary |
imported>SunSeeker02 No edit summary |
||
| (47 intermediate revisions by 3 users not shown) | |||
| Line 39: | Line 39: | ||
["Steel Axe"] = "File:Steel Axe.png", | ["Steel Axe"] = "File:Steel Axe.png", | ||
["Steel Shovel"] = "File:Steel Shovel.png", | ["Steel Shovel"] = "File:Steel Shovel.png", | ||
["Steel Hoe"] = "File:Steel Hoe.png" | ["Steel Hoe"] = "File:Steel Hoe.png", | ||
["Block of Quartz"] = "File:Block of Quartz (item).png", | |||
["Oak Log"] = "File:Grid Oak Log.png", | |||
["Block of Steel"] = "File:Grid Block of Steel.png", | |||
["Bow"] = "File:Grid Bow.png", | |||
["Block of Olivine"] = "File:Grid Block of Olivine.png", | |||
["Tinted Glass"] = "File:Tinted Glass.png", | |||
["Glass"] = "File:GlassMC.png", | |||
["Nether Coal Ore"] = "File:Nether Coal grid.png", | |||
["Block of Nether Coal"] = "File:Block of Nether Coal Render 1.7.6.1.png", | |||
["Blast Furnace"] = "File:Grid Blast Furnace.png", | |||
["Iron Ingot"] = "File:Iron Ingot.png", | |||
["Cobblestone"] = "File:Cobblestone.png", | |||
["Cobbled Basalt"] = "File:Cobbled Basalt Block.png", | |||
["Bed"] = "File:Bed.png", | |||
["Trommel"] = "File:Trommel.png", | |||
["Spike Trap"] = "File:Spike Trap.png" | |||
} | } | ||
if map[key] == nil then | if map[key] == nil then | ||
return "<strong class=\"error\">Item not found: " .. args.key .."</ | return "<strong class=\"error\">Item not found: " .. args.key .."</strong>" | ||
else | else | ||
return "<span class=\"pixelated sprite\" style=\"width:" .. width .. "px; height:" .. height .. ";\">[[" .. map[key] .. "|link=" .. link .. "]]</span>" | return "<span class=\"pixelated sprite\" style=\"width:" .. width .. "px; height:" .. height .. "px;\">[[" .. map[key] .. "|link=" .. link .. "]]</span>" | ||
end | end | ||
end | end | ||
return p | return p | ||