17,105
edits
m (Fix HTML unclosed quote error) Tag: Reverted |
(Revert recent changes) Tags: Manual revert Reverted |
||
Line 211: | Line 211: | ||
end | end | ||
return p._getRecipeTable('Crafting', category, columns) | return p._getRecipeTable('Crafting', category, columns) | ||
end | end | ||
Line 238: | Line 229: | ||
local supportedSkills = { | local supportedSkills = { | ||
'Crafting', | 'Crafting', | ||
'Fletching', | 'Fletching', | ||
Line 270: | Line 260: | ||
["Item"] = {["header"] = 'Item\r\n!Name', ["altRepeat"] = true}, | ["Item"] = {["header"] = 'Item\r\n!Name', ["altRepeat"] = true}, | ||
["SkillLevel"] = {["header"] = Icons.Icon({skillName, type='skill', notext=true}) .. ' Level', ["altRepeat"] = false}, | ["SkillLevel"] = {["header"] = Icons.Icon({skillName, type='skill', notext=true}) .. ' Level', ["altRepeat"] = false}, | ||
["SkillXP"] = {["header"] = 'XP', | ["SkillXP"] = {["header"] = 'XP', altRepeat = false}, | ||
["GP"] = {["header"] = 'Value', ["altRepeat"] = true}, | ["GP"] = {["header"] = 'Value', ["altRepeat"] = true}, | ||
["Ingredients"] = {["header"] = 'Ingredients', ["altRepeat"] = true}, | ["Ingredients"] = {["header"] = 'Ingredients', ["altRepeat"] = true}, | ||
["SkillXPSec"] = {["header"] = 'XP/s', ["altRepeat"] = false}, | ["SkillXPSec"] = {["header"] = 'XP/s', ["altRepeat"] = false}, | ||
["GPSec"] = {["header"] = 'GP/s', ["altRepeat"] = true}, | ["GPSec"] = {["header"] = 'GP/s', ["altRepeat"] = true}, | ||
["Description"] = {["header"] = "Description", ["altRepeat"] = true} | ["Description"] = {["header"] = "Description", ["altRepeat"] = true} | ||
} | } | ||
-- Build the table header while we're here | -- Build the table header while we're here | ||
local resultPart | local resultPart = {} | ||
table.insert(resultPart, '{| class="wikitable sortable stickyHeader"\r\n|- class="headerRow-0"') | table.insert(resultPart, '{| class="wikitable sortable stickyHeader"\r\n|- class="headerRow-0"') | ||
for i, colID in ipairs(columnList) do | for i, colID in ipairs(columnList) do | ||
Line 286: | Line 275: | ||
else | else | ||
table.insert(resultPart, '\r\n! ' .. columnDef[colID].header) | table.insert(resultPart, '\r\n! ' .. columnDef[colID].header) | ||
end | end | ||
end | end | ||
Line 362: | Line 346: | ||
local val = math.floor(item.sellsFor) * qty / actionInterval | local val = math.floor(item.sellsFor) * qty / actionInterval | ||
table.insert(resultPart, '\r\n|' .. spanStr .. 'data-sort-value="' .. val .. '"| ' .. Icons.GP(string.format('%.2f', val))) | table.insert(resultPart, '\r\n|' .. spanStr .. 'data-sort-value="' .. val .. '"| ' .. Icons.GP(string.format('%.2f', val))) | ||
elseif colID == 'Description' then | elseif colID == 'Description' then | ||
local descrip = Items._getItemStat(item, 'description') | local descrip = Items._getItemStat(item, 'description') | ||
Line 391: | Line 362: | ||
table.insert(resultPart, '\r\n|}') | table.insert(resultPart, '\r\n|}') | ||
return table.concat(resultPart) | return table.concat(resultPart) | ||
end | end | ||
return p | return p |