Module:Sandbox/Szqecs/L-rail/data

From WikiProjectMed
Jump to navigation Jump to search
local p = {}

function p.f_link(x)
	if x == 'r' then
		return '\[\[Red line (Kaohsiung MRT)|Red line\]\]'
	elseif x == 'o' then
		return '\[\[Orange line (Kaohsiung MRT)|Orange line\]\]'
	end
end

function p.f_stationLink(x)
	if x == 'Ciaotou' or x == 'Kaohsiung Main' then
		return '\[\[' .. x .. ' station|' .. x .. '\]\]'
	else
		return '\[\[' .. x .. ' MRT station|' .. x .. '\]\]'
	end
end

p.s_system = '\[\[Kaohsiung Rapid Transit System\]\]'
p.color = {'C35617'}

function p.f_leftToward(x)
	if x == 'r' then
		return p.f_stationLink('Siaogang')
	elseif x == 'o' then
		return p.f_stationLink('Sizihwan')
	end
end

return p