2,875
edits
No edit summary |
No edit summary |
||
Line 170: | Line 170: | ||
}, 'N/A', nil, ', ') | }, 'N/A', nil, ', ') | ||
html:tag('tr') | local row = html:tag('tr') | ||
row:tag('td'):attr('rowspan', 4):wikitext('[['..potion.name..']]') | |||
row:tag('td'):attr('rowspan', 4):wikitext(level) | |||
:css('text-align', 'center') | |||
row:tag('td'):attr('rowspan', 4):wikitext(Shared.formatnum(baseXP)) | |||
:attr('data-sort-value', baseXP) | |||
:css('text-align', 'right') | |||
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') | ||
tierrow:tag('td'):wikitext(Icons.Icon({tierPot.name, type='item', notext=true})) | |||
:wikitext('[[' .. tierPot.name .. '|' .. tierSuffix[j] .. ']]') | :wikitext('[[' .. tierPot.name .. '|' .. tierSuffix[j] .. ']]') | ||
--tierrow:tag('td'):wikitext(Items.getValueText(tierPot)) | |||
-- :css('text-align', 'right') | |||
-- :attr('data-sort-value', tierPot.sellsFor) | |||
tierrow:tag('td'):wikitext(tierPot.charges) | |||
:css('text-align', 'right') | :css('text-align', 'right') | ||
tierrow:tag('td'):wikitext(p._getPotionDescription(tierPot)) | |||
end | end | ||
end | end |
edits