Module:ItemBox

local utils = require("Module:Utils")

local p = {} function p._FormatType(args) local typ = args.Category if typ == "Armor" then return "Armor " elseif typ == "Ore" then return "Ore " elseif typ == "Food" then return "Food " else return error("Invalid Type given.") end end p.FormatType = utils.make_wrapper_function(p._FormatType)

function p._FormatHealth(args) local hel = Health local typ = args.Category if hel == nil then return "test" else return error("Invalid Type given.") end end p.FormatHealth = utils.make_wrapper_function(p._FormatHealth)

return p