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

From blackwiki
Jump to navigation Jump to search
blackwiki>Jc86035
m (ce)
m (25 revisions imported)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
local p = {
 
local p = {
 +
["lang"] = "en-GB",
 
["system title"] = "[[File:BSicon BAHN.svg|x14px|link=Example]] [[Example|Example Railways]]",
 
["system title"] = "[[File:BSicon BAHN.svg|x14px|link=Example]] [[Example|Example Railways]]",
 +
["icon"] = "[[File:BSicon lBHF red.svg|x14px|link=Example]]",
 
["station format"] = {
 
["station format"] = {
 
"%1 railway station",
 
"%1 railway station",
Line 11: Line 13:
 
["Busan"] = "%1 station",
 
["Busan"] = "%1 station",
 
["Frankfurt"] = {
 
["Frankfurt"] = {
"[[Frankfurt (Main) Hauptbahnhof|Frankfurt (Main) Hbf]]",
+
"[[%1 Hauptbahnhof|%1 Hbf]]",
["1"] = "[[Frankfurt Airport long-distance station|Frankfurt Flughafen]]"
+
["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",
 
["Stockholm Central"] = "%1 Station",
 
["Oslo Central"] = "%1 Station",
 
["Oslo Central"] = "%1 Station",
Line 20: Line 27:
 
["1"] = {
 
["1"] = {
 
["line title"] = "[[Example|Example 1]]",
 
["line title"] = "[[Example|Example 1]]",
["colour"] = "6e9b29",
+
["color"] = "6e9b29",
 +
["icon"] = "[[File:BSicon lBHF cerulean.svg|x14px|link=Example]]",
 
["left terminus"] = {
 
["left terminus"] = {
 
{"Edinburgh Waverley", "Cardiff Central"},
 
{"Edinburgh Waverley", "Cardiff Central"},
Line 30: Line 38:
 
["2"] = {
 
["2"] = {
 
["line title"] = "[[Example|Example 2]]",
 
["line title"] = "[[Example|Example 2]]",
["colour"] = "e5755b",
+
["color"] = "e5755b",
["branches"] = {
+
["icon"] = "[[File:BSicon lBHF yellow.svg|x14px|link=Example]]",
["local"] = {"Local", "2d2"},
+
["types"] = {
["express"] = {"Express", "d22"}
+
["local"] = {
 +
["type title"] = "Local",
 +
["color"] = "2d2",
 +
["icon"] = "[[File:BSicon lBHF black.svg|x14px|link=Example]]",
 +
["icon format"] = "image"
 +
},
 +
["express"] = {
 +
["type title"] = "Express",
 +
["color"] = "d22",
 +
["icon"] = "[[File:BSicon lBHF golden.svg|x14px|link=Example]]",
 +
["icon format"] = "xroute"
 +
}
 
},
 
},
 
["left terminus"] = {
 
["left terminus"] = {

Latest revision as of 13:01, 26 September 2020

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

local p = {
	["lang"] = "en-GB",
	["system title"] = "[[File:BSicon BAHN.svg|x14px|link=Example]] [[Example|Example Railways]]",
	["icon"] = "[[File:BSicon lBHF red.svg|x14px|link=Example]]",
	["station format"] = {
		"%1 railway station",
		["Stratford International"] = "%1 station",
		["Gare de l'Est"] = "[[%1]]",
		["Florence Santa Maria Novella"] = "Firenze Santa Maria Novella railway station",
		["Beijingnan"] = "[[Beijing South railway station|Beijing South]]",
		["Pyongyang"] = "%1 Station",
		["Seoul"] = "%1 station",
		["Busan"] = "%1 station",
		["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"] = {
			["line title"] = "[[Example|Example 1]]",
			["color"] = "6e9b29",
			["icon"] = "[[File:BSicon lBHF cerulean.svg|x14px|link=Example]]",
			["left terminus"] = {
				{"Edinburgh Waverley", "Cardiff Central"},
				["Edinburgh"] = "Edinburgh Waverley",
				["Cardiff"] = "Cardiff Central"
			},
			["right terminus"] = "Busan"
		},
		["2"] = {
			["line title"] = "[[Example|Example 2]]",
			["color"] = "e5755b",
			["icon"] = "[[File:BSicon lBHF yellow.svg|x14px|link=Example]]",
			["types"] = {
				["local"] = {
					["type title"] = "Local",
					["color"] = "2d2",
					["icon"] = "[[File:BSicon lBHF black.svg|x14px|link=Example]]",
					["icon format"] = "image"
				},
				["express"] = {
					["type title"] = "Express",
					["color"] = "d22",
					["icon"] = "[[File:BSicon lBHF golden.svg|x14px|link=Example]]",
					["icon format"] = "xroute"
				}
			},
			["left terminus"] = {
				"Roma Termini",
				["Lisbon"] = "Rossio"
			},
			["right terminus"] = {
				{"Stockholm Central", "Oslo Central"},
				["Stockholm"] = "Stockholm Central",
				["Oslo"] = "Oslo Central"
			}
		}
	}
}

return p