Module:Sandbox/User:Alsang/NodeDescriptionChecker: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(figuring out queries for different crafting skills, for active and passive tables)
(set up table for leatherworker specifically)
Line 17: Line 17:
-- query types that include non-recipe passive activities behave weird and need to be fixed
-- query types that include non-recipe passive activities behave weird and need to be fixed
local query = {
local query = {
'[[-Sold item.Sold by::Head Chef (shop)]]', -- chef both active and passive (hard to separate, also mixes in fishing passive subrecipes)
--'[[Uses facility::One Handed Range (bonewright)||One Handed Melee Workbench (bonewright)||Two Handed Range Workbench (bonewright)||Two Handed Melee Workbench (bonewright)||Shield Vice (bonewright)]]', -- bonewright active
--'[[Uses facility::One Handed Range (bonewright)||One Handed Melee Workbench (bonewright)||Two Handed Range Workbench (bonewright)||Two Handed Melee Workbench (bonewright)||Shield Vice (bonewright)]]', -- bonewright active
--'[[Uses facility::Knickknacks workbench]] OR [[Variant of::Divination||Sabertooth Cat Skeleton||Wooly Mammoth Skeleton||Triceratops Skeleton||T-Rex Skeleton||Wendigo Skeleton||Bonemeal Cement]]', -- bonewright passive
--'[[Uses facility::Knickknacks workbench]] OR [[Variant of::Divination||Sabertooth Cat Skeleton||Wooly Mammoth Skeleton||Triceratops Skeleton||T-Rex Skeleton||Wendigo Skeleton||Bonemeal Cement]]', -- bonewright passive
Line 24: Line 23:
--'[[Uses facility::Goblin Forge||Gnome Forge (skill node)]]', -- blacksmith active
--'[[Uses facility::Goblin Forge||Gnome Forge (skill node)]]', -- blacksmith active
--'[[Uses facility::Jewelry Bench]]', -- blacksmith passive, no non-recipe
--'[[Uses facility::Jewelry Bench]]', -- blacksmith passive, no non-recipe
--'[[-Sold item.Sold by::Leather stall]][[Recipe JSON::~*]]', -- leatherworker active, the stall sells scraps and we need to ignore those
'[[-Sold item.Sold by::Leather stall]][[Recipe JSON::~*]]', -- leatherworker active, the stall sells scraps and we need to ignore those
--'[[-Sold item.Sold by::Leather Goods]] OR [[Variant of::Upholstery]]', -- leatherworker passive, but the Upholstery activities dont have pages yet
--'[[-Sold item.Sold by::Leather Goods]] OR [[Variant of::Upholstery]]', -- leatherworker passive, but the Upholstery activities dont have pages yet
'?Uses facility #- = facility',
'?Uses facility #- = facility',
Line 184: Line 183:
:tag('tr')
:tag('tr')
:tag('th')
:tag('th')
:wikitext('[[File:Alchemist small icon.png|15px]] Level')
:wikitext('[[File:Leatherworker small icon.png|15px]] Level')
:done()
:done()
:tag('th')
:tag('th')
Line 208: Line 207:
:attr{ colspan = '10' }
:attr{ colspan = '10' }
:wikitext('Profit/hr')
:wikitext('Profit/hr')
:done()
:tag('th')
:wikitext('[[File:Merchant_small_icon.png|18px]] level for<br>discount')
:done()
:tag('th')
:attr{ colspan = '10' }
:wikitext('Profit/hr<br>with [[File:Merchant_small_icon.png|18px]]')
:done()
:done()
:tag('th')
:tag('th')
Line 257: Line 263:
for i, _ in ipairs(item.reagents) do
for i, _ in ipairs(item.reagents) do
reagentCell:wikitext(item.reagents[i].quantity .. '&times; [[File:' .. item.reagents[i].name .. '.png|18px|link=' .. item.reagents[i].name .. ']]' .. '[[' .. item.reagents[i].name .. ']]<br>')
reagentCell:wikitext(item.reagents[i].quantity .. '&times; [[File:' .. item.reagents[i].name .. '.png|30px|link=' .. item.reagents[i].name .. ']]' .. '[[' .. item.reagents[i].name .. ']]<br>')
end
end
Line 274: Line 280:
:node(currency_cell(item.profit))
:node(currency_cell(item.profit))
:node(currency_cell(item.profitPerHour))
:tag('td')
:css{ ['text-align'] = 'center' }
:wikitext('???')
:done()
:node(currency_cell(item.profitPerHour))
:node(currency_cell(item.profitPerHour))