Module:AlchemistList: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(offload much of the search, screen, and format functions to the new ProfessionList module, so they work the same for all table)
(for multi-step recipes, generate multi-line edit buttons)
Line 38: Line 38:
-- iterate through products
-- iterate through products
for _, item in ipairs(results) do
for _, item in ipairs(results) do
-- list of all pages to edit, if edit is needed
item.allPageEdits = { item.pageName }
for _,intermediate in ipairs(item.intermediateMaterials) do
table.insert(item.allPageEdits,intermediate.name)
end


-- profitability
-- profitability
Line 145: Line 151:
:done()
:done()
:ELSE()
:ELSE()
:node(plist.unknown_value_cell(1))
:node(plist.unknown_value_edit_cell(item.allPageEdits,1))
:END()
:END()