Module:Recipe: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 579:
-- Because string values are expected by smw, we convert the boolean values back to strings here
members = members and 'Yes' or members == false and 'No' or ''
local jsonObject = {skills = skills, members = members, materials = {}, output = output[1], ticks = ticks, facilities = facilities, tools = tools, category = args.category }
local materialNames = {}
for _, v in ipairs(materials) do
Line 590:
['Uses facility'] = mw.text.split(facilities or '', '%s*,%s*'),
['Is members only'] = members,
['Category'] = args.category,
['Production JSON'] = mw.text.jsonEncode(jsonObject),
['Is boostable'] = {},

Navigation menu