Module:Road data/strings/BAU

From MicroWiki, the free micronational encyclopædia
Jump to navigation Jump to search

Documentation for this module may be created at Module:Road data/strings/BAU/doc

local BAU = {}

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

BAU.Highway = {
			 shieldmain = "Baustralia %route%[dab|| (%dab%)|].svg",
		     shield = "Baustralia %route% [dab||(%dab%)|] jct.svg",
		     shieldlist = {
		     	["100"] = {"Baustralia 100.svg", "Peterborough 4.svg"},
		     	default = "Baustralia %route%[dab|| (%dab%)|].svg"},
             link = "Baustralian Highway %route% [dab||(%dab%)|]",
             abbr = "Highway %route%",
             name = "Highway %route%",
             bannersuffix = {
             	["6"] = "redesignation",
             	["10"] = "redesignation",
             	["11"] = "redesignation",
             	["19"] = "redesignation",
             	["20"] = "redesignation",
             	["21"] = "redesignation",
             	["22"] = "redesignation",
             	default = "South Carolina"},
             orientation = "upright"
}

BAU["Highway-whiteoverride"] = {
			 shieldmain = "Baustralia %route% (white).svg",
			 shield = "Baustralia %route% (white) jct.svg",
			 shieldlist = "Baustralia %route% (white).svg",
             link = BAU.Highway.link,
             abbr = BAU.Highway.abbr,
             name = BAU.Highway.name,
             orientation = BAU.Highway.orientation,
             width = BAU.Highway.width
}

BAU["Highway-2021"] = {
			 shieldmain = "Baustralia %route% (2021).svg",
			 shield = "Baustralia %route% small.svg",
			 shieldlist = "Baustralia %route% (2021).svg",
             link = BAU.Highway.link,
             abbr = BAU.Highway.abbr,
             name = BAU.Highway.name,
             orientation = BAU.Highway.orientation,
             width = BAU.Highway.width
}

