Module:Skills/Artisan/Sandbox: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 170: Line 170:
}, 'N/A', nil, ', ')
}, 'N/A', nil, ', ')
html:tag('tr')
local row = html:tag('tr')
    :tag('td'):attr('rowspan', 4):wikitext('[['..potion.name..']]')
row:tag('td'):attr('rowspan', 4):wikitext('[['..potion.name..']]')
:tag('td'):attr('rowspan', 4):wikitext(level)
row:tag('td'):attr('rowspan', 4):wikitext(level)
  :css('text-align', 'center')
:css('text-align', 'center')
:tag('td'):attr('rowspan', 4):wikitext(Shared.formatnum(baseXP))
row:tag('td'):attr('rowspan', 4):wikitext(Shared.formatnum(baseXP))
  :attr('data-sort-value', baseXP)
:attr('data-sort-value', baseXP)
  :css('text-align', 'right')
:css('text-align', 'right')
:tag('td'):attr('rowspan', 4):wikitext(costText)
row:tag('td'):attr('rowspan', 4):wikitext(costText)
   
   
local expIcon = Icons.getExpansionIcon(potion.potionIDs[1])
local expIcon = Icons.getExpansionIcon(potion.potionIDs[1])
Line 185: Line 185:
local rowTxt = {}
local rowTxt = {}
local tierPot = Items.getItemByID(potionID)
local tierPot = Items.getItemByID(potionID)
html:tag('tr')
local tierrow = html:tag('tr')
: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] .. ']]')
--:tag('td'):wikitext(Items.getValueText(tierPot))
--tierrow:tag('td'):wikitext(Items.getValueText(tierPot))
--   :css('text-align', 'right')
--       :css('text-align', 'right')
--   :attr('data-sort-value', tierPot.sellsFor)
--       :attr('data-sort-value', tierPot.sellsFor)
:tag('td'):wikitext(tierPot.charges)
tierrow:tag('td'):wikitext(tierPot.charges)
  :css('text-align', 'right')
  :css('text-align', 'right')
:tag('td'):wikitext(p._getPotionDescription(tierPot))
tierrow:tag('td'):wikitext(p._getPotionDescription(tierPot))
end
end
end
end
2,875

edits