Module:AccessoryInfobox

local categorization = require('Module:Categorization') local i18n = require('Dev:I18n').loadMessages('Module:AccessoryInfobox/i18n') local utils = require('Module:Utils')

local categorize = categorization.categorize_in_namespaces('Catalog')

local p = {}

function p._format_accessory_type(args) local accessory_type = args["accessory type"] if not accessory_type then return error(i18n:msg("error-required-parameter-missing", "accessory type")) end return categorize(i18n:msg("cat-accessory-type-" .. accessory_type:lower)) end

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

return p