Jump to content

Module:Road data/banners/USA

Permanently protected module
From Wikipedia, the free encyclopedia
local USA = {}

USA.to = {
	shield = {
		arg = "type",
		["US 1926"] = "",
		["US 1948"] = "",
		["SR 1927"] = "",
		["SR 1934 S"] = "",
		["NM 1926"] = "",
		["NM 1932"] = "",
		["ON"] = "",
		default = "To plate"
	},
	shieldsize = "20"
}

USA.dir = {
	shield = {
		arg = "type",
		["SR 1927"] = "",
		["SR 1934 S"] = "",
		["NM 1926"] = "",
		["NM 1932"] = "",
		default = {
			arg = "dir",
			east = "East plate",
			north = "North plate",
			south = "South plate",
			west = "West plate",
			East = "East plate",
			North = "North plate",
			South = "South plate",
			West = "West plate",
			begins = "Begin plate",
			ends = "End plate"
		}
	},
	shieldsize = "20"
}

USA.suffix = {
	shield = {
		arg = "type",
		I = "blue",
		["I-Toll"] = "blue",
		["I 1957"] = "blue",
		BL = "green",
		BS = "green",
		["BL 1957"] = "green",
		["BS 1957"] = "green",
		CR = {
			hook = "match",
			entry = "shield",
			actions = {
				-- %S+ represents a nonempty sequence of characters containing no spaces.
				-- Also need to escape dot with %.
				["CR %S+ jct%.svg"] = "county",
				["CR %S+ jct wide%.svg"] = "county",
				["County %S+ square%.svg"] = ""
			}
		},
		GRR = "Vermont",
		["IA 1926"] = "1926",
		["M 1948"] = "1961",
		["M 1948-Bus"] = "1961",
		["M 1948-Byp"] = "1961",
		["M 1948-Conn"] = "1961",
		["M 1948-Spur"] = "1961",
		["M 1948-Truck"] = "1961",
		["MN 1920"] = "1926",
		["US-Hist"] = "brown",
		["US 1926"] = "1926",
		["US 1948"] = "1948",
		["US 1961"] = "1961",
		["US 1956 E"] = "brown",
		["US 1956 W"] = "blue",
		["US 1956 N"] = "orange",
		["US 1956 S"] = "green",
		PR = {
			arg = "state",
			PR = "blue (es)"
		},
		Urban = "(es)",
		Sec = {
			arg = "state",
			PR = "county (es)"
		},
		Ter = "(es)",
		default = {
			hook = "beginswith",
			base = "type",
			actions = {
				CA = "green",
				MN = "blue",
				SC = "South Carolina",
				SD = "South Dakota",
				VT = "Vermont",
				WY = "Wyoming",
				CR = "county"
			}
		}
	}
}

return USA