FANDOM


local yesno = require('Dev:Yesno')
local utils = require("Module:Utils")
local gear = require("Module:Gear type")
local infobox_utils = require('Module:InfoboxUtils')
local utils = require('Module:Utils')
local currency = require('Module:Currency')
 
local categorize = utils.categorize(0)
 
local p = {}
 
function p._format_gear_types(args)
	return gear.enumerate_gear_types {gear_types = args["gear types"], categorize = false}
end
 
p.format_gear_types = utils.make_wrapper_function(p._format_gear_types)
 
function p._format_cost(args)
	local cost = utils.parse_number(args.cost or args.price)
	if cost then
	    return cost ~= 0
            and currency._format_robux {amount = cost}
            or error("Refrain from providing a price if the game is free to play.")
	end
end
 
p.format_cost = utils.make_wrapper_function(p._format_cost)
 
function p._format_month_created(args)
	local month, year = args['month created']:match("(%a+) (%d%d%d%d)")
	if month and year then
	    return year > "2006"
		and month .. ' ' .. year .. categorize(year .. " places")
		or error("ROBLOX game creation has only existed since 2007.")
	else
		return infobox_utils.error_message("invalid value for <code>month joined</code>; try something like \"October 2015\"")
	end
end
 
p.format_month_created = utils.make_wrapper_function(p._format_month_created)
 
function p._format_place_visits(args)
	return infobox_utils.format_number(args["place visits"], 10000, "Places with less than 750000 visits", 750000)
end
 
p.format_place_visits = utils.make_wrapper_function(p._format_place_visits)
 
function p._format_uncopylocked(args)
	if yesno(args.uncopylocked) then
		return "[[Uncopylock|Uncopylocked]]" .. categorize("Uncopylocked places")
	end
end
 
p.format_uncopylocked = utils.make_wrapper_function(p._format_uncopylocked)
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.