Module:Sandbox/User:Alsang: Difference between revisions

Undo revision 76522 by Alsang (talk)
(Undo revision 76524 by Alsang (talk))
Tag: Undo
(Undo revision 76522 by Alsang (talk))
Tag: Undo
Line 67:
-- straight copy from Infobox Recipe, its good to have a standard format
['Activity JSON'] = mw.text.jsonEncode({test = true})
xp = args.xp and tonumber(args.xp),
kp = args.kp and tonumber(args.kp),
duration = args.duration,
tool = args.tool,
materials = {
{ name = args.input, quantity = quant },
{ name = args.container, quantity = quant },
},
profession = args.profession,
level = args.level and tonumber(args.level),
-- Make sure to update this when multiple outputs are supported
output = {
{ name = args.name, quantity = quant },
}
}),
}
mw.smw.set(smw_properties)
11,537

edits