Jump to content

Module:Road data/strings/USA/OH

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 08:08, 12 February 2021 (update module). 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"]`.
]==]

-- Ohio
local OH = {}

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

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

OH.I.link = {["71"] = "Interstate 71",
        		["80S"] = "Interstate 76 in Ohio",
                ["271"] = "Interstate 271",
                ["275"] = "Interstate 275 (Ohio–Indiana–Kentucky)",
                ["470"] = "Interstate 470 (Ohio–West Virginia)",
                ["471"] = "Interstate 471",
                ["480N"] = "Interstate 480N (Ohio)",
                default = {hook = "split",
	        split = 100,
	        above = "Interstate %route% (Ohio)",
	        below = "Interstate %route% in Ohio"}}
        
OH["I 1957"].link = OH.I.link
OH["I 1961"].link = OH.I.link

OH.BL.link = "Interstate %route% Business ([dab||%dab%, |]Ohio)"

OH.US.link = "U.S. Route %route% in Ohio"

OH.USD = {shield = OH.US.shield,
          link = OH.US.name .. "D",
          link = "U.S. Route %route%D ([dab||%dab%, Ohio|])",
          abbr = "US&nbsp;%route%D",
          width = "expand"}

OH["US 1926"].shieldmain = "US %route% Ohio 1926.svg"
OH["US 1926"].link = OH.US.link
OH["US 1948"].shieldmain = "US %route% Ohio 1948.svg"
OH["US 1948"].link = OH.US.link
OH["US 1961"].link = OH.US.link

OH["US-Alt"].link = OH.US.base .. " Alternate" .. suffix
OH["US-Bus"].link = OH.US.base .. " Business" .. suffix
OH["US-Byp"].link = OH.US.base .. " Bypass" .. suffix
OH["US-Spur"].link = OH.US.base .. " Spur" .. suffix
OH["US-Truck"].link = OH.US.base .. " Truck" .. suffix
         	
OH["US 1961-Alt"] = {shield = OH["US 1961"].shield,
                name = OH["US-Alt"].name,
                link = OH["US-Alt"].link,
                abbr = OH["US-Alt"].abbr,
                banner = OH["US-Alt"].banner}         	
         		
OH.SR = {shield = "OH-%route%.svg",
         name = "State Route %route%",
         link = "Ohio State Route %route% [dab||(%dab%)|]",
         abbr = "SR&nbsp;%route%",
         width = "expand"}
         
OH["SR-Byp"] = {shield = OH.SR.shield,
				name = OH.SR.name .. " Bypass",
                link = "Ohio State Route %route% Bypass [dab||(%dab%)|]",
                abbr = "SR&nbsp;%route% Byp.",
                banner = "By-pass plate.svg",
                width = "expand"}               

OH.OH = OH.SR

OH["OH-Byp"] = OH["SR-Byp"]

OH["SR-Bus"] = {shield = "OH-%route%.svg",
				name = OH.SR.name .. " Business",
                link = "Ohio State Route %route% Business [dab||(%dab%)|]",
                abbr = "SR&nbsp;%route% Bus.",
                banner = "Business plate.svg",
                width = "expand"}

OH["SR-Alt"] = {shield = "OH-%route%.svg",
				name = OH.SR.name .. " Alternate",
                  link = "Ohio State Route %route% Alternate [dab||(%dab%)|]",
                  abbr = "SR&nbsp;%route% Alt.",
                  banner = "Alternate plate.svg",
                  width = "expand"}

OH["SR-Truck"] = {shield = "OH-%route%.svg",
				name = OH.SR.name .. " Truck",
                  link = "Ohio State Route %route% Truck [dab||(%dab%)|]",
                  abbr = "SR&nbsp;%route% Truck",
                  banner = "Truck plate.svg",
                  width = "expand"}
                  
OH["OH ICH"] = {shield = "OH-%route% (1912).svg",
			  	name = "Inter-county Highway %route%",
			  	link = "Ohio Inter-county Highway %route%",
			  	abbr = "ICH %route%"}

OH["OH 1920"] = {shield = "OH-%route% (1920).svg",
         		name = OH.SR.name,
         		link = OH.SR.link,
         		abbr = OH.SR.abbr}
         	
OH["OH 1927"] = {shield = "OH-%route% (1927).svg",
         		name = OH.SR.name,
         		link = OH.SR.link,
         		abbr = OH.SR.abbr}

OH["OH 1948"] = {shield = "OH-%route% (1948).svg",
         		name = OH.SR.name,
         		link = OH.SR.link,
         		abbr = OH.SR.abbr}

