跳去內容

模組:Road data/banners/USA

出自維基百科,自由嘅百科全書
模組解[]
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"] = "brown", -- there are no orange banners
		["US 1956 S"] = "green",
		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"
			}
		}
	}
}

return USA