Jump to content

Module:Adjacent stations/Taiwan High Speed Rail

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Szqecs (talk | contribs) at 04:14, 22 April 2018. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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'] = '\[\[File:Taiwan High Speed Rail Logo(Log Only).svg|18px\]\]' .. 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'
	}
}