From: Philipp Spitzer Date: Fri, 20 May 2022 16:39:32 +0000 (+0200) Subject: Show notes for public transport and parking. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/59de1a776c2e96d1bf51fcbfe44214638cddadef Show notes for public transport and parking. --- diff --git a/wrpylib/templates/sledrun_wikitext.txt b/wrpylib/templates/sledrun_wikitext.txt index ceb7fd1..5e70760 100644 --- a/wrpylib/templates/sledrun_wikitext.txt +++ b/wrpylib/templates/sledrun_wikitext.txt @@ -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', {}))]) }} +{%- 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]) }} @@ -100,6 +101,7 @@ {% 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 -%}