]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Show notes for public transport and parking.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 20 May 2022 16:39:32 +0000 (18:39 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 20 May 2022 16:39:32 +0000 (18:39 +0200)
wrpylib/templates/sledrun_wikitext.txt

index ceb7fd1923142ed89fe9db991bc34f0d3d4a6030..5e707605c1c6c14e6366886b16d94c962f96b7d5 100644 (file)
@@ -71,6 +71,7 @@
 
 {% for pt_stop in public_transport_stops -%}
 * {{ h.list_template('Haltestelle', [pt_stop.municipality, pt_stop.name_local, h.json_pos_ele_position(pt_stop.get('position', {})), h.json_pos_ele_elevation(pt_stop.get('position', {}))]) }}
 
 {% for pt_stop in public_transport_stops -%}
 * {{ h.list_template('Haltestelle', [pt_stop.municipality, pt_stop.name_local, h.json_pos_ele_position(pt_stop.get('position', {})), h.json_pos_ele_elevation(pt_stop.get('position', {}))]) }}
+{%- if pt_stop.note %} ({{ pt_stop.note }}){% endif %}
 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
 {% if template_name in pt_stop -%}
 ** {{ h.json_template(pt_stop[template_name]) }}
 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
 {% if template_name in pt_stop -%}
 ** {{ h.json_template(pt_stop[template_name]) }}
 
 {% for parking in sledrun_json.car_parking -%}
 * '''Parkplatz''': {{ h.list_template('Parkplatz', [h.json_pos_ele_position(parking.position), h.json_pos_ele_elevation(parking.position)]) }}
 
 {% for parking in sledrun_json.car_parking -%}
 * '''Parkplatz''': {{ h.list_template('Parkplatz', [h.json_pos_ele_position(parking.position), h.json_pos_ele_elevation(parking.position)]) }}
+{%- if parking.note %} ({{ parking.note }}){% endif %}
 {% endfor -%}
 {% for distance_info in sledrun_json.car_distances -%}
 {% if loop.first -%}
 {% endfor -%}
 {% for distance_info in sledrun_json.car_distances -%}
 {% if loop.first -%}