Module:Road data/strings/USA/ME 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))]

]

--Maine

local ME = require("Module:Road data/strings/USA")local format = mw.ustring.formatlocal util = require("Module:Road data/util")

local suffix = " ([dab||%dab%, |]Maine)"

ME.I.link =

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

ME.US.link = ME.US.base .. " [dab||(%dab%, Maine)|in Maine]"

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

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

ME.SR = ME.ME = ME.SR

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

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

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

ME.METP =

ME.NB = ME.QC = ME.A =

return ME