มอดูล:Infobox road/color/ASIA
< มอดูล:Infobox road | color
![Documentation icon](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
คุณอาจจะต้องการสร้างคู่มือการใช้งานของมอดูลนี้ ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของมอดูลนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของมอดูลนี้ |
local p = {}
local colors = {}
function colors:color(args)
local type = args.type
local subtype = args.subtype
subtype = subtype and string.lower(subtype) or ''
local colorFunc = self[type]
return colorFunc and colorFunc(subtype) or "background:#fff; border:1px solid #000;"
end
local function AH()
return " background:#003f87; color:white;"
end
colors["AH"] = AH
p.colors = colors
return p