La documentation pour ce module peut ĂȘtre crĂ©Ă©e sur Module:Currency/doc
local utils = require("Module:Utils") local p = {} function p._format_tickets(args) local icon = "[[File:2016 Ticket.png|20px|link=tickets|alt=tickets]] " local amount_span = mw.html.create("span") :addClass("tickets-amount") :css("font-weight", "bold") :text(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 = "[[File:Robux dark small.svg|20px|link=Robux| alt=Robux]] " local amount_span = mw.html.create("span") :addClass("robux-amount") :css("font-weight", "bold") :text(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 = "[[File:Roblox point.png |20px|link=Points Roblox|alt=Points Roblox]] " local amount_span = mw.html.create("span") :addClass("roblox-points-amount") :css ("font-weight", "bold") :text(utils.format_number(utils.parse_number(args.amount, true))) icĂŽne de retour .. tostring(amount_span) end p.format_roblox_points = utils.make_wrapper_function(p._format_roblox_points ) function p._format_player_points(args) local icon = "[[File:Player Point.png|20px|link=Player points|alt=player points]] " local amount_span = mw.html.create("span") :addClass ("player-points-amount") :css("font-weight", "bold") :text(utils.format_number(utils.parse_number(args.amount, true))) icĂŽne de retour .. tostring(amount_span) end p.format_player_points = utils.make_wrapper_function(p._format_player_points) function p._format_clan_points(args) local icon = "[[File:Clan point.png|20px|link=clan points|alt=clan points]] " local amount_span = mw .html.create("span") :addClass("clan-points-amount") :css("font-weight", "bold") :text(utils.format_number(utils.parse_number(args.amount, true) )) icĂŽne de retour .. tostring(amount_span) end p.format_clan_points = utils.make_wrapper_function(p. _format_clan_points) fonction p._format_free() local free_span = mw.html.create("span") :addClass("item-free") :css("text-transform", "majuscule") :text("Free") retour tostring(free_span) end p.format_free = utils.make_wrapper_function(p._format_free) retour p