Module:Sandbox/User:The Gaffer/Modules/Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
The Gaffer (talk | contribs) No edit summary |
The Gaffer (talk | contribs) No edit summary |
||
Line 77: | Line 77: | ||
table.insert(out, '| style="text-align: right;" | ' .. totalCost) |
table.insert(out, '| style="text-align: right;" | ' .. totalCost) |
||
table.insert(out, '|-') |
table.insert(out, '|-') |
||
-- Add Intermediate steps if required |
|||
-- Headers |
|||
table.insert(out, '! colspan="2" | Intermediate Ingredient') |
|||
table.insert(out, '! Quantity') |
|||
table.insert(out, '! Facility') |
|||
table.insert(out, '|-') |
|||
-- Values |
|||
if args.preparedmat1 then |
|||
table.insert(out, '| [[File:' .. args.preparedmat1 .. '.png|30px]]') |
|||
table.insert(out, '| [[' .. args.preparedmat1 .. ']]') |
|||
table.insert(out, '| style="text-align: right;" | ' .. (args.preparedmat1qty or 1)) |
|||
table.insert(out, '| style="text-align: right;" | [[File:' .. args.preparedmat1fac .. '.png|30px]] ' .. args.preparedmat1fac) |
|||
table.insert(out, '|-') |
|||
end |
|||
-- Add output data and profit |
-- Add output data and profit |