Module:Adjacent stations: Difference between revisions

Content deleted Content added
m …?
m more errors
Line 506:
if _Type then
_Type = data['aliases'] and data['aliases'][lower(_Type)] or _Type
Type = line['types'] and line['types'][_Type] and line['types'][_Type]['type title'] or _Type
end
color = getColor(data, nil, _line, _Type)
if inline ~= 'box' then
line_data = line or error(i18n[lang]['error_unknown'](_line))
line = line_data['line title'] or error(i18n[lang]['error_missing']('line title'))
end
else
Line 710:
if Type then
Type = data['aliases'] and data['aliases'][lower(Type)] or Type
Type = line['types'] and line['types'][Type] and line['types'][Type]['type title'] or Type
end
line = line['line title'] or error(i18n[lang]['error_missing']('line title'))
else
line = frame:expandTemplate{ title = system .. ' lines', args = {line, ['branch'] = Type} }