Module:Adjacent stations/Kaohsiung Metro
Appearance
This is a data module for Module:Adjacent stations. It supports services operated by Kaohsiung Metro.
<td style="background:#Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value).; border-top:solid 1px gray;"> <td style="background:#Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value).; border-top:solid 1px gray;"> <td style="background:#Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value).; border-top:solid 1px gray;"> <td style="background:#Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value).; border-top:solid 1px gray;">Line | Keys | Color | Hex color | Icon |
---|---|---|---|---|
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). | R |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). | |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). | O |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). | |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). | C |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). | |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). | Y |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). |
Lua error in Module:Adjacent_stations at line 38: attempt to index field 'lines' (a nil value). |
local function link(s1, s2)
if s2 then
return table.concat({'\[\[', s1, '|', s2, '\]\]'})
elseif s1 then
return table.concat({'\[\[', s1, '\]\]'})
end
end
return {
['system title'] = link('Kaohsiung Rapid Transit System')
, ['Red'] = {
['line title'] = link('Red line (Kaohsiung MRT)', 'Red line')
, ['colour'] = 'ea0437'
, ['station link'] = function(s)
local exception = {
['Ciaotou'] = link('Qiaotou station', 'Ciaotou')
, ['Kaohsiung Main'] = link('Kaohsiung station', 'Kaohsiung Main station')
, ['Zuoying'] = link('Zuoying HSR station', 'Zuoying')
}
return exception[s] or link(s .. ' MRT station', s)
end
, ['left terminus'] = 'Gangshan South'
, ['right terminus'] = 'Siaogang'
}
, ['Orange'] = {
['line title'] = link('Orange line (Kaohsiung MRT)', 'Orange line')
, ['colour'] = 'ff8800'
, ['station link'] = function(s)
return link(s .. ' MRT station', s)
end
, ['left terminus'] = 'Sizihwan'
, ['right terminus'] = 'Daliao'
}
, ['Circular'] = {
['line title'] = link('Circular light rail')
, ['colour'] = '00b14f'
, ['station link'] = function(s)
return link(s .. ' LRT station', s)
end
, ['left terminus'] = 'Hamasen'
, ['right terminus'] = 'Lizihnei'
}
}