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

From blackwiki
Jump to navigation Jump to search
blackwiki>Szqecs
m (42 revisions imported)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
local p = {
 
local p = {
 
["lang"] = "en-GB",
 
["lang"] = "en-GB",
["system title"] = "[[File:BSicon BAHN.svg|x14px|link=Example]] [[Example|Example Railways]]",
+
["system icon"] = "[[File:BSicon BAHN.svg|x14px|link=Example]]",
 +
-- ["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 26: Line 28:
 
["1"] = {
 
["1"] = {
 
["title"] = "[[Example|Example 1]]",
 
["title"] = "[[Example|Example 1]]",
["color"] = "6e9b29",
+
["icon"] = {"File:BSicon BAHN.svg", ["link"] = 'Example'},
["left terminus"] = {
+
["color"] = "#6E9B29",
{"Edinburgh Waverley", "Cardiff Central"},
+
["left terminus"] = {"Edinburgh Waverley", "Cardiff Central"},
["Edinburgh"] = "Edinburgh Waverley",
 
["Cardiff"] = "Cardiff Central"
 
},
 
 
["right terminus"] = "Busan"
 
["right terminus"] = "Busan"
 
},
 
},
 
["2"] = {
 
["2"] = {
 
["title"] = "[[Example|Example 2]]",
 
["title"] = "[[Example|Example 2]]",
["color"] = "e5755b",
+
["color"] = "000077",
 
["types"] = {
 
["types"] = {
 
["local"] = {
 
["local"] = {
["title"] = "Local",
+
["title"] = "local"
["color"] = "2d2"
+
},
 +
["semi-express"] = {
 +
["title"] = "semi-express",
 +
["color"] = "007700"
 
},
 
},
 
["express"] = {
 
["express"] = {
["title"] = "Express",
+
["title"] = "express",
["color"] = "d22"
+
["color"] = "007700",
 +
["background color"] = "transparent"
 
}
 
}
 
},
 
},
["left terminus"] = {
+
["left terminus"] = {"Roma Termini", "Lisbon"},
"Roma Termini",
+
["right terminus"] = {"Stockholm Central", "Oslo Central"}
["Lisbon"] = "Rossio"
 
},
 
["right terminus"] = {
 
{"Stockholm Central", "Oslo Central"},
 
["Stockholm"] = "Stockholm Central",
 
["Oslo"] = "Oslo 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