Jump to content

Module:Road data/strings/CAN/AB

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 23:13, 14 February 2021 (add orientation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

--[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
and enter the following input text:
  {{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}}

To inspect the content of this data module when editing, enter the following
into the Debug console:
  local util = require("Module:Road data/util")
  print(util.arrayToString(p))
To inspect a particular route type, change `p` above to include the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]

-- Alberta
local AB = {}

local util = require("Module:Road data/util")
util.addAll(AB, require("Module:Road data/strings/CAN"))

AB.Hwy = {
	shield = {
		default = "Alberta Highway %route%.svg",
		["Stoney"] = "Alberta Highway 201.svg",
		["Henday"] = "Alberta Highway 216.svg",
		["17"] = {"Alberta Highway 17.svg", "Saskatchewan Highway 17 (jct).svg"},
		["100"] = ""
	},
	name = {
		default = "Highway %route%",
		["100"] = "Sherwood Park Freeway",
		["201"] = "Stoney Trail",	
		["Stoney"] = "Stoney Trail",
		["216"] = "Anthony Henday Drive",
		["Henday"] = "Anthony Henday Drive"
	},
	link = {
		default = "[dab||%dab%|Alberta Highway %route%]",
		["17"]  = "Highway 17 (Alberta–Saskatchewan)",
		["100"] = "Sherwood Park Freeway",
		["201"] = "Stoney Trail",	
		["Stoney"] = "Stoney Trail",
		["216"] = "Anthony Henday Drive",
		["Henday"] = "Anthony Henday Drive"
	},
	abbr = {
		default = "Hwy&nbsp;%route%",
		["100"] = "SPF",
		["Stoney"] = "Stoney",
		["Henday"] = "Henday"
	},
	orientation = "upright"
}

AB.AB = AB.Hwy

AB.TCH = {
	shield = AB.Hwy.shield,
	name = "Trans Canada Highway",
	link = AB.Hwy.link.default,
	abbr = AB.Hwy.abbr.default .. " (TCH)",
	orientation = "upright"
}

AB.PAR = {
	shield = "",
	link = "List of Alberta provincial highways#PAR %route%",
	abbr = "PAR&nbsp;%route%"
}

AB.UAR = {
	shield = "",
	link = "List of Alberta provincial highways#UAR %route%",
	abbr = "UAR&nbsp;%route%"
}

--historical route markers

AB["AB 1970"] = {
	shield = {
		default = "Alberta Highway %route% (1970s).svg",
		["1"] = "Alberta Highway %route%.svg",
		["16"] = "Alberta Highway %route%.svg"
	},
	name = AB.Hwy.name,
	link = AB.Hwy.link,
	abbr = AB.Hwy.abbr,
	orientation = "upright"
}
	             
AB["AB 1960"] = {
	shield = "Alberta Highway %route% (1960s).svg",
	name = AB.Hwy.name,
	link = AB.Hwy.link,
	abbr = AB.Hwy.abbr,
	orientation = "upright"
}
	             
AB["AB 1930"] = {
	shield = "Alberta Highway %route% (1930s).svg",
	name = AB.Hwy.name,
	link = AB.Hwy.link,
	abbr = AB.Hwy.abbr,
	orientation = "upright"
}	             

--for linking to US articles
AB.I = {alias = {module = "USA/MT", type = "I"}}

return AB