FANDOM


-- Credit: User:YouFoundJojo
-- This is used in the [[Template:User join]] userbox to get the visor image and colors.
local p = {}
 
p.data = {
    -- Year, Image, Border, Text
    {"2006", "Heartface.png", "#E20006", "#ed9395"},
	{"2007", "2007 ROBLOX Visor.png", "#FF292B", "#ff8c8d"},
	{"2008", "2008 ROBLOX Visor.png", "#4F7594", "#a9c1d6"},
	{"2009", "2009 ROBLOX Visor.png", "#ACAF5A", "#e8eaa6"},
	{"2010", "2010 ROBLOX Visor.png", "#299B24", "#aadba8"},
	{"2011", "2011 ROBLOX Visor.png", "#332BFF", "#bab7ff"},
	{"2012", "2012 Visor.png", "#373D8E", "#adafd8"},
	{"2013", "VisitorPNG.png", "#386144", "#89c49a"},
	{"2014", "ROBLOX Visor 2014.png", "#59172D", "#d1819c"},
	{"2015", "ROBLOX Visor 2015.png", "#4E1A2C", "#b76c86"},
	{"2016", "2016 ROBLOX Visor.png", "#44265E", "#bc9cd8"},
	{"2017", "RBLXvisor17.png", "#3D8A76", "#9ddbcb"},
	{"2018", "Roblox visor 2018.png", "#65A2D4", "#95b9d6"},
	{"2019", "2019 Visor.png", "#FF1213", "#ff9696"},
}
 
function p.find_image(frame)
    local abb = frame.args[1]
	local num = #p.data 
	for i = 1, num do
		entry = p.data[i]
		if string.lower(entry[1]) == string.lower(abb) then
			return entry[2]
		end
	end
	return "No Visor for Userbox.png"
end
 
function p.find_border_color(frame)
    local abb = frame.args[1]
	local num = #p.data 
	for i = 1, num do
		entry = p.data[i]
		if string.lower(entry[1]) == string.lower(abb) then
			return entry[3]
		end
	end
	return "#000"
end
 
function p.find_text_bg_color(frame)
    local abb = frame.args[1]
	local num = #p.data 
	for i = 1, num do
		entry = p.data[i]
		if string.lower(entry[1]) == string.lower(abb) then
			return entry[4]
		end
	end
	return "#fff"
end
 
 
return p
Community content is available under CC-BY-SA unless otherwise noted.