Module:Road data/strings/USA/MO: Difference between revisions

Content deleted Content added
add
add city support
Line 60:
MO.US.maint = maint
 
for _,year in ipairs({"1926", "1948", "1961", "1978"}) do
MO["US 1926"].shieldmain = "US %route% Missouri 1926.svg"
MO["US 1926"] ..link year] = MO.US.link{
MO["US 1948"].shieldmain shield = format("US %%route%% Missouri 1948(%s).svg", year),
MO["US 1926"]. shieldmain = format("US %%route%% Missouri 1926%s.svg", year),
MO["US 1948"].link = MO.US.link
MO["US 1961"].link base = MO.US.linkbase,
name = MO.US.name,
MO["US 1948"]. link = MO.US.link,
abbr = MO.US.abbr,
width = "square",
},
end
 
MO["US-Alt 1961"].linkshieldmain = "U.S. RouteUS %route% Alternate(1961).svg" .. suffix
MO["US-Alt 1978"].maintshield = maint{
hook = "splitlen",
split = 3,
above = "US %route% square.svg",
below = "US %route%.svg"
}
MO["US 1978"].shieldmain = {
hook = "splitlen",
split = 3,
shield above = "US %route% (1961)square.svg",
shield below = "US %route% (1961).svg",
}
MO["US 1978"].width = "square"
 
for _,type in ipairs({'US', 'US 1948', 'US 1961'}) do
MO["US-Bus"].link = "U.S. Route %route% Business" .. suffix
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
MO["US-Bus"].maint = maint
local spec = MO[" aux "][auxType]
MO[type .. "-" .. auxType] = {
shield = MO[type].shield,
shieldmain = MO[type].shieldmain,
name = MO[type].name .. " " .. spec.name,
link = MO[type].link .. " " .. spec.name .. suffix,
abbr = MO.US[type].abbr .. " City" .. spec.abbrsuffix,
banner = spec.bannerprefix .. "City plate.svg",
aux = spec.aux,
width = MO[type].width
}
end
end
 
MO["US-Byp"].link = "U.S. Route %route% Bypass" .. suffix
MO["US-Byp"].maint = maint
 
MO["US-City"] = {
shield = "US %route% (1961).svg",
link = "U.S. Route %route% City" .. suffix,
abbr = MO.US.abbr .. " City",
banner = "City plate.svg"
 
MO["US-Spur"].link = "U.S. Route %route% Spur" .. suffix
MO["US-Spur"].maint = maint
 
MO["US-Truck"].link = "U.S. Route %route% Truck" .. suffix
 
MO["US-Hist"].shield = "US %route% (MO historic).svg"
MO["US-Hist"].link = MO.US.link
 
MO["US 1961-Bus"] = {
shield = "US %route% (1961).svg",
name = MO["US-Bus"].name,
link = MO["US-Bus"].link,
abbr = MO["US-Bus"].abbr,
banner = "Business plate.svg",
width = "square"
 
MO["US 1961-Spur"] = {
shield = "US %route% (1961).svg",
name = MO["US-Spur"].name,
link = MO["US-Spur"].link,
abbr = MO["US-Spur"].abbr,
banner = "Spur plate.svg"
}
 
MO["US 1978"] = {
shield = {
hook = "splitlen",
split = 3,
above = "US %route% square.svg",
below = "US %route%.svg"
},
name = MO.US.name,
link = MO.US.link,
abbr = MO.US.abbr,
maint = maint,
width = "square"
}
 
MO.Route = {