Editing Module:Sandbox/User:Alsang/PotionList

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 17: Line 17:
'?Uses item.Uses item #- = reagents',
'?Uses item.Uses item #- = reagents',
'?Value = sell',
'?Value = sell',
'?Activity XP = brewXP',
'?Recipe XP = brewXP',
'?Uses item.Activity XP = prepXP',
'?Uses item.Recipe XP = prepXP',
'?Activity KP = brewKP',
'?Recipe KP = brewKP',
'?Uses item.Activity KP = prepKP',
'?Uses item.Recipe KP = prepKP',
'?Activity duration = brewDuration',
'?Recipe duration = brewDuration',
'?Uses item.Activity duration = prepDuration',
'?Uses item.Recipe duration = prepDuration',
'sort = Profession Level A'
'sort = Profession Level A'
}
}
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 = lang:formatNum(item.xp) -- format to include commas
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('[[File:Alchemist small icon.png|15px]] Level')
:wikitext('Level')
:done()
:done()
:tag('th')
:tag('th')
Line 181: Line 180:
:tag('th')
:tag('th')
:attr{ colspan = '10' }
:attr{ colspan = '10' }
:wikitext('Coins/XP')
:wikitext('Profit/XP')
:done()
:tag('th')
:wikitext('KP')
:done()
:tag('th')
:wikitext('KP/hr')
:done()
:done()
--:tag('th')
-- :wikitext('KP')
--:done()
--:tag('th')
-- :wikitext('KP/hr')
--: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 217: Line 215:
:wikitext(currency_cell(item.profitPerHour,item.hasProfit and item.hasDuration))
:wikitext(currency_cell(item.profitPerHour,item.hasProfit and item.hasDuration))
:tag('td')
:tag('td')
:wikitext(item.XP)
:wikitext(item.XP,item.hasXP)
: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')
:tag('td')
-- :wikitext(item.KP)
:wikitext(item.KP)
--:done()
:done()
--:tag('td')
:tag('td')
-- :wikitext(item.KPPerHour)
:wikitext(item.KPPerHour)
--:done()
:done()
:done()
:done()
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template