Jump to content

Module:Adjacent stations/TransAdelaide

From Wikipedia, the free encyclopedia

local function tableConcat(t1, t2)
    for k, v in pairs(t2) do
    	t1[k] = v
    end
    return t1
end

local lines = {
	["Adelaide-Wolseley"] = {
		["title"] = "[[Adelaide–Wolseley railway line|Adelaide–Wolseley line]]",
		["color"] = "003973",
		["left terminus"] = "Adelaide",
		["right terminus"] = "Wolseley",
	},
	["Bridgewater"] = {
		["color"] = "003973",
		["title"] = "[[Bridgewater railway line|Bridgewater line]]",
		["left terminus"] = "Adelaide",
		["right terminus"] = "Bridgewater",
	},
	["Northfield"] = {
		["color"] = "003973",
		["title"] = "[[Northfield railway line|Northfield line]]",
		["left terminus"] = "Adelaide",
		["right terminus"] = "Northfield",
	},
	["Dry Creek-Port Adelaide"] = {
		["title"] = "[[Dry Creek–Port Adelaide railway line|Dry Creek–Port Adelaide line]]",
		["color"] = "003973",
		["left terminus"] = "Dry Creek",
		["right terminus"] = "Port Dock",
	},
}

-- To recude duplication, use settings from [[Module:Adjacent stations/Adelaide Metro]].
local p = require('Module:Adjacent stations/Adelaide Metro')
p["system title"] = "[[TransAdelaide]]"
p["lines"] = tableConcat(p["lines"], lines)

return p