Module:PlaceInfobox

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

local categorize = utils.categorize('Community')

local p = {}

function p._format_gear_types(args) return 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_owner(args) return infobox_utils.player_link(args.owner) end

p.format_owner = utils.make_wrapper_function(p._format_owner)

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 "Uncopylocked" .. categorize("Uncopylocked places") end end

p.format_uncopylocked = utils.make_wrapper_function(p._format_uncopylocked)

return p