Jump to content

Module:Road data/strings/USA/OK

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 02:00, 26 August 2020 (fix again). 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"]`.
]==]

-- Oklahoma
local OK = {}

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

local suffix = " ([dab||%dab%, |]Oklahoma)"
local maint = "[[Oklahoma Department of Transportation|ODOT]]"

OK[" common "] = {
	browse = {
		{name = "Oklahoma State Highway System", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in Oklahoma", name = "Interstate"},
			{link = "List of U.S. Highways in Oklahoma", name = "U.S."},
			{link = "List of state highways in Oklahoma", name = "State"},
			{link = "Turnpikes of Oklahoma", name = "Turnpikes"},
		}
	}
}

OK.I.maint = maint
OK.I.shield = {hook = "splitlen",
                        	split = 3,
                        	above = "I-%route% (long).svg",
                        	below = "I-%route%.svg"}
OK.I.link	= {	["244"] = "Interstate 244",
				["440"] = "Interstate 44 in Oklahoma#Interstate 440",
				["444"] = "Interstate 444",
				default = {hook = "splitlen",
                           split = 3,
                           above = "Interstate %route% (Oklahoma)",
                           below = "Interstate %route% in Oklahoma"}}

OK["I-Toll"] = {shield = OK.I.shield,
        link = OK.I.link,
        abbr = OK.I.abbr,
        banner = "Toll plate yellow.svg",
        width = "expand"}

OK["I-Bus"] = OK.BL

OK["I 1957"].link = OK.I.link
OK["I 1961"].link = OK.I.link

OK.US.name = "U.S. Highway %route%"
OK.US.maint = maint
OK.US.link = "U.S. Route %route% in Oklahoma"

OK["US-City"] = {shield = OK.US.shield,
                link = "U.S. Route %route% City ([dab||%dab%, |]Oklahoma)",
                abbr = "US-%route% City",
                banner = "City plate.svg",
                width = "expand"}

OK["US-Spur"].banner = {["281"] = '',
                        default = "Spur plate.svg"}

OK["US-Temp"] = {shield = OK.US.shield,
                link = "U.S. Route %route% Temporary ([dab||%dab%, |]Oklahoma)",
                abbr = "US-%route% Temp.",
                banner = "Temp plate.svg",
                width = "expand"}

for _,year in ipairs({"1926", "1948", "1961"}) do
	local oldUSmain = "US " .. year
	OK[oldUSmain].name = OK.US.name
	OK[oldUSmain].link = OK.US.link
end

OK.Turnpike = {shield = {["Eastern Oklahoma County"] = "", -- for the time being
						   default = "%route% Turnpike.svg"},
               link = "%route% Turnpike",
               abbr = "%route% Turnpike"}

OK.SH = {shield = "Oklahoma State Highway %route%.svg",
         link = "Oklahoma State Highway %route% [dab||(%dab%)|]",
         abbr = "SH-%route%",
         width = "expand"}

OK.OK = OK.SH

OK["SH-Bus"] = {shield = OK.SH.shield,
                link = "Oklahoma State Highway %route% Business [dab||(%dab%)|]",
                abbr = "SH-%route% Bus.",
                banner = "Business plate.svg",
                width = "expand"}

OK["OK-Bus"] = OK["SH-Bus"]

OK["SH-Byp"] = {shield = OK.SH.shield,
                link = "Oklahoma State Highway %route% Bypass [dab||(%dab%)|]",
                abbr = "SH-%route% Byp.",
                banner = "By-pass plate.svg",
                width = "expand"}

OK["OK-Byp"] = OK["SH-Byp"]

OK["SH-Loop"] = {shield = OK.SH.shield,
                 link = "Oklahoma State Highway %route% Loop [dab||(%dab%)|]",
                 abbr = "SH-%route% Loop",
                 banner = "Loop plate.svg",
                 width = "expand"}

OK["OK-Loop"] = OK["SH-Loop"]

OK["SH 1924"] = { shield = "Oklahoma %route% 1924.svg",
				  link = OK.SH.link,
				  abbr = OK.SH.abbr
			 	}
			 
OK["SH 1948"] = { shield = "Oklahoma %route% 1948.svg",
				  link = OK.SH.link,
				  abbr = OK.SH.abbr
				}

OK["SH 1961"] = {shield = {hook = "splitlen",
                          split = 3,
                          above = "Elongated circle %route%.svg",
                          below = "Circle sign %route%.svg"},
                link = OK.SH.link,
                abbr = OK.SH.abbr,
                width = "expand"}

OK["SH-old"] = OK["SH 1961"]

OK["OK-old"] = OK["SH 1961"]

OK["SH-Spur"] = {shield = "Oklahoma State Highway %route%[route|7| Spur|].svg",
                 link = "Oklahoma State Highway %route% Spur [dab||(%dab%)|]",
                 abbr = "SH-%route% Spur",
                 banner = {["7"] = '',
                           default = "Spur plate.svg"},
                 width = "expand"}

OK["OK-Spur"] = OK["SH-Spur"]

OK["SH-Toll"] = {shield = OK.SH.shield,
                  link = "Oklahoma State Highway %route% [dab||(%dab%)|]",
                  abbr = "SH-%route%",
                  banner = "Toll plate yellow.svg",
                  width = "expand"}

OK["OK-Toll"] = OK["SH-Toll"]

OK["SH-Truck"] = {shield = OK.SH.shield,
                  link = "Oklahoma State Highway %route% Truck [dab||(%dab%)|]",
                  abbr = "SH-%route% Truck",
                  banner = "Truck plate.svg",
                  width = "expand"}

OK["OK-Truck"] = OK["SH-Truck"]

OK.AR = {alias = {module = "USA/AR", type = "Hwy"}}
OK.TX = {alias = {module = "USA/TX", type = "TX"}}
OK.NM = {alias = {module = "USA/NM", type = "NM"}}
OK.CO = {alias = {module = "USA/CO", type = "SH"}}
OK.KS = {alias = {module = "USA/KS", type = "K"}}
OK.MO = {alias = {module = "USA/MO", type = "Route"}}
OK.road = {alias = {module = "USA", type = "road"}}

return OK