Module:Adjacent stations/BLS: Difference between revisions

Content deleted Content added
refactor IR
m added default text colour
 
(26 intermediate revisions by 3 users not shown)
Line 9:
["header text color"] = "0028a0",
["lines"] = {
["_default"] = {
["color"] = "093c84",
["text color"] = "FFFFFF",
["icon"] = "[[File:BLS AG logo.svg|20px|link=BLS AG]]",
},
-- IR (InterRegio)
["IR 17"] = {
["title"] = "[[InterRegio|IR 17]]",
Line 30 ⟶ 36:
["icon"] = "[[File:IR 66 logo.svg|40px|link=InterRegio]]",
},
-- RE (RegioExpress)
["InterRegio"] = {
["titleRE1"] = "[[InterRegio]]",{
["colortitle"] = "003d7e[[RegioExpress|RE1]]",
["left terminus"] = "Bern",
["right terminus"] = {"Brig", "Domodossola", "Zweisimmen"},
["types"] = {
["17Lötschberg"] = {
["title"] = "IR 17",
["leftright terminus"] = {"BernBrig", "Domodossola"},
["right terminus"] = "Olten",
},
["65"] = {
["title"] = "IR 65",
["left terminus"] = "Biel/Bienne",
["right terminus"] = "Bern",
},
["66"] = {
["title"] = "IR 66",
["left terminus"] = "La Chaux-de-Fonds",
["right terminus"] = "Bern",
},
["Domodossola"] = {
["title"] = "",
["right terminus"] = "Domodossola",
},
},
},
["RegioExpressRE2"] = {
["title"] = "[[RegioExpress|RE2]]",
["color"] = "003d7ec5c5c5",
["left terminus"] = "Brig",
["right terminus"] = "Domodossola",
["types"] = {
["Bern-DomodossolaVisp"] = {
["title"] = "''Lötschberger''",
["left terminus"] = "Bern",
["right terminus"] = "Domodossola",
},
["Bern-Lucerne"] = {
["title"] = "",
["left terminus"] = "Bern",
["right terminus"] = "Lucerne",
},
["Zweisimmen-Interlaken"] = {
["title"] = "",
["left terminus"] = "ZweisimmenVisp",
["right terminus"] = "Interlaken Ost",
},
},
},
["RegioRE7"] = {
["title"] = "[[Regio (Swiss railway train)RegioExpress|RegioRE7]]",
["colorleft terminus"] = "bcbdc0Bern",
["right terminus"] = "Lucerne",
["types"] = {
["Kerzers–LyssS7"] = {
["title"] = "",
["left terminus"] = {"KerzersBern", "Willisau", "Langenthal"},
["right terminus"] = "Lyss",
},
},
["Konolfingen–Hasle-Rüegsau"] = {
},
["RE8"] = {
["title"] = "[[RegioExpress|RE8]]",
["left terminus"] = "Zweisimmen",
["right terminus"] = "Spiez",
},
["RE9"] = {
["title"] = "[[RegioExpress|RE9]]",
["left terminus"] = "Spiez",
["right terminus"] = "Interlaken Ost",
},
["RE11"] = {
["title"] = "[[RegioExpress|RE11]]",
["color"] = "c5c5c5",
["left terminus"] = "Biel/Bienne",
["right terminus"] = "Brig",
["note-mid"] = "Weekends only",
["types"] = {
["Zollikofen"] = {
["title"] = "",
["left terminus"] = "KonolfingenBrig",
["right terminus"] = "Hasle-RüegsauBiel/Bienne",
},
},
["Lyss–Büren an der Aare"] = {
["title"] = "",
["left terminus"] = "Büren an der Aare",
["right terminus"] = "Lyss",
},
["Thun-Konolfingen"] = {
["title"] = "",
["left terminus"] = "Thun",
["right terminus"] = "Konolfingen",
},
["Thun-Solothurn"] = {
["title"] = "",
["left terminus"] = "Thun",
["right terminus"] = "Solothurn",
},
["Zweisimmen-Bern"] = {
["title"] = "",
["left terminus"] = "Zweisimmen",
["right terminus"] = "Bern",
},
},
},
},
-- R (Regio)
["R11"] = {
["title"] = "[[Regio (Swiss railway train)|R11]]",
["color"] = "818281",
["left terminus"] = "Zweisimmen",
["right terminus"] = "Bern",
},
["R12"] = {
["title"] = "[[Regio (Swiss railway train)|R12]]",
["color"] = "818281",
["left terminus"] = "Spiez",
["right terminus"] = "Frutigen",
},
-- GPX (GoldenPass Express)
["GPX"] = {
["title"] = "''[[GoldenPass Express]]''",
["color"] = "172a4c",
["left terminus"] = "Montreux",
["right terminus"] = "Interlaken Ost",
},
}
}
local sb = require('Module:Adjacent stations/Lucerne S-Bahn')
local sb_lines = {
"7",
}
 
for _, v in pairs(sb_lines) do
p["lines"][v] = sb["lines"][v]
 
end
 
return p