Module:Adjacent stations/Sweden/sandbox
Appearance
This is the module sandbox page for Module:Adjacent stations/Sweden (diff). |
This is a data module for Module:Adjacent stations. It supports services operated by Sweden/sandbox.
This module can be used for regional trains in Sweden, without registering the actual line or terminus in any module, instead do it in each station article. Some regional operators have their own module, then prefer to use that one instead.
Operators
[edit]Line | Keys | Color | Hex color | Icon |
---|---|---|---|---|
Arlanda Express | Arlanda |
fef380 |
| |
Krösatågen | Krösatågen |
C40000 |
| |
Mälartåg | Mälartåg |
0949a1 |
| |
Tåg i Bergslagen | Tåg i Bergslagen |
C0311A |
| |
Värmlandstrafik | Värmlandstrafik |
F9B000 |
| |
Västtrafik | Västtrafik |
00acea |
| |
Östgötatrafiken | Östgötatrafiken |
|
| |
Other operator |
|
|
See also
[edit]- Module:Adjacent stations/Norrtåg
- Module:Adjacent stations/Pågatågen
- Module:Adjacent stations/SJ
- Module:Adjacent stations/Stockholm commuter rail
- Module:Adjacent stations/Sweden2 - for long distance train operators without own template
- Module:Adjacent stations/Vy Tåg
- Module:Adjacent stations/Västtrafik
- Module:Adjacent stations/X-Tåget
- Module:Adjacent stations/Öresundståg
--local sweden = "%1"
-- This module can be used for regional trains in Sweden,
-- without registering the actual line or terminus in any module, instead do it in each station article
-- For long-distance and inter-city trains not branded to regional administrations, use: Module:Adjacent stations/Sweden2
-- The difference between Sweden and Sweden2 modules is the "system title" parameter and which operators included
local p = {
["system title"] = "[[Rail transport in Sweden|Regional trains]]",
["station format"] = {
-- Consider using "%1 railway station", as is used in other Swedish modules, although the Station and Central Station links must be manually listed
"%1 Station",
["Arlanda North"] = "Arlanda North Station",
["Arlanda South"] = "Arlanda South Station",
-- Stations with articles titled "name Central Station" can be accessed with "name Central" when using {{Adjacent stations}}
-- Stations with articles titled "name Station" can be accessed with only "name" when using {{Adjacent stations}}
-- These are existing stations with articles titled "railway station"
-- They can be access with only the station name when using {{Adjacent stations}}
["Bålsta"] = "Bålsta railway station",
["Degerfors"] = "Degerfors railway station",
["Kristinehamn"] = "Kristinehamn railway station",
["Läggesta"] = "Läggesta railway station",
["Munkedal"] = "Munkedal railway station",
["Södertälje Syd"] = "Södertälje Syd railway station",
["Storlien"] = "Storlien railway station",
["Trollhättan"] = "Trollhättan railway station",
["Åre"] = "Åre railway station",
-- These are small places where {{Adjacent stations}} is inserted in the article about the place
["Öxnered"] = "Öxnered",
-- These are other station names
["Gamlestaden"] = "Gamlestaden station"
},
["lines"] = {
["Arlanda"] = {
["title"] = "[[File:Arlanda Express logo.svg|64px|link=Arlanda Express]]",
["color"] = "F9B01A",
["left terminus"] = "Stockholm Central",
["right terminus"] = "Arlanda North",
},
-- For "Flixtrain" use Module:Adjacent stations/Sweden2
["Krösatågen"] = {
["title"] = "[[Krösatågen]]",
["color"] = "C40000",
["left terminus"] = "use the to-left parameter",
["right terminus"] = "use the to-right parameter",
},
-- For "MTRX" use Module:Adjacent stations/Sweden2
["Mälartåg"] = {
["title"] = "[[Mälartåg]]",
["color"] = "0949a1",
["left terminus"] = "use the to-left parameter",
["right terminus"] = "use the to-right parameter",
},
-- For "Norrtåg" use Module:Adjacent stations/Norrtåg
-- For "Pågatågen" use Module:Adjacent stations/Pågatågen
-- For "Stockholm commuter rail" use Module:Adjacent stations/Stockholm commuter rail
-- For "Snälltåget" use Module:Adjacent stations/Sweden2
-- For "Tågab" use Module:Adjacent stations/Sweden2
["Tåg i Bergslagen"] = {
["title"] = "[[Tåg i Bergslagen]]",
["color"] = "C0311A",
["left terminus"] = "use the to-left parameter",
["right terminus"] = "use the to-right parameter",
},
["Värmlandstrafik"] = {
["title"] = "[[Värmlandstrafik]]",
["color"] = "F9B000",
["left terminus"] = "use the to-left parameter",
["right terminus"] = "use the to-right parameter",
},
-- For "Västtrafik" use Module:Adjacent stations/Västtrafik
["Västtrafik"] = {
["title"] = "[[Västtrafik]]",
["color"] = "00acea",
["left terminus"] = "use the to-left parameter",
["right terminus"] = "use the to-right parameter",
},
-- For "X-Tåget" use Module:Adjacent stations/X-Tåget
-- For "Öresundståg" use Module:Adjacent stations/Öresundståg
["Östgötatrafiken"] = {
["title"] = "[[Östgötatrafiken]]",
["left terminus"] = "use the to-left parameter",
["right terminus"] = "use the to-right parameter",
},
["Other operator"] = {
["title"] = "",
["note-mid"] = "use the note-mid parameter",
["left terminus"] = "use the to-left parameter",
["right terminus"] = "use the to-right parameter",
},
},
}
return p