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 4: | Line 4: | ||
local args = frame:getParent().args |
local args = frame:getParent().args |
||
local |
local mw = require('mw') |
||
local out = {} |
|||
local debugMessagearg1 = 'Debug Info:<br>' .. |
|||
return arg1 |
|||
'facility: ' .. (args.facility) .. '<br>' .. |
|||
'profession: ' .. (args.profession) .. '<br>' .. |
|||
'level: ' .. (args.level) .. '<br>' .. |
|||
'exp: ' .. (args.exp) .. '<br>' .. |
|||
'rawmat1: ' .. (args.rawmat1) .. '<br>' .. |
|||
'rawmat1qty: ' .. (args.rawmat1qty) .. '<br>' .. |
|||
'rawmat2: ' .. (args.rawmat2) .. '<br>' .. |
|||
'rawmat2qty: ' .. (args.rawmat2qty) .. '<br>' .. |
|||
'rawmat3: ' .. (args.rawmat3) .. '<br>' .. |
|||
'rawmat3qty: ' .. (args.rawmat3qty) .. '<br>' .. |
|||
'preparedmat1: ' .. (args.preparedmat1) .. '<br>' .. |
|||
'preparedmat1qty: ' .. (args.preparedmat1qty) .. '<br>' .. |
|||
'preparedmat1fac: ' .. (args.preparedmat1fac) .. '<br>' .. |
|||
'output1: ' .. (args.output1) .. '<br>' .. |
|||
'output1qty: ' .. (args.output1qty) |
|||
table.insert(out, debugMessage) |
|||
return table.concat(out, '\n') |
|||
end |
end |
||
Revision as of 18:53, 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:getParent().args
local mw = require('mw')
local out = {}
local debugMessagearg1 = 'Debug Info:<br>' ..
'facility: ' .. (args.facility) .. '<br>' ..
'profession: ' .. (args.profession) .. '<br>' ..
'level: ' .. (args.level) .. '<br>' ..
'exp: ' .. (args.exp) .. '<br>' ..
'rawmat1: ' .. (args.rawmat1) .. '<br>' ..
'rawmat1qty: ' .. (args.rawmat1qty) .. '<br>' ..
'rawmat2: ' .. (args.rawmat2) .. '<br>' ..
'rawmat2qty: ' .. (args.rawmat2qty) .. '<br>' ..
'rawmat3: ' .. (args.rawmat3) .. '<br>' ..
'rawmat3qty: ' .. (args.rawmat3qty) .. '<br>' ..
'preparedmat1: ' .. (args.preparedmat1) .. '<br>' ..
'preparedmat1qty: ' .. (args.preparedmat1qty) .. '<br>' ..
'preparedmat1fac: ' .. (args.preparedmat1fac) .. '<br>' ..
'output1: ' .. (args.output1) .. '<br>' ..
'output1qty: ' .. (args.output1qty)
table.insert(out, debugMessage)
return table.concat(out, '\n')
end
return p