Module:Road data/banners/USA

MyWikiBiz, Author Your Legacy — Monday December 02, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/banners/USA/doc

local USA = {}

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

USA.dir = {
	shield = {
		arg = "type",
		["US 1926"] = "",
		["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",
		["US-Hist"] = "brown",
		["US 1956 E"] = "brown",
		["US 1956 W"] = "blue",
		["US 1956 N"] = "orange",
		["US 1956 S"] = "green",
		default = {
			hook = "beginswith",
			base = "type",
			actions = {
				CA = "green",
				MN = "blue",
				SC = "South Carolina",
				SD = "South Dakota",
				VT = "Vermont",
				WY = "Wyoming"
			}
		}
	}
}

return USA