Module:Road data/strings/USA/OH

MyWikiBiz, Author Your Legacy — Thursday December 05, 2024
< Module:Road data‎ | strings‎ | USA
Revision as of 05:48, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/USA/OH/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"]`.
]==]

-- Ohio
local OH = {}

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

local suffix = " ([dab||%dab%, |]Ohio)"
local suffix2 = " [dab||(%dab%)|]"
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 = {
	base = "Ohio State Route %route%",
	shield = "OH-%route%.svg",
	name = "State Route %route%",
	link = "Ohio State Route %route% [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route%",
	width = "expand"
}

OH.OH = OH.SR

for _,type in ipairs({'SR'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Temp", "Truck"}) do
		local spec = OH[" aux "][auxType]
		OH["SR-" .. auxType] = {
			shield = OH.SR.shield,
			shieldmain = OH.SR.shield,
			name = OH.SR.name .. " " .. spec.name,
			link = OH.SR.base .. " " .. spec.name .. suffix2,
			abbr = OH.SR.abbr .. " " .. spec.abbrsuffix,
			banner = spec.bannerprefix .. " plate.svg",
			aux = spec.aux,
			width = "expand",
		}
	end
end

OH["OH-Alt"] = OH["SR-Alt"]
OH["OH-Bus"] = OH["SR-Bus"]
OH["OH-Byp"] = OH["SR-Byp"]
OH["OH-Spur"] = OH["SR-Spur"]
OH["OH-Truck"] = OH["SR-Truck"]
	  
OH["OH ICH"] = {
	shield = "OH-%route% (1912).svg",
	name = "Inter-county Highway %route%",
	link = "Ohio Inter-county Highway %route%",
	abbr = "ICH %route%"
	
}

for _,year in ipairs({"1920", "1927", "1948", "1960", "1967"}) do
	OH["SR " .. year] = {
		shield = format("OH-%%route%% (%s).svg", year),
		shieldmain = format("OH-%%route%% (%s).svg", year),
		name = OH.SR.name,
		link = OH.SR.link,
		abbr = OH.SR.abbr,
		width = "square",
	}
end

OH["SR 1967"].shield = {
	hook = "splitlen",
	split = 3,
	above = "OH-%route% (1967).svg",
	below = OH.SR.shield
	
}

OH["OH 1920"] = OH["SR 1920"]				     
OH["OH 1927"] = OH["SR 1927"]				     
OH["OH 1948"] = OH["SR 1948"]				     
OH["OH 1960"] = OH["SR 1960"]				     
OH["OH 1967"] = OH["SR 1967"]

OH["SR 1960-Temp"] = {
	shield = OH["SR 1960"].shield,
	name = OH["SR-Temp"].name,
	link = OH["SR-Temp"].link,
	abbr = OH["SR-Temp"].abbr,
	banner = OH["SR-Temp"].banner
}
OH["OH 1960-Temp"] = OH["SR 1960-Temp"]
         	
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"
	
}

OH.CR.shield = '' --[[{
	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.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%",
	orientation = "upright"
}

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