More actions
Documentation for this module may be created at Module:Road data/strings/AUS/doc
--[==[
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"]`.
]==]
-- Australia
local AUS = {}
--[[ REGION-SPECIFIC SETTINGS ]]--
AUS[" config "] = {
jctrow = {
bordersuffix = "boundary",
sub1_params = {"LGAC", "LGA-C", "LGARC", "LGA-Co", "LGADC", "LGA-DC",
"LGAM", "LGA-M", "LGA-R", "LGA-RC", "LGAS", "LGA-S", "LGAAS",
"LGAT"},
LGAC = {alias = {param = "sub1", sub1area = "pC"}},
["LGA-C"] = {alias = {param = "sub1", sub1area = "sC"}},
LGARC = {alias = {param = "sub1", sub1area = "pRC"}},
["LGA-Co"] = {alias = {param = "sub1", sub1area = "sCo"}},
LGADC = {alias = {param = "sub1", sub1area = "pDC"}},
["LGA-DC"] = {alias = {param = "sub1", sub1area = "sDC"}},
LGAM = {alias = {param = "sub1", sub1area = "pM"}},
["LGA-M"] = {alias = {param = "sub1", sub1area = "sM"}},
["LGA-R"] = {alias = {param = "sub1", sub1area = "sR"}},
["LGA-RC"] = {alias = {param = "sub1", sub1area = "sRC"}},
LGAS = {alias = {param = "sub1", sub1area = "pS"}},
["LGA-S"] = {alias = {param = "sub1", sub1area = "sS"}},
LGAAS = {alias = {param = "sub1", sub1area = "pAS"}},
LGAT = {alias = {param = "sub1", sub1area = "pT"}},
sub2_params = {"location"},
location = {alias = {param = "sub2"}},
}
}
AUS[" common "] = {
country = "Australia",
region = {
arg = "state",
ACT = "Australian Capital Territory",
NSW = "New South Wales",
NT = "Northern Territory",
QLD = "Queensland",
SA = "South Australia",
TAS = "Tasmania",
VIC = {link = "Victoria (Australia)", name = "Victoria"},
WA = "Western Australia"
},
locations = {
indep_city = {
linksuffix = ", %region%",
prefix = "[[Independent city|City]] of ",
jcttoparticle = "the "
},
sub1 = {},
sub1areas = {
pC = {
linkprefix = "City of ",
jcttoparticle = "the "
},
sC = {linksuffix = " City"},
pRC = {
linkprefix = "Rural City of ",
jcttoparticle = "the "
},
sCo = {linksuffix = " Council"},
pDC = {
linkprefix = "District Council of ",
jcttoparticle = "the "
},
sDC = {linksuffix = " District Council"},
pM = {
linkprefix = "Municipality of ",
jcttoparticle = "the "
},
sM = {linksuffix = " Municipality"},
sR = {linksuffix = " Region"},
sRC = {linksuffix = " Region Council"},
pS = {
linkprefix = "Shire of ",
jcttoparticle = "the "
},
sS = {linksuffix = " Shire"},
pAS = {
linkprefix = "Aboriginal Shire of ",
jcttoparticle = "the "
},
pT = {
linkprefix = "Town of ",
jcttoparticle = "the "
}
},
sub2 = {
linksuffix = ", %region%"
}
}
}
--[[ ROUTE TYPES ]]--
AUS.N = {
shield = "Australian national highway %route%.svg",
name = "National Highway %route%",
link = {
ifexists = true,
default = "National Highway %route% (Australia)"
},
abbr = "National Highway %route%",
orientation = "upright"
}
AUS.A = {
shield = "AUS Alphanumeric Route A%route%.svg",
name = "A%route%",
link = {
hook = "mask",
mask = "Road data/masks/AUS",
base = "state",
masked = "fullState",
ifexists = true,
default = "A%route% (%fullState%)"
},
abbr = "State Route A%route%"
}
AUS.B = {
shield = "AUS Alphanumeric Route B%route%.svg",
name = "B%route%",
link = {
hook = "mask",
mask = "Road data/masks/AUS",
base = "state",
masked = "fullState",
ifexists = true,
default = "B%route% (%fullState%)"
},
abbr = "State Route B%route%"
}
AUS.C = {
shield = "AUS Alphanumeric Route C%route%.svg",
name = "C%route%",
link = {
hook = "mask",
mask = "Road data/masks/AUS",
base = "state",
masked = "fullState",
ifexists = true,
default = "C%route% (%fullState%)"
},
abbr = "C%route%"
}
AUS.M = {
shield = "AUS Alphanumeric Route M%route%.svg",
name = "M%route%",
link = {
hook = "mask",
mask = "Road data/masks/AUS",
base = "state",
masked = "fullState",
ifexists = true,
default = "M%route% (%fullState%)"
},
abbr = "M%route%"
}
AUS.S = {
shield = "Australian state route %route%.svg",
name = "State Route %route%",
link = {
hook = "mask",
mask = "Road data/masks/AUS",
base = "state",
masked = "fullState",
ifexists = true,
default = "State Route %route% (%fullState%)"
},
abbr = "State Route %route%"
}
AUS.R = {
shield = "Australian national route %route%.svg",
name = "National Route %route%",
link = {
ifexists = true,
default = "National Route %route% (Australia)"
},
abbr = "National Route %route%",
orientation = "upright"
}
AUS.AR = {
shield = "Australian national route ALT%route%.svg",
name = "Alternate National Route %route%",
link = {
ifexists = true,
default = "Alternate National Route %route% (Australia)"
},
abbr = "Alternate National Route %route%",
orientation = "upright"
}
AUS.T = {
shield = "Australian Tourist Drive %route%.svg",
name = "Tourist Drive %route%",
link = {
hook = "mask",
mask = "Road data/masks/AUS",
base = "state",
masked = "fullState",
ifexists = true,
default = "Tourist Drive %route% (%fullState%)"
},
abbr = "Tourist Drive %route%"
}
AUS.Met = {
shield = "AUS Metroad %route%.svg",
name = "Metroad %route%",
link = {
arg = "state",
NSW = "Metroad %route% (Sydney)",
QLD = "Metroad %route% (Brisbane)",
default = ""
},
abbr = "Metroad %route%"
}
local stateBrowse = {
arg = "state",
ACT = "[[Road infrastructure in Canberra]]",
NSW = "[[Highways in New South Wales]]",
NT = "[[List of highways in Northern Territory|Highways in Northern Territory]]",
QLD = "[[List of highways in Queensland|Highways in Queensland]]",
SA = "[[List of highways in South Australia|Highways in South Australia]]",
TAS = "[[List of highways in Tasmania|Highways in Tasmania]]",
VIC = "[[List of highways in Victoria|Highways in Victoria]]",
WA = "[[List of highways in Western Australia|Highways in Western Australia]]",
}
-- add new types above this line if you want it to have the provincial highway browse and maint
for k, v in pairs(AUS) do if k:find ("^%a") then
v.nbrowse = "[[Highways in Australia]]"
v.nbrowselinks = {
[1] = "[[National Highway (Australia)|National Highway]]",
[2] = "[[Freeways in Australia]]"
}
v.browse = stateBrowse
end
end
return AUS