Module:Materials

local p = {} function p.outputMaterials(frame) local table = mw.text.jsonDecode(frame.args[1]) local materialsOutput = "" for material, count in pairs(table) do       materialsOutput = materialsOutput .. frame:expandTemplate{ title = "Material", args = { material, count } } end return materialsOutput end return p