Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Road data/strings/USA/MS
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
--[==[ 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"]`. ]==] -- Mississippi local MS = {} local util = require("Module:Road data/util") util.addAll(MS, require("Module:Road data/strings/USA")) local suffix = " ([dab||%dab%, |]Mississippi)" MS.I.link = { ["14"] = "Interstate 14", ["22"] = "Interstate 22", ["269"] = "Interstate 269", default = {hook = "splitlen", split = 3, above = "Interstate %route% (Mississippi)", below = "Interstate %route% in Mississippi" } } for k, v in pairs(MS) do if k:find ("^I") then v.link = MS.I.link end end MS.US.name = "U.S. Highway %route%" MS.US.link = "U.S. Route %route% in Mississippi" for k, v in pairs(MS) do if k:find ("^US %d") then v.name = MS.US.name v.link = MS.US.link end end for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do local spec = MS[" aux "][auxType] for k, v in pairs(MS) do if k:find (auxType) then if k:find ("^US") then v.banner = spec.banneralt .. " plate.svg" v.name = MS.US.name .. " " .. spec.name v.link = MS.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Mississippi)" end end end end MS.MS = { shield = { hook = "splitlen", split = 3, above = "Ellipse sign %route%.svg", below = { hook = "split", split = 20, above = "Elongated circle %route%.svg", below = "Ellipse sign %route%.svg" } }, base = "Mississippi Highway %route%", name = "Mississippi Highway %route%", link = "Mississippi Highway %route%[dab|| (%dab%)|]", abbr = "MS %route%", width = "expand"} for _,type in ipairs({'MS'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do local spec = MS[" aux "][auxType] MS["MS-" .. auxType] = { shield = MS.MS.shield, shieldmain = MS.MS.shield, name = MS.MS.name .. " " .. spec.name, link = MS.MS.base .. " " .. spec.name .. MS[" dab "], abbr = MS.MS.abbr .. " " .. spec.abbrsuffix, banner = spec.banneralt .. " plate.svg", aux = spec.aux, width = "expand", } end end MS["MS-Scenic"].shield = "Ellipse sign %route% blue.svg" MS["MS-Scenic"].shieldmain = MS["MS-Scenic"].shield MS["MS-Scenic"].banner = "Scenic Route plate blue.svg" MS["MS-Scenic"].bannersuffix = "blue" MS.FR.shield = "" MS.FR.link = "" MS["MS 1960"] = { shield = "Mississippi %route%.svg", name = MS.MS.name, link = MS.MS.link, abbr = MS.MS.abbr, width = "square" } -- add new types above this line if you want it to have the state highway browse and maint for k, v in pairs(MS) do if k:find ("^%a") then v.maint = "[[Mississippi Department of Transportation|MDOT]]" v.browse = "[[Mississippi State Highway System]]" v.browselinks = { [1] = "[[List of Interstate Highways in Mississippi|Interstate]]", [2] = "[[List of U.S. Routes in Mississippi|US]]", [3] = "[[List of state highways in Mississippi|State]]" } end end MS.AL = {alias = {module = "USA/AL", type = "MS"}} return MS
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Road data/strings/USA/MS/doc
(
edit
)