Module:Currency

local utils = require("Module:Utils")

local p = {}

function p._format_tickets(args) local icon = " " local amount_span = mw.html.create("span") :addClass("tickets-amount") :css("font-weight", "bold") :wikitext(utils.format_number(utils.parse_number(args.amount, true))) return icon .. tostring(amount_span) end

p.format_tickets = utils.make_wrapper_function(p._format_tickets)

function p._format_robux(args) local icon = " " local amount_span = mw.html.create("span") :addClass("robux-amount") :css("font-weight", "bold") :wikitext(utils.format_number(utils.parse_number(args.amount, true))) return icon .. tostring(amount_span) end

p.format_robux = utils.make_wrapper_function(p._format_robux)

function p._format_roblox_points(args) local icon = " " local amount_span = mw.html.create("span") :addClass("roblox-points-amount") :css("font-weight", "bold") :wikitext(utils.format_number(utils.parse_number(args.amount, true))) return icon .. tostring(amount_span) end

p.format_roblox_points = utils.make_wrapper_function(p._format_roblox_points)

function p._format_player_points(args) local icon = " " local amount_span = mw.html.create("span") :addClass("player-points-amount") :css("font-weight", "bold") :wikitext(utils.format_number(utils.parse_number(args.amount, true))) return icon .. tostring(amount_span) end

p.format_player_points = utils.make_wrapper_function(p._format_player_points)

function p._format_clan_points(args) local icon = " " local amount_span = mw.html.create("span") :addClass("clan-points-amount") :css("font-weight", "bold") :wikitext(utils.format_number(utils.parse_number(args.amount, true))) return icon .. tostring(amount_span) end

p.format_clan_points = utils.make_wrapper_function(p._format_clan_points)

function p._format_free local free_span = mw.html.create("span") :addClass("item-free") :css("text-transform", "uppercase") :wikitext("Free") return tostring(free_span) end

p.format_free = utils.make_wrapper_function(p._format_free)

return p