Jump to content

Module:Adjacent stations/Rhine-Neckar S-Bahn

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Frietjes (talk | contribs) at 16:27, 7 July 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local hbf = "[[%1 Hauptbahnhof|%1 Hbf]]"

local colors = {
	["1"] = "EC192E",
	["2"] = "2960B5",
	["3"] = "FCD804",
	["4"] = "1A9D47",
	["5"] = "F47A14",
	["6"] = "007EC5",
	["7"] = "FFFFFF",
	["8"] = "FFFFFF",
	["9"] = "FFFFFF",
	["33"] = "803C9F",
	["39"] = "FFFFFF",
	["51"] = "F8A20D"
}
local icon = "<span style=\"font-size:88%; background-color:#%s;border:.075em solid #%s; " ..
    "border-radius:.5em;padding:0 .3em\">[[Rhine-Neckar S-Bahn#Network|<span " ..
    "style=\"color:#%s; font-weight:bold; font-size:inherit; " ..
    "white-space:nowrap\">%s</span>]]</span>"
local wicon = "<span style=\"font-size:88%; background-color:#FFF; border:.075em solid #000; " .. 
	"border-radius:.5em;padding:0 .3em\">[[Rhine-Neckar S-Bahn#Network|<span " ..
	"style=\"color:#000; font-weight:bold; font-size:inherit; " ..
	"white-space:nowrap\">%s</span>]]</span>"


local p = {
	["system title"] = "[[Rhine-Ruhr S-Bahn]]",
	["system icon"] = "[[File:S-Bahn-Logo.svg|16px|alt=]]",
	["station format"] = {
		"%1 station",
		["Frankenthal"] = hbf,
		["Heidelberg"] = hbf,
		["Homburg (Saar)"] = hbf,
		["Kaiserslautern"] = hbf,
		["Karlsruhe"] = hbf,
		["Ludwigshafen (Rhein)"] = hbf,
		["Mainz"] = hbf,
		["Mannheim"] = hbf,
		["Neustadt (Weinstraße)"] = hbf,
		["Sinsheim (Elsenz)"] = hbf,
		["Weinheim (Bergstraße)"] = hbf,
		["Worms"] = hbf
	},
	["lines"] = {
		["_default"] = {
			["color"] = "FFFFFF",
			["title"] = "[[Rhine-Neckar S-Bahn#Network|%1]]",
		},
		["S1"] = {
			["color"] = colors["1"],
			["icon"] = string.format(icon, colors["1"], colors["1"], "FFF", "S1"),
			["text color"] = "FFFFFF",
			["via"] = "Mannheim",
			["left terminus"] = "Homburg (Saar)",
			["right terminus"] = "Osterburken"
		},
		["S2"] = {
			["color"] = colors["2"],
			["icon"] = string.format(icon, colors["2"], colors["2"], "FFF", "S2"),
			["via"] = "Mannheim",
			["left terminus"] = "Kaiserslautern",
			["right terminus"] = "Mosbach (Baden)"
		},
		["S3"] = {
			["color"] = colors["3"],
			["icon"] = string.format(icon, colors["3"], colors["3"], "000", "S3"),
			["via"] = "Mannheim",
			["left terminus"] = "Germersheim",
			["right terminus"] = "Karlsruhe"
		},
		["S4"] = {
			["color"] = colors["4"],
			["icon"] = string.format(icon, colors["4"], colors["4"], "FFF", "S4"),
			["text color"] = "FFFFFF",
			["via"] = "Mannheim",
			["left terminus"] = "Germersheim",
			["right terminus"] = "Bruchsal"
		},
		["S5"] = {
			["color"] = colors["5"],
			["icon"] = string.format(icon, colors["5"], colors["5"], "FFF", "S5"),
			["text color"] = "FFFFFF",
			["via"] = "Neckargemünd",
			["left terminus"] = "Heidelberg",
			["right terminus"] = "Eppingen"
		},
		["S6"] = {
			["color"] = colors["6"],
			["icon"] = string.format(icon, colors["6"], colors["6"], "FFF", "S6"),
			["text color"] = "FFFFFF",
			["via"] = "Mannheim",
			["left terminus"] = "Mainz",
			["right terminus"] = "Bensheim"
		},
		["S7"] = {
			["color"] = "FFFFFF",
			["icon"] = string.format(wicon, "S7"),
			["left terminus"] = "?",
			["right terminus"] = "?"
		},
		["S8"] = {
			["color"] = "FFFFFF",
			["icon"] = string.format(wicon, "S8"),
			["left terminus"] = "?",
			["right terminus"] = "?"
		},
		["S9"] = {
			["color"] = "FFFFFF",
			["icon"] = string.format(wicon, "S9"),
			["left terminus"] = "?",
			["right terminus"] = "?"
		},
		["S33"] = {
			["color"] = colors["33"],
			["icon"] = string.format(icon, colors["33"], colors["33"], "FFF", "S33"),
			["via"] = "Graben-Neudorf",
			["left terminus"] = "Germersheim",
			["right terminus"] = "Bruchsal"
		},
		["S39"] = {
			["color"] = "FFFFFF",
			["icon"] = string.format(wicon, "S39"),
			["left terminus"] = "?",
			["right terminus"] = "?"
		},
		["S51"] = {
			["color"] = colors["51"],
			["icon"] = string.format(icon, colors["51"], colors["51"], "FFF", "S51"),
			["text color"] = "FFFFFF",
			["via"] = "Neckargemünd",
			["left terminus"] = "Heidelberg",
			["right terminus"] = "Aglasterhausen"
		}
	},
	["aliases"] = {
		["1"] = "S1",
		["s1"] = "S1",
		["2"] = "S2",
		["s2"] = "S2",
		["3"] = "S3",
		["s3"] = "S3",
		["4"] = "S4",
		["s4"] = "S4",
		["5"] = "S5",
		["s5"] = "S5",
		["6"] = "S6",
		["s6"] = "S6",
		["7"] = "S7",
		["s7"] = "S7",
		["8"] = "S8",
		["s8"] = "S8",
		["9"] = "S9",
		["s9"] = "S9",
		["33"] = "S33",
		["s33"] = "S33",
		["39"] = "S39",
		["s39"] = "S39",
		["51"] = "S51",
		["s51"] = "S51"
	}
}

return p