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

set up table for leatherworker specifically
(figuring out queries for different crafting skills, for active and passive tables)
(set up table for leatherworker specifically)
Line 17:
-- query types that include non-recipe passive activities behave weird and need to be fixed
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::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 ⟶ 23:
--'[[Uses facility::Goblin Forge||Gnome Forge (skill node)]]', -- blacksmith active
--'[[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 Goods]] OR [[Variant of::Upholstery]]', -- leatherworker passive, but the Upholstery activities dont have pages yet
'?Uses facility #- = facility',
Line 184 ⟶ 183:
:tag('tr')
:tag('th')
:wikitext('[[File:AlchemistLeatherworker small icon.png|15px]] Level')
:done()
:tag('th')
Line 208 ⟶ 207:
:attr{ colspan = '10' }
: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()
:tag('th')
Line 257 ⟶ 263:
for i, _ in ipairs(item.reagents) do
reagentCell:wikitext(item.reagents[i].quantity .. '&times; [[File:' .. item.reagents[i].name .. '.png|18px30px|link=' .. item.reagents[i].name .. ']]' .. '[[' .. item.reagents[i].name .. ']]<br>')
end
Line 274 ⟶ 280:
:node(currency_cell(item.profit))
:node(currency_cell(item.profitPerHour))
:tag('td')
:css{ ['text-align'] = 'center' }
:wikitext('???')
:done()
:node(currency_cell(item.profitPerHour))
 
21,283

edits