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 8: | Line 8: | ||
local debugMessage = 'Debug Info:<br>' .. |
local debugMessage = 'Debug Info:<br>' .. |
||
'facility: ' .. (args.facility or 'nil') .. '<br>' .. |
|||
'profession: ' .. (args.profession or 'nil') .. '<br>' .. |
|||
'level: ' .. (args.level or 'nil') .. '<br>' .. |
|||
'exp: ' .. (args.exp or 'nil') .. '<br>' .. |
|||
'rawmat1: ' .. (args.rawmat1 or 'nil') .. '<br>' .. |
|||
'rawmat1qty: ' .. (args.rawmat1qty or 'nil') .. '<br>' .. |
|||
'rawmat2: ' .. (args.rawmat2 or 'nil') .. '<br>' .. |
|||
'rawmat2qty: ' .. (args.rawmat2qty or 'nil') .. '<br>' .. |
|||
'rawmat3: ' .. (args.rawmat3 or 'nil') .. '<br>' .. |
|||
'rawmat3qty: ' .. (args.rawmat3qty or 'nil') .. '<br>' .. |
|||
'preparedmat1: ' .. (args.preparedmat1 or 'nil') .. '<br>' .. |
|||
'preparedmat1qty: ' .. (args.preparedmat1qty or 'nil') .. '<br>' .. |
|||
'preparedmat1fac: ' .. (args.preparedmat1fac or 'nil') .. '<br>' .. |
|||
'output1: ' .. (args.output1 or 'nil') .. '<br>' .. |
|||
'output1qty: ' .. (args.output1qty or 'nil') |
|||
table.insert(out, debugMessage) |
table.insert(out, debugMessage) |
Revision as of 17:49, 14 November 2024
Documentation for this module may be created at Module:Sandbox/User:The Gaffer/Modules/Infobox Recipe/doc
local p = {}
function p.main(frame)
local args = frame.args
local mw = require('mw')
local out = {}
local debugMessage = 'Debug Info:<br>' ..
'facility: ' .. (args.facility or 'nil') .. '<br>' ..
'profession: ' .. (args.profession or 'nil') .. '<br>' ..
'level: ' .. (args.level or 'nil') .. '<br>' ..
'exp: ' .. (args.exp or 'nil') .. '<br>' ..
'rawmat1: ' .. (args.rawmat1 or 'nil') .. '<br>' ..
'rawmat1qty: ' .. (args.rawmat1qty or 'nil') .. '<br>' ..
'rawmat2: ' .. (args.rawmat2 or 'nil') .. '<br>' ..
'rawmat2qty: ' .. (args.rawmat2qty or 'nil') .. '<br>' ..
'rawmat3: ' .. (args.rawmat3 or 'nil') .. '<br>' ..
'rawmat3qty: ' .. (args.rawmat3qty or 'nil') .. '<br>' ..
'preparedmat1: ' .. (args.preparedmat1 or 'nil') .. '<br>' ..
'preparedmat1qty: ' .. (args.preparedmat1qty or 'nil') .. '<br>' ..
'preparedmat1fac: ' .. (args.preparedmat1fac or 'nil') .. '<br>' ..
'output1: ' .. (args.output1 or 'nil') .. '<br>' ..
'output1qty: ' .. (args.output1qty or 'nil')
table.insert(out, debugMessage)
return table.concat(out, '\n')
end
return p