Module:Infobox road/link/VNM

local p = {}

local typesModule = require "Module:Infobox road/link/defs" Country = typesModule.Country Link = typesModule.Link

local links = Country:new do -- Link definitions local default = Link:new{formatStr = "Route %s (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 %s (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 %s (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 %s (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 %s (Vietnam)"} links["đck"] = type links["đường cặp kênh"] = type links["towpath"] = type end -- Towpaths end

p.links = links return p