Module:Road data/strings/CAN/SK

From Cube Studios Wiki

Documentation for this module may be created at Module:Road data/strings/CAN/SK/doc

--[==[
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"]`.
]==]

-- Saskatchewan
local SK = {}

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

SK.SK = {
	shield = {
		["1"] = "Saskatchewan Highway 1.svg",
		["16"] = "Saskatchewan Highway 16.svg",
		["16A"] = "Saskatchewan Highway 16A.svg",
		["16B"] = "Saskatchewan Highway 16B.svg",
		["Circle"] = {"Saskatchewan Highway 11 (jct).svg", "Saskatchewan Highway 16.svg"},
		default = {
			ifexists = true,
			default = "Saskatchewan Highway %route% (jct).svg"
		}
	},
	shieldmain = {
		["1"] = "Saskatchewan Highway 1.svg",
		["2"] = {"Saskatchewan Highway %route% (jct).svg", "CanAm Highway.svg"},
		["3"] = {"Saskatchewan Highway %route% (jct).svg", "CanAm Highway.svg"},
		["6"] = {"Saskatchewan Highway %route% (jct).svg", "CanAm Highway.svg"},
		["11"] = {"Saskatchewan Highway %route% (jct).svg", "Louis Riel Trail.svg"},
		["16"] = {"Saskatchewan Highway %route%.svg", "Yellowhead Highway (Saskatchewan).svg"},
		["16A"] = "Saskatchewan Highway 16A.svg",
		["16B"] = "Saskatchewan Highway 16B.svg",
		["35"] = {"Saskatchewan Highway %route% (jct).svg", "CanAm Highway.svg"},
		["39"] = {"Saskatchewan Highway %route% (jct).svg", "CanAm Highway.svg"},
		["49"] = {"Saskatchewan Highway %route% (jct).svg", "Manitoba Highway %route%.svg"},
		["57"] = {"Saskatchewan Highway %route% (jct).svg", "Manitoba Highway %route%.svg"},
		["Circle"] = {"Saskatchewan Highway 11 (jct).svg", "Saskatchewan Highway 16.svg"},
		default = {
			ifexists = true,
			default = "Saskatchewan Highway %route% (jct).svg"
		}
	},
	name = {
		default = "Highway %route%",
		["Circle"] = "Circle Drive"
	},
	link = {
		default = "[dab||%dab%|Saskatchewan Highway %route%]",
		["17"]  = "Highway 17 (Alberta–Saskatchewan)",
		["Circle"] = "Circle Drive"
	},
         
	abbr = {
		["Circle"] = "Circle Drive",
		default = "Hwy %route%"
	},
	orientation = "upright"

}
              
SK.Hwy = SK.SK

for k, v in pairs(SK) do if k:find ("TCH") then 
	v.shield = SK.SK.shield
	v.name = SK.SK.name
	v.link = "Saskatchewan Highway %route%"
	v.abbr = SK.SK.abbr.default .. " (TCH)"
	end
end

-- add new types above this line if you want it to have the provincial highway browse and maint
for k, v in pairs(SK) do if k:find ("^%a") then
	v.maint = "[[Ministry of Highways and Infrastructure (Saskatchewan)|Ministry of Highways and Infrastructure]]"
	v.browse = "[[List of Saskatchewan provincial highways|Provincial highways in Saskatchewan]]"
	end
end

SK.AB = {alias = {module = "CAN/AB", type = "Hwy", width = "expand"}}
SK.MB = {alias = {module = "CAN/MB", type = "Hwy"}}              

SK.Mun = {
	shield = "Saskatchewan Route %route%.svg",
	name = SK.SK.name.default,
	link = SK.SK.link,
	abbr = SK.SK.abbr,
	banner = "Saskatchewan Rural Municipal Route.svg",
	orientation = "upright"
}

SK.Tertiary = SK.SK --shields are superimposed

return SK
Cookies help us deliver our services. By using our services, you agree to our use of cookies.