Module:Sandbox/User:Alsang/PotionList: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(mostly done, minor formatting left (commas in numbes, decimal places, zero currency replacement)) |
(remove KP columns, change alch icon) |
||
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 = |
--item.xp = lang:formatNum(item.xp) -- format to include commas |
||
item.XP = item.XP -- format to include commas |
|||
else |
else |
||
item.XP = 'Unknown' |
item.XP = 'Unknown' |
||
Line 119: | Line 120: | ||
if item.hasKP then |
if item.hasKP then |
||
item.KP = |
item.KP = item.KP .. '%' -- want 1 decimal place |
||
else |
else |
||
item.KP = 'Unknown' |
item.KP = 'Unknown' |
||
Line 125: | Line 126: | ||
if item.hasXP and item.hasDuration then |
if item.hasXP and item.hasDuration then |
||
item.XPPerHour = |
item.XPPerHour = item.XPPerHour -- format to include commas |
||
else |
else |
||
item.XPPerHour = 'Unknown' |
item.XPPerHour = 'Unknown' |
||
Line 131: | Line 132: | ||
if item.hasKP and item.hasDuration then |
if item.hasKP and item.hasDuration then |
||
item.KPPerHour = |
item.KPPerHour = item.KPPerHour -- want 2 decimal places |
||
else |
else |
||
item.KPPerHour = 'Unknown' |
item.KPPerHour = 'Unknown' |
||
Line 148: | Line 149: | ||
:tag('tr') |
:tag('tr') |
||
:tag('th') |
:tag('th') |
||
:wikitext('Level') |
:wikitext('[[File:Alchemist small icon.png|15px]] Level') |
||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
Line 180: | Line 181: | ||
:tag('th') |
:tag('th') |
||
:attr{ colspan = '10' } |
:attr{ colspan = '10' } |
||
:wikitext(' |
:wikitext('Coins/XP') |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
:done() |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
:done() |
||
Line 202: | Line 203: | ||
:tag('tr') |
:tag('tr') |
||
:tag('td') |
:tag('td') |
||
:css{ ['text-align'] = 'center' } |
|||
:wikitext('[[File:Alchemist small icon.png|15px]] ' .. item.lvl) |
|||
:wikitext(item.lvl) |
|||
:done() |
:done() |
||
:tag('td') |
:tag('td') |
||
Line 221: | Line 223: | ||
:done() |
:done() |
||
:wikitext(currency_cell(item.profitPerXP,item.hasXP and item.hasProfit)) |
:wikitext(currency_cell(item.profitPerXP,item.hasXP and item.hasProfit)) |
||
:tag('td') |
--:tag('td') |
||
:wikitext(item.KP) |
-- :wikitext(item.KP) |
||
:done() |
--:done() |
||
:tag('td') |
--:tag('td') |
||
:wikitext(item.KPPerHour) |
-- :wikitext(item.KPPerHour) |
||
:done() |
--:done() |
||
:done() |
:done() |
||