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 90: | Line 90: | ||
table.insert(out, '|}') |
table.insert(out, '|}') |
||
-- Add debug information to the output |
-- Add debug information to the output as a simple paragraph |
||
local debugMessage = 'Debug Info: |
local debugMessage = 'Debug Info:<br>' .. |
||
'rawmat1query: ' .. (rawmat1query or 'nil') .. ' |
'rawmat1query: ' .. (rawmat1query or 'nil') .. '<br>' .. |
||
'rawmat1cost: ' .. tostring(rawmat1cost) .. ' |
'rawmat1cost: ' .. tostring(rawmat1cost) .. '<br>' .. |
||
'rawmat2query: ' .. (rawmat2query or 'nil') .. ' |
'rawmat2query: ' .. (rawmat2query or 'nil') .. '<br>' .. |
||
'rawmat2cost: ' .. tostring(rawmat2cost) .. ' |
'rawmat2cost: ' .. tostring(rawmat2cost) .. '<br>' .. |
||
'rawmat3query: ' .. (rawmat3query or 'nil') .. ' |
'rawmat3query: ' .. (rawmat3query or 'nil') .. '<br>' .. |
||
'rawmat3cost: ' .. tostring(rawmat3cost) .. ' |
'rawmat3cost: ' .. tostring(rawmat3cost) .. '<br>' .. |
||
'totalCost: ' .. tostring(totalCost) .. ' |
'totalCost: ' .. tostring(totalCost) .. '<br>' .. |
||
'output1query: ' .. (output1query or 'nil') .. ' |
'output1query: ' .. (output1query or 'nil') .. '<br>' .. |
||
'output1cost: ' .. tostring(output1cost) .. ' |
'output1cost: ' .. tostring(output1cost) .. '<br>' .. |
||
'output1costTotal: ' .. tostring(output1costTotal) .. ' |
'output1costTotal: ' .. tostring(output1costTotal) .. '<br>' .. |
||
'profit: ' .. tostring(profit) |
'profit: ' .. tostring(profit) |
||
table.insert(out, |
table.insert(out, debugMessage) |
||
return table.concat(out, '\n') |
return table.concat(out, '\n') |