Module:Adjacent stations/S-Bahn Mitteldeutschland
Appearance
This is a data module for Module:Adjacent stations. It supports services operated by S-Bahn Mitteldeutschland.
Lines
Line | Keys | Color | Hex color | Icon |
---|---|---|---|---|
S 1 | 1 |
FFFF00 |
S 1 | |
S 2 | 2 |
009BD4 |
S 2 | |
S 3 | 3 |
E10000 |
S 3 | |
S 4 | 4 |
018243 |
S 4 | |
S 5 | 5 |
FF8000 |
S 5 | |
S 5x | 5x |
EBBD00 |
S 5X | |
S 6 | 6 |
772233 |
S 6 | |
S 7 | 7 |
7A67EE |
S 7 | |
S 8 | 8 |
5E6DB3 |
S 8 | |
S 9 | 9 |
A3238E |
S 9 | |
S 10 | 10 |
0000EE |
S 10 | |
S 11 | 11 |
FFFF00 |
S 11 | |
S 47 | 47 |
|
|
local hbf = "[[%1 Hauptbahnhof|%1 Hbf]]"
local s = "%1 station"
local icon = "<span style=\"font-size:88%%; background-color:#%s;border:.075em solid #%s; " ..
"border-radius:.5em;padding:0 .3em\">[[S-Bahn Mitteldeutschland#Network of the S-Bahn Mitteldeutschland|<span " ..
"style=\"color:#%s; font-weight:bold; font-size:inherit; " ..
"white-space:nowrap\">%s</span>]]</span>"
local colors = {
["1"] = {"FFFF00", "000000"},
["2"] = {"009BD4", "FFFFFF"},
["3"] = {"E10000", "FFFFFF"},
["4"] = {"018243", "FFFFFF"},
["5"] = {"FF8000", "FFFFFF"},
["5x"] = {"EBBD00", "000000"},
["6"] = {"772233", "FFFFFF"},
["7"] = {"7A67EE", "FFFFFF"},
["8"] = {"5E6DB3", "FFFFFF"},
["9"] = {"A3238E", "FFFFFF"},
["10"] = {"0000EE", "FFFFFF"},
["11"] = {"FFFF00", "000000"}
}
local p = {
["system title"] = "[[S-Bahn Mitteldeutschland]]",
["station format"] = {
"%1 railway station",
["Bad Liebenwerda"] = s,
["Beilrode"] = s,
["Bitterfeld"] = s,
["Borsdorf (Sachs)"] = s,
["Crimmitschau"] = s,
["Dessau"] = hbf,
["Dessau Süd"] = s,
["Eilenburg"] = s,
["Elsterwerda-Biehla"] = s,
["Falkenberg (Elster)"] = s,
["Gößnitz"] = s,
["Großkugel"] = s,
["Halle (Saale)"] = hbf,
["Halle"] = "[[Halle (Saale) Hauptbahnhof|Halle (Saale) Hbf]]",
["Halle Rosengarten"] = s,
["Halle-Trotha"] = s,
["Hohenthurm"] = s,
["Hosena"] = s,
["Jüterbog"] = s,
["Klitschmar"] = s,
["Kyhna"] = s,
["Landsberg (b Halle/Saale) Süd"] = s,
["Leipzig"] = hbf,
["Leipzig Bayerischer Bahnhof"] = "%1",
["Leipzig/Halle Airport"] = s,
["Leipzig Markt"] = s,
["Leipzig Messe"] = s,
["Leipzig Olbrichtstraße"] = s,
["Leipzig Slevogtstraße"] = s,
["Leipzig-Wahren"] = s,
["Lutherstadt Wittenberg"] = hbf,
["Neukieritzsch"] = s,
["Peißen"] = s,
["Plessa"] = s,
["Reußen"] = s,
["Ruhland"] = s,
["Zwickau"] = hbf
},
["lines"] = {
["_default"] = {
["title"] = "[[S-Bahn Mitteldeutschland#Network of the S-Bahn Mitteldeutschland|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"] = "Leipzig Miltitzer Allee",
["right terminus"] = "Leipzig-Stötteritz"
},
["2"] = {
["text color"] = colors["2"][2],
["color"] = colors["2"][1],
["icon"] = string.format(icon, colors["2"][1], colors["2"][1], colors["2"][2], "S 2"),
["short name"] = "S 2",
["left terminus"] = {"Dessau", "Lutherstadt Wittenberg"},
["right terminus"] = "Leipzig-Stötteritz"
},
["3"] = {
["text color"] = colors["3"][2],
["color"] = colors["3"][1],
["icon"] = string.format(icon, colors["3"][1], colors["3"][1], colors["3"][2], "S 3"),
["short name"] = "S 3",
["left terminus"] = "Halle-Trotha",
["right terminus"] = "Wurzen"
},
["4"] = {
["text color"] = colors["4"][2],
["color"] = colors["4"][1],
["icon"] = string.format(icon, colors["4"][1], colors["4"][1], colors["4"][2], "S 4"),
["short name"] = "S 4",
["left terminus"] = "Hoyerswerda",
["right terminus"] = "Markkleeberg-Gaschwitz"
},
["5"] = {
["text color"] = colors["5"][2],
["color"] = colors["5"][1],
["icon"] = string.format(icon, colors["5"][1], colors["5"][1], colors["5"][2], "S 5"),
["short name"] = "S 5",
["left terminus"] = "Halle (Saale)",
["right terminus"] = "Zwickau"
},
["5x"] = {
["text color"] = colors["5x"][2],
["color"] = colors["5x"][1],
["icon"] = string.format(icon, colors["5x"][1], colors["5x"][1], colors["5x"][2], "S 5X"),
["short name"] = "S 5X",
["left terminus"] = "Halle (Saale)",
["right terminus"] = "Zwickau"
},
["6"] = {
["text color"] = colors["6"][2],
["color"] = colors["6"][1],
["icon"] = string.format(icon, colors["6"][1], colors["6"][1], colors["6"][2], "S 6"),
["short name"] = "S 6",
["left terminus"] = "Leipzig Messe",
["right terminus"] = "Geithain"
},
["7"] = {
["text color"] = colors["7"][2],
["color"] = colors["7"][1],
["icon"] = string.format(icon, colors["7"][1], colors["7"][1], colors["7"][2], "S 7"),
["short name"] = "S 7",
["left terminus"] = "Halle-Nietleben",
["right terminus"] = "Halle (Saale)"
},
["8"] = {
["text color"] = colors["8"][2],
["color"] = colors["8"][1],
["icon"] = string.format(icon, colors["8"][1], colors["8"][1], colors["8"][2], "S 8"),
["short name"] = "S 8",
["left terminus"] = "Halle (Saale)",
["right terminus"] = "Lutherstadt Wittenberg"
},
["9"] = {
["text color"] = colors["9"][2],
["color"] = colors["9"][1],
["icon"] = string.format(icon, colors["9"][1], colors["9"][1], colors["9"][2], "S 9"),
["short name"] = "S 9",
["left terminus"] = "Halle (Saale)",
["right terminus"] = "Eilenburg"
},
["10"] = {
["text color"] = colors["10"][2],
["color"] = colors["10"][1],
["icon"] = string.format(icon, colors["10"][1], colors["10"][1], colors["10"][2], "S 10"),
["short name"] = "S 10",
["left terminus"] = "?",
["right terminus"] = "?"
},
["11"] = {
["text color"] = colors["11"][2],
["color"] = colors["11"][1],
["icon"] = string.format(icon, colors["11"][1], colors["11"][1], colors["11"][2], "S 11"),
["short name"] = "S 11",
["left terminus"] = "?",
["right terminus"] = "?"
},
},
["aliases"] = {
["s1"] = "1",
["s2"] = "2",
["s3"] = "3",
["s4"] = "4",
["s5"] = "5",
["s5x"] = "5x",
["s6"] = "6",
["s7"] = "7",
["s8"] = "8",
["s9"] = "9",
["s10"] = "10",
["s11"] = "11",
}
}
return p