پودمان:Infobox road/link/VNM
ظاهر
< پودمان:Infobox road | link
local p = {}
local typesModule = require "Module:Infobox road/link/defs"
Country = typesModule.Country
Link = typesModule.Link:new()
local links = Country:new()
do -- Link definitions
local default = Link:new{formatStr = "Route %route% (Vietnam)"}
links.default = default
function links:typeOverride(args)
local type = args.type or ''
type = mw.ustring.lower(type)
return self[type]
end
do -- National
local type = Link:new{formatStr = "National Route %route% (Vietnam)"}
links["ql"] = type
links["quốc lộ"] = type
links["national"] = type
links["nation"] = type
end -- National
do -- Provincial
local type = Link:new{formatStr = "Provincial Route %route% (Vietnam)"}
links["tl"] = type
links["tỉnh lộ"] = type
links["provincial"] = type
links["province"] = type
end -- Provincial
do -- District
local type = Link:new{formatStr = "District Route %route% (Vietnam)"}
links["hl"] = type
links["hương lộ"] = type
links["huyện lộ"] = type
links["district"] = type
end -- District
do -- Towpaths
local type = Link:new{formatStr = "Canal Towpath %route% (Vietnam)"}
links["đck"] = type
links["đường cặp kênh"] = type
links["towpath"] = type
end -- Towpaths
end
p.links = links
return p