Difference between revisions of "Module:Adjacent stations/example"

From blackwiki
Jump to navigation Jump to search
blackwiki>Ythlev
m (42 revisions imported)
 
(6 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
["lang"] = "en-GB",
 
["lang"] = "en-GB",
 
["system icon"] = "[[File:BSicon BAHN.svg|x14px|link=Example]]",
 
["system icon"] = "[[File:BSicon BAHN.svg|x14px|link=Example]]",
["system title"] = "[[Example|Example Railways]]",
+
-- ["system title"] = "[[Example|Example Railways]]",
 
["station format"] = {
 
["station format"] = {
 
"%1 railway station",
 
"%1 railway station",
["Stratford International"] = "%1 station",
+
"%1 station",
 +
["Stratford International"] = 2,
 
["Gare de l'Est"] = "[[%1]]",
 
["Gare de l'Est"] = "[[%1]]",
 
["Florence Santa Maria Novella"] = "Firenze Santa Maria Novella railway station",
 
["Florence Santa Maria Novella"] = "Firenze Santa Maria Novella railway station",
 
["Beijingnan"] = "[[Beijing South railway station|Beijing South]]",
 
["Beijingnan"] = "[[Beijing South railway station|Beijing South]]",
["Pyongyang"] = "%1 Station",
+
["Pyongyang"] = 2,
["Seoul"] = "%1 station",
+
["Seoul"] = 2,
["Busan"] = "%1 station",
+
["Busan"] = 2,
 
["Frankfurt"] = {
 
["Frankfurt"] = {
 
"[[%1 Hauptbahnhof|%1 Hbf]]",
 
"[[%1 Hauptbahnhof|%1 Hbf]]",
Line 27: Line 28:
 
["1"] = {
 
["1"] = {
 
["title"] = "[[Example|Example 1]]",
 
["title"] = "[[Example|Example 1]]",
 +
["icon"] = {"File:BSicon BAHN.svg", ["link"] = 'Example'},
 
["color"] = "#6E9B29",
 
["color"] = "#6E9B29",
 
["left terminus"] = {"Edinburgh Waverley", "Cardiff Central"},
 
["left terminus"] = {"Edinburgh Waverley", "Cardiff Central"},

Latest revision as of 13:01, 26 September 2020

Documentation for this module may be created at Module:Adjacent stations/example/doc

local p = {
	["lang"] = "en-GB",
	["system icon"] = "[[File:BSicon BAHN.svg|x14px|link=Example]]",
	-- ["system title"] = "[[Example|Example Railways]]",
	["station format"] = {
		"%1 railway station",
		"%1 station",
		["Stratford International"] = 2,
		["Gare de l'Est"] = "[[%1]]",
		["Florence Santa Maria Novella"] = "Firenze Santa Maria Novella railway station",
		["Beijingnan"] = "[[Beijing South railway station|Beijing South]]",
		["Pyongyang"] = 2,
		["Seoul"] = 2,
		["Busan"] = 2,
		["Frankfurt"] = {
			"[[%1 Hauptbahnhof|%1 Hbf]]",
			["1"] = "[[Frankfurt Airport long-distance station|Frankfurt Flughafen]]",
			["2"] = {
				"[[%1 Hauptbahnhof|%1 Hbf]]",
				["South"] = "[[%1 %3 station|%1 %3]]"
			}
		},
		["Zürich"] = "[[%1 Hauptbahnhof|%1 Hbf]]",
		["Stockholm Central"] = "%1 Station",
		["Oslo Central"] = "%1 Station",
	},
	["lines"] = { -- to do: create a third circular line that has the rest of the features
		["1"] = {
			["title"] = "[[Example|Example 1]]",
			["icon"] = {"File:BSicon BAHN.svg", ["link"] = 'Example'},
			["color"] = "#6E9B29",
			["left terminus"] = {"Edinburgh Waverley", "Cardiff Central"},
			["right terminus"] = "Busan"
		},
		["2"] = {
			["title"] = "[[Example|Example 2]]",
			["color"] = "000077",
			["types"] = {
				["local"] = {
					["title"] = "local"
				},
				["semi-express"] = {
					["title"] = "semi-express",
					["color"] = "007700"
				},
				["express"] = {
					["title"] = "express",
					["color"] = "007700",
					["background color"] = "transparent"
				}
			},
			["left terminus"] = {"Roma Termini", "Lisbon"},
			["right terminus"] = {"Stockholm Central", "Oslo Central"}
		}
	}
}

return p