Difference between revisions of "Module:Adjacent stations/Taiwan High Speed Rail"
Jump to navigation
Jump to search
blackwiki>Szqecs m (Szqecs moved page Module:L-rail/Taiwan HSR to Module:L-rail/Taiwan High Speed Rail without leaving a redirect) |
blackwiki>Szqecs |
||
| Line 1: | Line 1: | ||
| − | local | + | 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('Taiwan High Speed Rail') | |
| − | + | , ['THSR'] = { | |
| − | ' | + | ['line title'] = link('Taiwan High Speed Rail#Stations_transportation', 'Taiwan High Speed Rail') |
| − | + | , ['colour'] = 'c35617' | |
| − | + | , ['station link'] = function(s) | |
| − | + | if s == 'Nangang' | |
| − | + | or s == 'Taipei' | |
| − | + | or s == 'Banqiao' then | |
| − | + | return link(s .. ' station', s) | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | if | ||
| − | return | ||
else | else | ||
| − | return | + | return link(s .. ' HSR station', s) |
end | end | ||
end | end | ||
| − | + | , ['left terminus'] = 'Nangang' | |
| − | + | , ['right terminus'] = 'Zuoying' | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| − | + | } | |
| − | |||
| − | |||
| − | |||
Revision as of 03:30, 22 April 2018
Documentation for this module may be created at Module:Adjacent stations/Taiwan High Speed Rail/doc
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('Taiwan High Speed Rail')
, ['THSR'] = {
['line title'] = link('Taiwan High Speed Rail#Stations_transportation', 'Taiwan High Speed Rail')
, ['colour'] = 'c35617'
, ['station link'] = function(s)
if s == 'Nangang'
or s == 'Taipei'
or s == 'Banqiao' then
return link(s .. ' station', s)
else
return link(s .. ' HSR station', s)
end
end
, ['left terminus'] = 'Nangang'
, ['right terminus'] = 'Zuoying'
}
}