View source for Module:Infobox road/color
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
Country = {}
function Country:new(obj)
obj = obj or {}
setmetatable(obj, self)
self.__index = self
return obj
end
function Country:color(args)
local type = args.type
return self[type] or self.default
end
function Country:addTypesAsColor(types, color)
for i,type in pairs(types) do
self[type] = color
end
000
1:0
Templates used on this page:
Return to Module:Infobox road/color.