% if (not $wr->has_bad_wagons) {
% for my $section ($wr->sections) {
%= $section->{name}
% }
% }
% for my $wagon ($wr->wagons) {
% my $bg = '';
% my $extra_class = '';
% if ($wagon->is_first_class) {
% $bg = 'background-color: #ffff99;';
% }
% if ($wagon->is_locomotive or $wagon->is_powercar) {
% $bg = 'background-color: #cccccc;';
% }
% if ($has_multi_dest and $wagon->train_no ne $train_no) {
% $extra_class .= ' nondestwagon';
% }
%= $wagon->type
% my $uic_id = $wagon->uic_id;
% if (length($uic_id) != 12) {
<%= $uic_id %>
% }
% elsif ($wr->train_type eq 'ICE') {
<%= substr($uic_id, 0, 2) %><%= substr($uic_id, 2, 2) %><%= substr($uic_id, 4, 1) %><%= substr($uic_id, 5, 3) %><%= substr($uic_id, 8, 3) %><%= substr($uic_id, 11) %>
% }
% else {
<%= substr($uic_id, 0, 2) %><%= substr($uic_id, 2, 2) %><%= substr($uic_id, 4, 2) %><%= substr($uic_id, 6, 2) %><%= substr($uic_id, 8, 3) %><%= substr($uic_id, 11) %>
% }
% }
Angaben ohne Gewähr – Echtzeitdaten sind möglicherweise nicht berücksichtigt.