Module:Toys

tdb = require("Module:Toy_DB") u = require("Module:Util") local p = {} function p.toy_stats(name) recipes = {} for _, t in ipairs(tdb) do   	for _, e in ipairs(t[5]) do        	if t[1] == name then table.insert(recipes, {t[1], t[2], t[4], t[6], t[7], e[1]}) end end end result = for _, t in ipairs(recipes) do   result = result .. [[

]] .. t[5] .. end return result .. end

function p.tts(frame) return p.toy_stats(frame.args[1] or frame:getParent:getTitle) end

return p