Jump to content

Module:Road data/banners/USA

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Chinissai (talk | contribs) at 14:15, 18 April 2016 (Renamed key.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local USA = {}

USA.to = {
	shield = "To plate",
	shieldsize = "20px"
}

USA.dir = {
	shield = {
		arg = "dir",
		east = "East plate",
		north = "North plate",
		south = "South plate",
		west = "West plate",
		begins = "Begin plate",
		ends = "End plate"
	},
	shieldsize = "20px"
}

USA.suffix = {
	shield = {
		arg = "type",
		I = "blue",
		["I-Toll"] = "blue",
		BL = "green",
		BS = "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"
			},
			default = ""
		},
		GRR = "Vermont",
		["US-Hist"] = "brown",
		default = {
			hook = "beginswith",
			base = "type",
			actions = {
				CA = "green",
				MN = "blue",
				SC = "South Carolina",
				SD = "South Dakota",
				VT = "Vermont",
				WY = "Wyoming"
			},
			default = ""
		}
	}
}

return USA