Module:Sandbox/Szqecs/L-rail/data

Revision as of 15:59, 26 January 2018 by imported>Szqecs
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/Szqecs/L-rail/data/doc

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