Editing Module:Sandbox/User:Alsang/PotionList
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 113: | Line 113: | ||
-- XP/KP strings, if the requisite data isnt there then display "unknown" |
-- XP/KP strings, if the requisite data isnt there then display "unknown" |
||
if item.hasXP then |
if item.hasXP then |
||
item.xp = tostring(item.xp) -- format to include commas |
|||
item.XP = item.XP -- format to include commas |
|||
else |
else |
||
item.XP = 'Unknown' |
item.XP = 'Unknown' |
||
Line 120: | Line 119: | ||
if item.hasKP then |
if item.hasKP then |
||
item.KP = item.KP .. '%' -- want 1 decimal place |
item.KP = tostring(item.KP) .. '%' -- want 1 decimal place |
||
else |
else |
||
item.KP = 'Unknown' |
item.KP = 'Unknown' |
||
Line 126: | Line 125: | ||
if item.hasXP and item.hasDuration then |
if item.hasXP and item.hasDuration then |
||
item.XPPerHour = item.XPPerHour -- format to include commas |
item.XPPerHour = tostring(item.XPPerHour) -- format to include commas |
||
else |
else |
||
item.XPPerHour = 'Unknown' |
item.XPPerHour = 'Unknown' |
||
Line 132: | Line 131: | ||
if item.hasKP and item.hasDuration then |
if item.hasKP and item.hasDuration then |
||
item.KPPerHour = item.KPPerHour -- want 2 decimal places |
item.KPPerHour = tostring(item.KPPerHour) -- want 2 decimal places |
||
else |
else |
||
item.KPPerHour = 'Unknown' |
item.KPPerHour = 'Unknown' |
||
Line 149: | Line 148: | ||
:tag('tr') |
:tag('tr') |
||
:tag('th') |
:tag('th') |
||
:wikitext(' |
:wikitext('Level') |
||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
Line 181: | Line 180: | ||
:tag('th') |
:tag('th') |
||
:attr{ colspan = '10' } |
:attr{ colspan = '10' } |
||
:wikitext(' |
:wikitext('Profit/XP') |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
:done() |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
:done() |
||
Line 203: | Line 202: | ||
:tag('tr') |
:tag('tr') |
||
:tag('td') |
:tag('td') |
||
:wikitext('[[File:Alchemist small icon.png|15px]] ' .. item.lvl) |
|||
:css{ ['text-align'] = 'center' } |
|||
:wikitext(item.lvl) |
|||
:done() |
:done() |
||
:tag('td') |
:tag('td') |
||
Line 223: | Line 221: | ||
:done() |
:done() |
||
:wikitext(currency_cell(item.profitPerXP,item.hasXP and item.hasProfit)) |
:wikitext(currency_cell(item.profitPerXP,item.hasXP and item.hasProfit)) |
||
:tag('td') |
|||
:wikitext(item.KP) |
|||
:done() |
|||
:tag('td') |
|||
:wikitext(item.KPPerHour) |
|||
:done() |
|||
:done() |
:done() |
||