Module:Infobox Recipe: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(export recipe level to SMW, since it isnt always the same as the items level (for weapon crafting))
(export level as a number, for sorting purposes)
Line 64: Line 64:
['Activity KP'] = args.kp,
['Activity KP'] = args.kp,
['Activity duration'] = args.duration,
['Activity duration'] = args.duration,
['Activity level'] = args.level,
['Activity level'] = args.level and tonumber(args.level),
['Recipe JSON'] = mw.text.jsonEncode({
['Recipe JSON'] = mw.text.jsonEncode({