Module:Catalog history

local utils = require("Module:Utils") local infobox_utils = require('Module:InfoboxUtils')

local p = {}

function p._format_location(args) local l = args.location if l == "ingame" or l == "in-game" or l == "in game" then return ' In-game ' elseif l == "catalog" then return ' Catalog ' elseif l == "promotional code" or l == "promotional-code" or l == "promotional" or l == "promotionalcode" then return ' Promotional Code ' elseif l == "ad" or l == "advertisement" or l == "advert" then return ' Advertisement ' elseif l == "opened" or l == "gift" or l == "gifted" then return ' Opened ' else return error("Invalid location parameter.") end end

p.format_location = utils.make_wrapper_function(p._format_location)

function p.format_status(st) local s = string.lower(st) end

return p