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:lower if l == "ingame" or l == "in-game" or l == "in game" then return ' In-game ' 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 ' end end

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

function p._format_status(args) local s = args.status:lower end

p.format_status = utils.make_wrapper_function(p._format_status)

return p