Documentation for this module may be created at Module:EOTM/doc
local utils = require("Module:Utils")
local p = {}
p._format_type = function(args)
local arg = args.type
if arg == "Community" then
return "Community Vote"
elseif arg == "Staff" then
return "Staff Pick"
else
return utils.error_message("type must be 'Community' or 'Staff'")
end
end
p.format_type = utils.make_wrapper_function(p._format_type)
return p