Anonymous

Module:Skills/Artisan/Sandbox: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 185: Line 185:
local rowTxt = {}
local rowTxt = {}
local tierPot = Items.getItemByID(potionID)
local tierPot = Items.getItemByID(potionID)
local tierrow = html:tag('tr')
-- First row needs to be added to the main row of the rowspan row.
-- The other 3 need to be added to the main table as new rows.
local tierRow = j == 1 and row or html:tag('tr')
tierrow:tag('td'):wikitext(Icons.Icon({tierPot.name, type='item', notext=true}))
tierrow:tag('td'):wikitext(Icons.Icon({tierPot.name, type='item', notext=true}))
      :wikitext('[[' .. tierPot.name .. '|' .. tierSuffix[j] .. ']]')
      :wikitext('[[' .. tierPot.name .. '|' .. tierSuffix[j] .. ']]')
2,875

edits