模組:Road data/banners/USA
閱讀設定
模組解[開]
你可能想去為呢個Scribunto module開一個解版。 編者可以響呢個模組嘅沙盤 (開 | 鏡)同埋試例 (開)版度試驗佢。 請加個類到個/doc嘅細版度。 呢個模組嘅細版。 |
local USA = {}
USA.to = {
shield = {
arg = "type",
["US 1926"] = "",
["SR 1927"] = "",
["SR 1934 S"] = "",
["NM 1926"] = "",
["NM 1932"] = "",
default = "To plate"
},
shieldsize = "20"
}
USA.dir = {
shield = {
arg = "type",
["US 1926"] = "",
["SR 1927"] = "",
["SR 1934 S"] = "",
["NM 1926"] = "",
["NM 1932"] = "",
default = {
arg = "dir",
-- east = "East plate",
-- north = "North plate",
-- south = "South plate",
-- west = "West plate",
-- East = "East plate",
-- North = "North plate",
-- South = "South plate",
-- West = "West plate",
begins = "Begin plate",
ends = "End plate"
}
},
shieldsize = "20"
}
USA.suffix = {
shield = {
arg = "type",
I = "blue",
["I-Toll"] = "blue",
["I 1957"] = "blue",
BL = "green",
BS = "green",
["BL 1957"] = "green",
["BS 1957"] = "green",
CR = {
hook = "match",
entry = "shield",
actions = {
-- %S+ represents a nonempty sequence of characters containing no spaces.
-- Also need to escape dot with %.
["CR %S+ jct%.svg"] = "county",
["CR %S+ jct wide%.svg"] = "county",
["County %S+ square%.svg"] = ""
}
},
GRR = "Vermont",
["US-Hist"] = "brown",
["US 1956 E"] = "brown",
["US 1956 W"] = "blue",
["US 1956 N"] = "brown", -- there are no orange banners
["US 1956 S"] = "green",
PR = "blue (es)",
Urban = "(es)",
Sec = {
arg = "state",
PR = "county (es)"
},
Ter = "(es)",
default = {
hook = "beginswith",
base = "type",
actions = {
CA = "green",
MN = "blue",
SC = "South Carolina",
SD = "South Dakota",
VT = "Vermont",
WY = "Wyoming"
}
}
}
}
return USA