]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Show more info for public transport lines.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 12 Jun 2022 13:27:14 +0000 (15:27 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 12 Jun 2022 13:27:14 +0000 (15:27 +0200)
wrpylib/templates/sledrun_wikitext.txt

index b458ebacd06f5c3973862a00b306170c45b65fa4..ec09d2a96ab3de4cf31509df37db7d0f42f7e0bd 100644 (file)
 {% if public_transport_lines|length + public_transport_links|length > 0 -%}
 * '''Fahrplan''':
 {% for pt_line in public_transport_lines -%}
-** {% if pt_line.timetable_template is defined %}{{ h.json_template(pt_line.timetable_template) }}
-   {%- else %}{{ pt_line.name }}{% endif %}
+** {% set space = joiner(" ") %}
+   {%- if pt_line.name %}{{ space() }}{{ pt_line.name }}{% endif %}
+   {%- if pt_line.label %}{{ space() }}{{ pt_line.label }}{% endif %}
+   {%- if pt_line.timetable_template %}{{ space() }}{{ h.json_template(pt_line.timetable_template) }}{% endif %}
+   {%- if pt_line.route %}{{ space() }}{{ pt_line.route }}{% endif %}
+   {%- if pt_line.note %}{{ space() }}{{ pt_line.note }}{% endif %}
+   {%- for tl in pt_line.timetable_links %}{{ space() }}{{ weblink(tl) }}{% endfor %}
 {% endfor -%}
 {% for link in public_transport_links -%}
 ** {{ weblink(link) }}