Anonymous

Module:Equipment/Recommended: Difference between revisions

From Melvor Idle
m
import icons module
m (images are not rawtext)
m (import icons module)
Line 5: Line 5:


local params = require('Module:Shared/Paramtest')
local params = require('Module:Shared/Paramtest')
local icons = require("Module:Icons")


local slots = {
local slots = {
Line 37: Line 38:
tr:tag('td'):wikitext(string.format('[[File:%s.png|%s|link=%s|36px]]', slot.icon, slot.txt, slot.link))
tr:tag('td'):wikitext(string.format('[[File:%s.png|%s|link=%s|36px]]', slot.icon, slot.txt, slot.link))
for _, v in ipairs(data) do
for _, v in ipairs(data) do
local itemicon = p.Icon({v, img=v, type='item'})
local itemicon = icons.Icon({v, img=v, type='item'})
tr:tag('td'):wikitext(itemicon)
tr:tag('td'):wikitext(itemicon)
end
end
892

edits