Module:Sandbox/User:Alsang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Tag: Undo |
Tag: Undo |
||
Line 67: | Line 67: | ||
-- straight copy from Infobox Recipe, its good to have a standard format |
-- straight copy from Infobox Recipe, its good to have a standard format |
||
['Activity JSON'] = mw.text.jsonEncode({ |
['Activity JSON'] = mw.text.jsonEncode({ |
||
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) |
mw.smw.set(smw_properties) |