Difference between revisions of "Module:Adjacent stations/Kaohsiung Rapid Transit"

From blackwiki
Jump to navigation Jump to search
blackwiki>Szqecs
m (51 revisions imported)
 
(49 intermediate revisions by 6 users not shown)
Line 1: Line 1:
local function link(s1, s2)
+
local x = "%1 light rail station"
if s2 then
 
return table.concat({'\[\[', s1, '|', s2, '\]\]'})
 
elseif s1 then
 
return table.concat({'\[\[', s1, '\]\]'})
 
end
 
end
 
  
return {
+
local p = {
['system title'] = '\[\[File:Kaohsiung Mass Rapid Transit Logo(Logo Only).svg|18px\]\] ' .. link('Kaohsiung Rapid Transit System')
+
["system title"] = "[[Kaohsiung Rapid Transit]]",
, ['Red'] = {
+
["system icon"] = "[[File:Kaohsiung Mass Rapid Transit Logo(Logo Only).svg|18px|link=Kaohsiung Rapid Transit]]",
['line title'] = link('Red line (Kaohsiung MRT)', 'Red line')
+
["station format"] = {
, ['colour'] = 'ea0437'
+
"%1 metro station",
, ['station link'] = function(s)
+
["Central Park"] = "Central Park metro station (Taiwan)",
local exception = {
+
["Ciaotou station"] = "Qiaotou station",
['Ciaotou'] = link('Qiaotou station', 'Ciaotou')
+
["Kaohsiung Main Station"] = "%1",
, ['Kaohsiung Main'] = link('Kaohsiung station', 'Kaohsiung Main station')
+
["Zuoying"] = "%1 HSR station",
, ['Zuoying'] = link('Zuoying HSR station', 'Zuoying')
+
}
+
-- Circular light rail
return exception[s] or link(s .. ' MRT station', s)
+
["Lizihnei"] = x,
end
+
["Kaisyuan Rueitian"] = x,
, ['left terminus'] = 'Gangshan South'
+
["Cianjhen Star"] = x,
, ['right terminus'] = 'Siaogang'
+
["Kaisyuan Jhonghua"] = x,
}
+
["Dream Mall"] = x,
, ['Orange'] = {
+
["Commerce and Trade Park"] = x,
['line title'] = link('Orange line (Kaohsiung MRT)', 'Orange line')
+
["Software Technology Park"] = x,
, ['colour'] = 'ff8800'
+
["Kaohsiung Exhibition Center"] = x,
, ['station link'] = function(s)
+
["Cruise Terminal"] = x,
return link(s .. ' MRT station', s)
+
["Glory Pier"] = x,
end
+
["Love Pier"] = x,
, ['left terminus'] = 'Sizihwan'
+
["Dayi Pier-2"] = x,
, ['right terminus'] = 'Daliao'
+
["Penglai Pier-2"] = x,
}
+
["Hamasen"] = x
, ['Circular'] = {
+
},
['line title'] = link('Circular light rail')
+
["lines"] = {
, ['colour'] = '00b14f'
+
["R"] = {
, ['station link'] = function(s)
+
["title"] = "[[Red line (Kaohsiung MRT)|Red line]]",
return link(s .. ' LRT station', s)
+
["color"] = "d30547",
end
+
["left terminus"] = "Gangshan South",
, ['left terminus'] = 'Hamasen'
+
["right terminus"] = "Siaogang"
, ['right terminus'] = 'Lizihnei'
+
},
 +
["O"] = {
 +
["title"] = "[[Orange line (Kaohsiung MRT)|Orange line]]",
 +
["color"] = "f77f00",
 +
["left terminus"] = "Sizihwan",
 +
["right terminus"] = "Daliao"
 +
},
 +
["C"] = {
 +
["title"] = "[[Circular light rail]]",
 +
["color"] = "77c35e",
 +
["left terminus"] = "Lizihnei",
 +
["right terminus"] = "Hamasen"
 +
}
 +
},
 +
["aliases"] = {
 +
["red"] = "R",
 +
["orange"] = "O",
 +
["circular"] = "C"
 
}
 
}
 
}
 
}
 +
 +
return p

Latest revision as of 12:39, 26 September 2020

Documentation for this module may be created at Module:Adjacent stations/Kaohsiung Rapid Transit/doc

local x = "%1 light rail station"

local p = {
	["system title"] = "[[Kaohsiung Rapid Transit]]",
	["system icon"] = "[[File:Kaohsiung Mass Rapid Transit Logo(Logo Only).svg|18px|link=Kaohsiung Rapid Transit]]",
	["station format"] = {
		"%1 metro station",
		["Central Park"] = "Central Park metro station (Taiwan)",
		["Ciaotou station"] = "Qiaotou station",
		["Kaohsiung Main Station"] = "%1",
		["Zuoying"] = "%1 HSR station",
		
		-- Circular light rail
		["Lizihnei"] = x,
		["Kaisyuan Rueitian"] = x,
		["Cianjhen Star"] = x,
		["Kaisyuan Jhonghua"] = x,
		["Dream Mall"] = x,
		["Commerce and Trade Park"] = x,
		["Software Technology Park"] = x,
		["Kaohsiung Exhibition Center"] = x,
		["Cruise Terminal"] = x,
		["Glory Pier"] = x,
		["Love Pier"] = x,
		["Dayi Pier-2"] = x,
		["Penglai Pier-2"] = x,
		["Hamasen"] = x
	},
	["lines"] = {
		["R"] = {
			["title"] = "[[Red line (Kaohsiung MRT)|Red line]]",
			["color"] = "d30547",
			["left terminus"] = "Gangshan South",
			["right terminus"] = "Siaogang"
		},
		["O"] = {
			["title"] = "[[Orange line (Kaohsiung MRT)|Orange line]]",
			["color"] = "f77f00",
			["left terminus"] = "Sizihwan",
			["right terminus"] = "Daliao"
		},
		["C"] = {
			["title"] = "[[Circular light rail]]",
			["color"] = "77c35e",
			["left terminus"] = "Lizihnei",
			["right terminus"] = "Hamasen"
		}
	},
	["aliases"] = {
		["red"] = "R",
		["orange"] = "O",
		["circular"] = "C"
	}
}

return p