Module:AccessoryInfobox

local utils = require('Module:Utils')

local categorize = utils.categorize('Catalog')

local p = {}

function p._format_accessory_type(args) if args.type:lower == "hat" then return categorize("Hats") elseif args.type:lower == "hair" then return categorize("Hair") elseif args.type:lower == "face" then return categorize("Face accessories") elseif args.type:lower == "neck" then return categorize("Neck accessories") elseif args.type:lower == "front" then return categorize("Front accessories") elseif args.type:lower == "back" then return categorize("Back accessories") elseif args.type:lower == "shoulders" then return categorize("Shoulder accessories") elseif args.type:lower == "waist" then return categorize("Waist accessories") end end

p.format_accessory_type = utils.make_wrapper_function(p._format_accessory_type)

return p