Anonymous

Module:Equipment/Recommended: Difference between revisions

From Melvor Idle
no edit summary
(Created page with "local p = {} local params = require('Module:Shared/Paramtest') local slots = { { placement = 1, name = 'helm', icon = 'Slot_head', txt = 'Head', link = 'Head slot table' },...")
 
No edit summary
Line 32: Line 32:
local function make_row(slot, data)
local function make_row(slot, data)
local tr = mw.html.create('tr')
local tr = mw.html.create('tr')
tr:tag('td'):wikitext(string.format('[[File:%s.png|%s|link=%s]]', 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
tr:tag('td'):wikitext(v)
tr:tag('td'):wikitext(v)
318

edits