Jump to content

Module:Adjacent stations/S-Bahn Mittelelbe

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Frietjes (talk | contribs) at 23:34, 7 July 2022 (Undid revision 1096983493 by Gonnym (talk), no it uses a smaller font size). 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 icon = "<span style=\"font-size:88%%; background-color:#%s;border:.075em solid #%s; " ..
    "border-radius:.5em;padding:0 .3em\">[[S-Bahn Mittelelbe|<span " ..
    "style=\"color:#%s; font-weight:bold; font-size:inherit; " ..
    "white-space:nowrap\">%s</span>]]</span>"

local colors = {
	["1"] = {"018243", "FFFFFF"},
}

local p = {
	["system title"] = "[[S-Bahn Mittelelbe]]",
	["station format"] = {
		"%1 station",
		["Magdeburg"] = hbf,
		["Stendal"] = hbf,
	},
	["lines"] = {
		["_default"] = {
			["title"] = "[[S-Bahn Mittelelbe|S %1]]",
		},
		["1"] = {
			["text color"] = colors["1"][2],
			["color"] = colors["1"][1],
			["icon"] = string.format(icon, colors["1"][1], colors["1"][1], colors["1"][2], "S 1"),
			["short name"] = "S 1",
			["left terminus"] = "Schönebeck-Bad Salzelmen",
			["right terminus"] = "Wittenberge"
		},
	},
	["aliases"] = {
		["s1"] = "1",
	}
}

return p