Content deleted Content added
test enabling "station type" for Template:infobox station |
testing optional "station type" for template:infobox station |
||
Line 768:
local color = data['header text color'] and getValue(data['header text color'])
if color then table.insert(result, 'color:#' .. color) end
end▼
if station then▼
result = {station}▼
elseif data then▼
local tmp = data['station type'] and getValue(data['station type'])▼
end
end
Line 797 ⟶ 804:
end
end
elseif style == 'station type' then
result = {station or ''}
end
result = table.concat(result, ';')
Line 802 ⟶ 811:
if style == 'subheader' then
result = default
elseif style == 'station type' then
result = {station or ''}
else
result = ''
Line 811 ⟶ 822:
else
result = ''
▲ end
▲ if style == 'station type' then
▲ if station then
▲ result = station
▲ elseif data then
▲ local tmp = data['station type'] and getValue(data['station type'])
▲ return tmp or ''
end
end
|