BAU["Highway-Bus-Old"] = {
			 shield = "Baustralia %route%.svg",
             link = BAU.Highway.link .. "#Highway %route% Business",
             abbr = "Old " .. BAU.Highway.abbr .. " Business",
             name = "Old" .. BAU.Highway.name .. "Business",
             banner = {"Business plate South Carolina.svg", "Old plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["Highway-Bus-Aux-Old"] = {
			 shield = "Baustralia %route%.svg",
             link = BAU.Highway.link .. "#Highway %route% Business Auxiliary",
             abbr = "Old " .. BAU.Highway.abbr .. " Business Auxiliary",
             name = "Old" .. BAU.Highway.name .. "Business Auxiliary",
             banner = {"Auxiliary plate South Carolina.svg", "Business plate South Carolina.svg", "Old plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["Highway-Bus-Aux"] = {
			 shield = "Baustralia %route%.svg",
             link = BAU.Highway.link .. "#Highway %route% Business Auxiliary",
             abbr = BAU.Highway.abbr .. " Business Auxiliary",
             name = BAU.Highway.name .. " Business Auxiliary",
             banner = {"Auxiliary plate South Carolina.svg", "Business plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["Highway-Old"] = {
			 shield = "Baustralia %route%.svg",
             link = BAU.Highway.link,
             abbr = "Old " .. BAU.Highway.abbr,
             name = "Old" .. BAU.Highway.name,
             banner = "Old plate South Carolina.svg",
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["SPL-Old"] = {
			 shield = "Paloma %route% small.svg",
             link = "Paloman Federal Highway %route%",
             abbr = "Old Federal Highway %route%",
             name = "Old Federal Highway %route%",
             banner = "Old plate Vermont.svg"
}

BAU["Highway-2019-Old"] = {
			 shieldmain = "Baustralia %route% (2021).svg",
			 shield = "Baustralia %route% small.svg",
             link = BAU.Highway.link,
             abbr = "Old " .. BAU.Highway.abbr,
             name = "Old" .. BAU.Highway.name,
             banner = "Old plate.svg",
             orientation = BAU.Highway.orientation,
             width = BAU.Highway.width
}

BAU["Highway-Alt-Spur"] = {
			 shield = "Baustralia %route%.svg",
             link = BAU.Highway.link .. "#Highway %route% Alternate Spur",
             abbr = BAU.Highway.abbr .. " Alternate Spur",
             name = BAU.Highway.name .. " Alternate Spur",
             banner = {["50"] = {"Spur plate green.svg", "Alternate plate green.svg"}, default = {"Spur plate South Carolina.svg", "Alternate plate South Carolina.svg"}},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["Highway-Scenic-Spur"] = {
			 shield = "Baustralia %route%.svg",
             link = BAU.Highway.link .. "#Highway %route% Scenic Spur",
             abbr = BAU.Highway.abbr .. " Scenic Spur",
             name = BAU.Highway.name .. " Scenic Spur",
             banner = {["50"] = {"Spur plate green.svg", "Scenic plate green.svg"}, default = {"Spur plate South Carolina.svg", "Scenic plate South Carolina.svg"}},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["Highway-Bus-Loop"] = {
			 shield = "Baustralia %route%.svg",
             link = BAU.Highway.link .. "#Highway %route% Business Loop",
             abbr = BAU.Highway.abbr .. " Business Loop",
             name = BAU.Highway.name .. " Business Loop",
             banner = {"Loop plate South Carolina.svg", "Business plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU.Hwy = {
			 shield = BAU.Highway.shield,
			 shieldmain = BAU.Highway.shieldmain,
			 shieldlist = BAU.Highway.shieldlist,
             link = BAU.Highway.link,
             abbr = "Hwy. %route%",
             name = BAU.Highway.name,
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["Hwy-2021"] = {
		     shieldmain = BAU["Highway-2021"].shieldmain,
			 shield = BAU["Highway-2021"].shield,
             link = BAU.Highway.link,
             abbr = BAU.Hwy.abbr,
             name = BAU.Highway.name,
             orientation = BAU.Highway.orientation,
             width = BAU.Highway.width
}

BAU["Hwy-Old"] = {
			 shield = BAU.Highway.shield,
             link = BAU.Highway.link,
             abbr = "Old " .. BAU.Hwy.abbr,
             name = "Old " .. BAU.Highway.name,
             banner = "Old plate South Carolina.svg",
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["Hwy-Bus-Old"] = {
			 shield = BAU.Highway.shield,
             link = BAU.Highway.link .. "#Highway %route% Business",
             abbr = "Old " .. BAU.Hwy.abbr .. " Bus.",
             name = "Old " .. BAU.Highway.name .. " Business",
             banner = {"Old plate South Carolina.svg", "Business plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}
BAU["Hwy-Bus-Aux-Old"] = {
			 shield = BAU.Highway.shield,
             link = BAU.Highway.link .. "#Highway %route% Business Auxiliary",
             abbr = "Old " .. BAU.Hwy.abbr .. " Bus. Aux.",
             name = "Old " .. BAU.Highway.name .. " Business Auxiliary",
             banner = {"Old plate South Carolina.svg", "Business plate South Carolina.svg", "Auxiliary plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}
BAU["Hwy-Bus-Aux"] = {
			 shield = BAU.Highway.shield,
             link = BAU.Highway.link .. "#Highway %route% Business Auxiliary",
             abbr = BAU.Hwy.abbr .. " Bus. Aux.",
             name = BAU.Highway.name .. " Business Auxiliary",
             banner = {"Business plate South Carolina.svg", "Auxiliary plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}
BAU["Hwy-Alt-Spur"] = {
			 shield = BAU.Highway.shield,
             link = BAU.Highway.link .. "#Highway %route% Alternate Spur",
             abbr = BAU.Hwy.abbr .. " Alt. Spur",
             name = BAU.Highway.name .. " Alternate Spur",
             banner = {"Spur plate South Carolina.svg", "Alternate plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}
BAU["Hwy-Scenic-Spur"] = {
			 shield = BAU.Highway.shield,
             link = BAU.Highway.link .. "#Highway %route% Scenic Spur",
             abbr = BAU.Hwy.abbr .. " Scenic Spur",
             name = BAU.Highway.name .. " Scenic Spur",
             banner = {"Spur plate South Carolina.svg", "Scenic plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU["Hwy-Bus-Loop"] = {
			 shield = "Baustralia %route%.svg",
             link = BAU.Highway.link .. "#Highway %route% Business Loop",
             abbr = BAU.Hwy.abbr .. " Business Loop",
             name = BAU.Highway.name .. " Business Loop",
             banner = {"Loop plate South Carolina.svg", "Business plate South Carolina.svg"},
             width = BAU.Highway.width,
             orientation = BAU.Highway.orientation,
             bannersuffix = BAU.Highway.bannersuffix
}

BAU[" dab "] = "[dab|| (%dab%)|]"
BAU[" aux "] = {
	Alt = {
		name = "Alternate",
		abbrsuffix = "Alt.",
	},
	Aux = {
		name = "Auxiliary",
		abbrsuffix = "Aux.",
	},
	Bus = {
		name = "Business",
		abbrsuffix = "Bus.",
	},
	Byp = {
		name = "Bypass",
		abbrsuffix = "Byp.",
	},
	City = {
		name = "City",
	},
	Conn = {
		name = "Connector",
		abbrsuffix = "Conn.",
	},
	Detour = {
		name = "Detour",
	},
	Emerg = {
		name = "Emergency",
		abbrsuffix = "Emerg."
	},
	Express = {
		name = "Express",
		aux = "Express route"
	},
	Future = {
		name = "Future",
		aux = "Future routing"
	},
	Local = {
		name = "Local",
		aux = "Local route"
	},
	Loop = {name = "Loop"},
	Old = {name = "Old"},
	Opt = {
		name = "Optional",
		abbrsuffix = "Opt."
	},
	Scenic = {name = "Scenic"},
	Spur = {
		name = "Spur",
		arksuffix = "S"
	},
	Temp = {
		name = "Temporary",
		abbrsuffix = "Temp."
	},
	Toll = {name = "Toll"},
    Truck = {
        name = "Truck",
        arksuffix = "T"
    },
}

BAU.WCR = {
	shield = "WCR jct.svg",
	shieldmain = "WCR.svg",
	shieldlist = {"WCR.svg", "Baustralia 1000.svg"},
	name = "Wabasso-Concord Road",
	link = "Wabasso-Concord Road",
	abbr = "WCR",
	orientation = "upright"
}

BAU.OWR = {
	shield = "OWR jct.svg",
	shieldmain = "OWR.svg",
	shieldlist = {"OWR.svg", "Baustralia 1001.svg"},
	name = "Ostreum-Wangatangia Road",
	link = "Ostreum-Wangatangia Road",
	abbr = "OWR",
	orientation = "upright"
}

BAU.SWR = {
	shield = "SWR jct.svg",
	shieldmain = "SWR.svg",
	shieldlist = {"SWR.svg", "Baustralia 1002.svg"},
	name = "Seamanhattan-Wabasso Road",
	link = "Seamanhattan-Wabasso Road",
	abbr = "SWR",
	orientation = "upright"
}

BAU.LSR = {
	shield = "LSR jct.svg",
	shieldmain = "LSR.svg",
	shieldlist = {"LSR.svg", "Baustralia 1003.svg"},
	name = "Landspotter Road",
	link = "Landspotter Road",
	abbr = "LSR",
	orientation = "upright"
}

for _,entry in pairs(BAU[" aux "]) do
	entry.abbrsuffix = entry.abbrsuffix or entry.name
	entry.bannerprefix =  entry.bannerprefix or entry.name
	entry.banneralt =  entry.banneralt or entry.bannerprefix
	entry.aux = entry.aux or format("[[%s route]]", entry.name)
end

for _,auxType in ipairs({"Alt", "Aux", "Bus", "Byp", "Express", "Future", "Loop", "Spur", "Temp", "Toll", "Truck"}) do
	local spec = BAU[" aux "][auxType]
	BAU["Highway-" .. auxType] = {
		shield = BAU.Highway.shield,
		shieldmain = BAU.Highway.shieldmain,
		name = BAU.Highway.name .. " " .. spec.name,
		link = BAU.Highway.link  .. "#Highway %route% " .. spec.name .. BAU[" dab "],
		abbr = BAU.Highway.abbr .. " " .. spec.name,
		banner = spec.name .. " plate South Carolina.svg",
		bannersuffix = BAU.Highway.bannersuffix,
		aux = spec.aux,
		width = "expand",
		orientation = "upright"
	}
	BAU["Hwy-" .. auxType] = {
		shield = BAU.Highway.shield,
		shieldmain = BAU.Highway.shieldmain,
		name = BAU.Highway.name .. " " .. spec.name,
		link = BAU.Highway.link  .. "#Highway %route% " .. spec.name .. BAU[" dab "],
		abbr = BAU.Hwy.abbr .. " " .. spec.abbrsuffix,
		banner = spec.name .. " plate South Carolina.svg",
		bannersuffix = BAU.Highway.bannersuffix,
		aux = spec.aux,
		width = "expand",
		orientation = "upright"
	}
		BAU["Highway-2021-" .. auxType] = {
		shield = BAU["Highway-2021"].shield,
		shieldmain = BAU["Highway-2021"].shieldmain,
		name = BAU["Highway-2021"].name .. " " .. spec.name,
		link = BAU["Highway-2021"].link  .. "#Highway %route% " .. spec.name .. BAU[" dab "],
		abbr = BAU["Highway-2021"].abbr .. " " .. spec.abbrsuffix,
		banner = spec.name .. " plate.svg",
		bannersuffix = BAU["Highway-2021"].bannersuffix,
		aux = spec.aux,
		width = "expand",
		orientation = "upright"
	}
end
            
BAU.SPL = {alias = {module = "SPL", type = "Highway"}}
BAU.I = {alias = {module = "USA", type = "I"}}
BAU.US = {alias = {module = "USA", type = "US"}}
BAU.ON = {alias = {module = "CAN/ON", type = "ON"}}
BAU.ONCR = {alias = {module = "CAN/ON", type = "CR"}}

return BAU