Module:Adjacent stations: Difference between revisions

Content deleted Content added
m rm aliases alias
mNo edit summary
Line 144:
if not line and data['lines']['_default'] then
line = mw.clone(data['lines']['_default'])
line['line title'] = line['line title'] and gsub(line['line title'], '%%1', _line)
end
return line, _line
Line 328:
local line = data[v]['lines'] and (data[v]['lines'][_line] or error(i18n[lang]['error_unknown'](args[v]['line']))) or error(i18n[lang]['error_line'])
local default = data[v]['lines']['_default'] or {}
line['title'] = line['title'] or line['line title'] or default['title'] or default['line title']
gsub(line['title'], '%%1', _line)
 
Line 360:
color = line['color'] or default['color'] or data[v]['color'] or ''
end
Type['type title'] = Type['title'] or Type['type title']
else
background_color = line['background color']