Module:Adjacent stations: Difference between revisions

Content deleted Content added
m ce
m not in use
Line 141:
_line = data['aliases'][lower(_line)] or _line
end
local linedefault = data['lines'][_line'_default'] or {}
if notlocal line and= data['lines']['_default'_line] thenor {}
for i, v in ipairs({'title', 'color', 'background color'}) do
line = mw.clone(data['lines']['_default'])
lineif default['title'v] =then line['title'v] and= gsub(line['title'v], '%%1',or default[v] _line)end
end
line['title'] = gsub(line['title'], '%%1', _line)
return line, _line
end
Line 290 ⟶ 291:
or error(i18n[lang]['error_unknown'](args[v]['system']))
 
data[v]['color'] = data[v]['default color'] or data[v]['line color'] or data[v]['color']
data[v]['system icon'] = data[v]['system icon'] or data[v]['icon']
data[v]['icon format'] = data[v]['system icon format'] or data[v]['icon format']