Module:Road data/strings/USA/WV
MyWikiBiz, Author Your Legacy — Tuesday November 26, 2024
< Module:Road data | strings | USA
Jump to navigationJump to searchDocumentation for this module may be created at Module:Road data/strings/USA/WV/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"]`. ]==] -- West Virginia local WV = {} local util = require("Module:Road data/util") util.addAll(WV, require("Module:Road data/strings/USA")) local suffix = " ([dab||%dab%, |]West Virginia)" local maint = "[[West Virginia Division of Highways|WVDOH]]" WV.I.maint = maint WV.I.link = { ["68"] = "Interstate 68", ["79"] = "Interstate 79", ["470"] = "Interstate 470 (Ohio–West Virginia)", default = "Interstate %route% in West Virginia" } WV["I 1957"].link = WV.I.link WV["I 1961"].link = WV.I.link WV.US.link = { ["35"] = "U.S. Route 35", ["48"] = "U.S. Route 48", ["119"] = "U.S. Route 119", ["121"] = "U.S. Route 121", ["340"] = "U.S. Route 340", ["460"] = "U.S. Route 460", ["522"] = "U.S. Route 522", default = "U.S. Route %route% in West Virginia" } for _,year in ipairs({"1926", "1948", "1961"}) do local oldUSmain = "US " .. year WV[oldUSmain].link = WV.US.link end WV["US 1926"].shieldmain = "US %route% West Virginia 1926.svg" WV["US 1948"].shieldmain = "US %route% West Virginia 1948.svg" WV.WV = { base = "West Virginia Route %route%", shield = "WV-%route%.svg", name = "West Virginia Route %route%", link = "West Virginia Route %route%" .. WV[" dab "], abbr = "WV %route%", width = "expand" } WV["WV 1922"] = { shield = "WV-%route% (1922).svg", name = WV.WV.name, link = WV.WV.link, abbr = WV.WV.abbr } WV["WV 1948"] = { shield = "WV-%route% (1948).svg", name = WV.WV.name, link = WV.WV.link, abbr = WV.WV.abbr } WV["WV-Alt"] = { shield = WV.WV.shield, name = WV.WV.name .. " Alternate", link = "West Virginia Route %route% Alternate [dab||(%dab%)|]", abbr = "WV %route% Alt.", banner = "Alt plate.svg", width = "expand" } WV["WV-Bus"] = { shield = WV.WV.shield, name = WV.WV.name .. " Business", link = "West Virginia Route %route% Business [dab||(%dab%)|]", abbr = "WV %route% Bus.", banner = "Business plate.svg", width = "expand" } WV["WV-Spur"] = { shield = WV.WV.shield, name = WV.WV.name .. " Spur", link = "West Virginia Route %route% Spur [dab||(%dab%)|]", abbr = "WV %route% Spur", banner = "Spur plate.svg", width = "expand" } WV["WV-Truck"] = { shield = WV.WV.shield, name = WV.WV.name .. " Truck", link = "West Virginia Route %route% Truck [dab||(%dab%)|]", abbr = "WV %route% Truck", banner = "Truck plate.svg", width = "expand" } WV.WVTP = {shield = "", name = "West Virginia Turnpike", link = "West Virginia Turnpike", abbr = "West Virginia Turnpike" } local CRFraction = '<span class="nowrap" style="display:inline-block; vertical-align:-0.5em; font-size:85%; text-align:center;"><span style="display:block; line-height:1em; padding:0 0.1em;">%route%</span><span style="display:block; line-height:1em; padding:0 0.1em; border-top:1px solid;">%denom%</span></span>' WV.CR = { shield = {["507"] = "Ellipse sign 507.svg", ["707"] = "Ellipse sign 707.svg", ["857"] = "Ellipse sign 857.svg", default = "Circle sign %route%[denom||-%denom%|].svg" }, link = { ifexists = true, default = "County Route %route% (%county% County, West Virginia)" }, abbr = "CR [denom||" .. CRFraction .. "|%route%]" } WV.FR.link = "" WV.OH = {alias = {module = "USA/OH", type = "SR"}} WV["US-VA"] = {alias = {module = "USA/VA", type = "US"}} return WV