มอดูล:Road data/strings/USA/HI

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานมอดูล[สร้าง]
--[==[
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"]`.
]==]

-- Hawaii
local HI = {}

local util = require("Module:Road data/util")
util.addAll(HI, require("Module:Road data/strings/USA"))

HI.I.shield = "I-H%route%.svg"
HI.I.name = "อินเตอร์สเตตเอช %route%"
HI.I.link = "อินเตอร์สเตตเอช %route%"
HI.I.abbr = "H-%route%"

for k, v in pairs(HI) do if k:find ("^I%-") then 
	v.shield = HI.I.shield
	v.name = HI.I.name
	v.link = HI.I.link
	v.abbr = HI.I.abbr
	end
end

HI.H = HI.I

--Do not add US Highways or USH special routes

HI.HI = {	
	shield = "HI-%route%.svg",
	name = "Hawaii Route %route%",
	link = "Hawaii Route %route%",
	abbr = "Route&nbsp;%route%"
}
HI.Route = HI.HI

-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(HI) do if k:find ("^%a") then
	v.maint = "[[Hawaii Department of Transportation|HDOT]]"
	v.browse = "[[List of Hawaii state highways|Routes in Hawaii]]"
	end
end

return HI