Difference between revisions of "Module:Adjacent stations/Taiwan High Speed Rail"

From blackwiki
Jump to navigation Jump to search
blackwiki>Szqecs
blackwiki>Szqecs
Line 1: Line 1:
local function link(s1, s2, s3)
 
if s3 then
 
return table.concat({'[[', s1, '|', s3, ']]'})
 
elseif s2 then
 
return table.concat({'[[', s1, s2, '|', s1, ']]'})
 
elseif s1 then
 
return table.concat({'[[', s1, ']]'})
 
end
 
end
 
 
 
return {
 
return {
['system title'] = '[[File:Taiwan High Speed Rail Logo(Log Only).svg|18px]] ' .. link('Taiwan High Speed Rail'),
+
['system title'] = '[[File:Taiwan High Speed Rail Logo(Log Only).svg|18px|link=Taiwan High Speed Rail]] [[Taiwan High Speed Rail]]',
['THSR'] = {
+
['station format'] = {
['line title'] = link('Taiwan High Speed Rail#Stations_transportation', nil, 'HSR'),
+
'%1 HSR station',
['colour'] = 'c35617',
+
['Nangang'] = '%1 station',
['station link'] = function(s)
+
['Taipei'] = '%1 station',
if s == 'Nangang'
+
['Banqiao'] = '%1 station'
or s == 'Taipei'
+
},
or s == 'Banqiao' then
+
['lines'] = {
return link(s, ' station')
+
['THSR'] = {
else
+
['line title'] = '[[Taiwan High Speed Rail#Stations transportation|HSR]]',
return link(s, ' HSR station')
+
['colour'] = 'c35617',
end
+
['left terminus'] = 'Nangang',
end,
+
['right terminus'] = 'Zuoying'
['left terminus'] = 'Nangang',
+
}
['right terminus'] = 'Zuoying'
 
 
}
 
}
 
}
 
}

Revision as of 10:30, 1 May 2018

Documentation for this module may be created at Module:Adjacent stations/Taiwan High Speed Rail/doc

return {
	['system title'] = '[[File:Taiwan High Speed Rail Logo(Log Only).svg|18px|link=Taiwan High Speed Rail]] [[Taiwan High Speed Rail]]',
	['station format'] = {
		'%1 HSR station',
		['Nangang'] = '%1 station',
		['Taipei'] = '%1 station',
		['Banqiao'] = '%1 station'
	},
	['lines'] = {
		['THSR'] = {
			['line title'] = '[[Taiwan High Speed Rail#Stations transportation|HSR]]',
			['colour'] = 'c35617',
			['left terminus'] = 'Nangang',
			['right terminus'] = 'Zuoying'
		}
	}
}