Module:Road data/strings/USA/WV explained

--[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]]and enter the following input text:

To inspect the content of this data module when editing, enter the followinginto 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 Virginialocal WV =

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

local suffix = " ([dab||%dab%, |]West Virginia)"local maint = "WVDOH"

WV.I.maint = maintWV.I.link =

for k, v in pairs(WV) do if k:find ("^I") then v.link = WV.I.link endend

WV.US.link =

for k, v in pairs(WV) do if k:find ("^US %d") then v.link = WV.US.link endend

for _,auxType in ipairs do local spec = WV[" aux "][auxType] for k, v in pairs(WV) do if k:find (auxType) then if k:find ("^US") then v.link = WV.US.base .. " " .. spec.name .. suffix v.banner = spec.banneralt .. " plate.svg" end end endend

WV.WV =

for _,type in ipairs do for _,year in ipairs do WV["WV " .. year] = endend

for _,type in ipairs do for _,auxType in ipairs do local spec = WV[" aux "][auxType] WV[type .. "-" .. auxType] = endend WV["WV-Alt"] =

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(WV) do if k:find ("^%a") then v.maint = "WVDOH" v.browse = "West Virginia State Highway System" v.browselinks = endend

WV.WVTP =

local CRFraction = '

%route%%denom%'

WV.CR =

WV.FR.link = ""

WV.OH = WV["US-VA"] =

return WV