Module:Road data/banners/CAR

From IxWiki
Jump to navigation Jump to search

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

local CAR = {}

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

CAR.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"
}

CAR.suffix = {
	shield = {
		arg = "type",
		IH = "green",
		["IH-Toll"] = "green",
		["IH 1957"] = "green",
		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"] = ""
			}
		},
		PR = {
			arg = "state",
			PR = "blue (es)"
		},
		Urban = "(es)",
		Sec = {
			arg = "state",
			PR = "county (es)"
		},
		Ter = "(es)",
		default = {
			hook = "beginswith",
			base = "type",
			actions = {
				ES = "green",
				CX = "blue",
				SA = "São Andreas",
				TS = "Tanoa Sul",
				CR = "county"
			}
		}
	}
}

return CAR