OH["OH 1960"] = {shield = "OH-%route% (1960).svg",
         		name = OH.SR.name,
         		link = OH.SR.link,
         		abbr = OH.SR.abbr}
         	
OH["OH 1967"] = {shield = {hook = "splitlen",
				         split = 3,
						 above = "OH-%route% (1967).svg",
					     below = OH.SR.shield},
         		name = OH.SR.name,
         		link = OH.SR.link,
         		abbr = OH.SR.abbr}
         	
OH.SRD = {shield = "OH-%route%.svg",
         name = OH.SR.name .. "D",
         link = "Ohio State Route %route%D [dab||(%dab%)|]",
         abbr = "SR&nbsp;%route%D",
         width = "expand"}
         
OH.OHD = OH.SRD         
         
OH.MMR = {shield = "RomanNumeral-%route% (OH MMR).svg",
			  	name = "Main Market Route %route%",
			  	link = "Ohio Main Market Route %route% [dab||(%dab%)|]",
			  	abbr = "MMR %route%"}

OH.OHTP = {shield = "OhioTurnpike.svg",
           name = "Ohio Turnpike",
           link = "Ohio Turnpike",
           abbr = "Ohio Turnpike",
           bannersuffix = "Vermont"}

local countyShields = {
	ifexists   = true,
	arg        = "county",
	
	Ashland    = "CR %route% jct (green alt).svg",
	Athens     = "CR %route% jct (green).svg",
	Auglaize   = "CR %route% jct (OH).svg",
	Belmont    = "CR %route% jct (green).svg",
	Carroll    = "CR %route% jct (OH).svg",
	Coshocton  = "CR %route% jct (OH).svg",
	Columbiana = "CR %route% jct.svg",
	Fairfield  = "CR %route% jct (OH).svg",
	Fulton     = "CR %route% jct (OH).svg",
	Gallia     = "CR %route% jct (OH).svg",
	Guernsey   = "CR %route% jct (green).svg",
	Hardin     = "CR %route% jct (green).svg",
	Harrison   = "CR %route% jct (OH).svg",
	Henry      = "CR %route% jct (green).svg",
	Hocking    = "CR %route% jct (OH).svg",
	Holmes     = "CR %route% jct (OH).svg",
	Jefferson  = "CR %route% jct.svg",
	Knox       = "CR %route% jct (OH).svg",
	Lawrence   = "CR %route% jct (OH).svg",
	Licking    = "CR %route% jct (OH).svg",
	Logan      = "CR %route% jct (OH).svg",
	Madison    = "CR %route% jct.svg",
	Mahoning   = "CR %route% jct.svg",
	Medina     = "CR %route% jct (blue).svg",
	Miami      = "CR %route% jct (OH).svg",
	Monroe     = "CR %route% jct (green).svg",
	Morgan     = "CR %route% jct (OH).svg",
	Morrow     = "CR %route% jct (OH).svg",
	Noble      = "CR %route% jct (blue).svg",
	Ottawa     = "CR %route% jct.svg",
	Paulding   = "CR %route% jct (green).svg",
	Scioto     = "Scioto County Route %route% OH.svg",
	Seneca     = "CR %route% jct.svg",
	Shelby     = "CR %route% jct (OH).svg",
	Stark      = "CR %route% jct.svg",
	Summit     = "CR %route% jct.svg",
	Trumbull   = "CR %route% jct (yellow).svg",
	Tuscarawas = "CR %route% jct.svg",
	Union      = "CR %route% jct (OH).svg",
	Vinton     = "CR %route% jct (yellow).svg",
	Washington = "CR %route% jct (green).svg",
	Wayne      = "CR %route% jct (OH).svg",
	Williams   = "CR %route% jct (green).svg",
	Wyandot    = "CR %route% jct (OH).svg"
}

OH.CR.shield = countyShields

OH.TR = {shield = {ifexists = true,
	default  = "%township% Township Route %route%, %county% County, Ohio.svg"},
         link = "",
         abbr = "TR&nbsp;%route%"}

OH.SBR = {shield = "US Bike %route% (M1-8).svg",
        link = "Ohio State Bike Route %route%",
        abbr = "State Bike Route %route%"}

OH.KY = {alias = {module = "USA/KY", type = "KY"}}
OH["US-KY"] = {alias = {module = "USA/KY", type = "US"}}
OH.AA = {alias = {module = "USA/KY", type = "AA"}}
OH.WV = {alias = {module = "USA/WV", type = "WV"}}
OH.IN = {alias = {module = "USA/IN", type = "IN"}}
OH.road = {alias = {module = "USA", type = "road"}}

return OH