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

From blackwiki
Jump to navigation Jump to search
blackwiki>Jc86035
 
blackwiki>Szqecs
Line 37: Line 37:
 
["line title"] = "[[Example|Example 2]]",
 
["line title"] = "[[Example|Example 2]]",
 
["color"] = "e5755b",
 
["color"] = "e5755b",
["branches"] = {
+
["types"] = {
 
["local"] = {
 
["local"] = {
["branch title"] = "Local",
+
["type title"] = "Local",
 
["color"] = "2d2"
 
["color"] = "2d2"
 
},
 
},
 
["express"] = {
 
["express"] = {
["branch title"] = "Express",
+
["type title"] = "Express",
 
["color"] = "d22"
 
["color"] = "d22"
 
}
 
}

Revision as of 13:16, 2 August 2018

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

local p = {
	["lang"] = "en-GB",
	["system title"] = "[[File:BSicon BAHN.svg|x14px|link=Example]] [[Example|Example Railways]]",
	["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",
			["left terminus"] = {
				{"Edinburgh Waverley", "Cardiff Central"},
				["Edinburgh"] = "Edinburgh Waverley",
				["Cardiff"] = "Cardiff Central"
			},
			["right terminus"] = "Busan"
		},
		["2"] = {
			["line title"] = "[[Example|Example 2]]",
			["color"] = "e5755b",
			["types"] = {
				["local"] = {
					["type title"] = "Local",
					["color"] = "2d2"
				},
				["express"] = {
					["type title"] = "Express",
					["color"] = "d22"
				}
			},
			["left terminus"] = {
				"Roma Termini",
				["Lisbon"] = "Rossio"
			},
			["right terminus"] = {
				{"Stockholm Central", "Oslo Central"},
				["Stockholm"] = "Stockholm Central",
				["Oslo"] = "Oslo Central"
			}
		}
	}
}

return p