]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blob - wrpylib/templates/sledrun_wikitext.txt
2ec0381abd40654535f2e475eff376b18cfb3698
[philipp/winterrodeln/wrpylib.git] / wrpylib / templates / sledrun_wikitext.txt
1 {% block content %}
2 {%- macro weblink(value) -%}
3 {% if value.text %}[{{ value.url }} {{ value.text }}]{% else %}{{ value.url }}{% endif %}
4 {%- endmacro %}
5 {%- macro wr_page(value) -%}
6 [[{{ value.title }}{% if value.text %}|{{ value.text }}{% endif %}]]
7 {%- endmacro -%}
8 {% if sledrun_json.entry_under_construction %}{% raw %}{{In Arbeit|Rodelbahn}}{% endraw %}
9
10 {% endif -%}
11 == Allgemeines ==
12 {{ rodelbahnbox }}
13 {{ description | default("''Hier wird die Rodelbahn allgemein beschrieben.''") | trim }}
14 {%- if sledrun_json.tiroler_naturrodelbahn_gütesiegel %}
15 {% set gs = sledrun_json.tiroler_naturrodelbahn_gütesiegel %}
16 {{ h.key_value_template('Tiroler Naturrodelbahn Gütesiegel', {
17     'Erstverleihung': gs.get('first_issued'),
18     'Verlängerung': gs.get('valid_from'),
19     'Forum': gs.get('forum_id'),
20     'Thread': gs.get('thread_id'),
21     'Anlagename': gs.get('name'),
22     'Organisation': gs.get('organization'),
23 }) }}
24 {%- endif %}
25 {% raw %}
26 * {{Position oben}}
27 * {{Position unten}}
28 * {{Höhenunterschied}}
29 * {{Bahnlänge}}
30 * {{Gehzeit}}{% endraw %}
31   {%- if walkup_time_note %} ({{ walkup_time_note }})
32   {%- else %}
33   {%- if walkup_possible is false %} (ein Aufstieg zu Fuß ist nicht möglich){% endif %}
34   {%- endif %}
35 * '''Beleuchtung''': {{ nightlight_description | default( nightlight_possible | default("''Unbekannt''") ) | trim }}
36 * '''Rodelverleih''': {% if sled_rental_description -%}
37 {{ sled_rental_description | trim }}
38 {%- else -%}
39 {% if sled_rental -%}
40 {% if sled_rental|length == 0 %}Nein{% endif %}
41 {%- else -%}
42 {{ sled_rental_direct | german_bool | default("''Unbekannt''") }}
43 {%- endif %}
44 {%- endif -%}
45 {% for rental in sled_rental %}
46 ** {{ rental.name }}{%if rental.note %} ({{ rental.note }}){% endif %}{% if rental.wr_page %}{{ wr_page(info) }}{% endif %}
47 {%- endfor %}
48 * '''Schneelage - Auskunft''':
49 {%- for info in info_phone %}
50 ** {{ info.phone }} ({{ info.name }})
51 {%- endfor %}
52 {%- for info in info_web %}
53 ** {{ weblink(info) }}
54 {%- endfor %}
55 * '''Betreiber''': {{ operator }}
56 * '''Hütten''':
57 {%- for info in gastronomy %}
58 ** {% set space = joiner(" ") %}
59    {%- if info.name %}{{ space() }}{{ info.name }}{% endif %}
60    {%- if info.wr_page %}{{ space() }}{{ wr_page(info.wr_page) }}{% endif %}
61    {%- if info.weblink %}{{ space() }}{{ weblink(info.weblink) }}{% endif %}
62    {%- if info.note %}{{ space() }}({{ info.note }}){% endif %}
63 {%- endfor %}
64 * '''Andere Rodelbahnen''':
65 {%- for info in sledrun_list %}
66 ** {{ wr_page(info) }}
67 {%- endfor %}
68 * '''Siehe auch''':
69 {%- for info in see_also %}
70 ** {{ weblink(info) }}
71 {%- endfor %}
72
73 {{ h.key_value_template('Buttonleiste', {
74     'Bericht': allow_reports|german_bool,
75     'ForumId': forum_id,
76     'Gütesiegel': tiroler_naturrodelbahn_gütesiegel.thread_id if tiroler_naturrodelbahn_gütesiegel else '',
77     'Impressionen': impressions_title,
78     'Wetter': 'Ja' if position else '',
79     'webcam': webcams[0].url if webcams and webcams|length > 0 else '',
80     'video': videos[0].url if videos and videos|length > 0 else '',
81     'Korrektur': 'Seite',
82     'Korrektur_To': correction_email,
83     'Korrektur_To_Name': correction_name,
84     'Freizeitticket': 'Ja' if freizeitticket_tyrol else '',
85     'Regiocard': 'Ja' if regio_card_tyrol else '',
86 }) }}
87 {% raw %}{{Clear}}{% endraw %}
88
89
90 == Landkarte ==
91 {% if map_json is none -%}
92 ''leider ist derzeit keine [[Winterrodeln:Landkarte|Landkarte]] zu dieser Rodelbahn vorhanden''
93 {%- else -%}
94 {{ h.create_wrmap(map_json) }}
95 {% raw %}{{Landkarte Legende}}<br/>{{GoogleMaps Hinweis}}{% endraw %}
96 {%- endif %}
97
98
99 == Anreise mit öffentlichen Verkehrsmitteln ==
100 {% if public_transport_description -%}
101 {{ public_transport_description | trim }}
102 {%- else -%}
103 ''Hier wird die Anreise mit öffentlichen Verkehrsmitteln beschrieben.''
104 {%- endif %}
105
106 {% for pt_stop in public_transport_stops -%}
107 * {{ 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', {}))]) }}
108 {%- if pt_stop.note %} ({{ pt_stop.note }}){% endif %}
109 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
110 {% if template_name in pt_stop -%}
111 ** {{ h.json_template(pt_stop[template_name]) }}
112 {% endif %}
113 {%- endfor %}
114 {%- endfor -%}
115 {% if public_transport_lines|length + public_transport_links|length > 0 -%}
116 * '''Fahrplan''':
117 {% for pt_line in public_transport_lines -%}
118 ** {% set space = joiner(" ") %}
119    {%- if pt_line.name %}{{ space() }}{{ pt_line.name }}{% endif %}
120    {%- if pt_line.label %}{{ space() }}{{ pt_line.label }}{% endif %}
121    {%- if pt_line.timetable_template %}{{ space() }}{{ h.json_template(pt_line.timetable_template) }}{% endif %}
122    {%- if pt_line.route %}{{ space() }}{{ pt_line.route }}{% endif %}
123    {%- if pt_line.note %}{{ space() }}{{ pt_line.note }}{% endif %}
124    {%- for tl in pt_line.timetable_links %}{{ space() }}{{ weblink(tl) }}{% endfor %}
125 {% endfor -%}
126 {% for link in public_transport_links -%}
127 ** {{ weblink(link) }}
128 {% endfor %}
129 {% endif %}
130 == Anreise mit dem Auto ==
131 {% if car_description -%}
132 {{ car_description | trim }}
133 {%- else -%}
134 ''Hier wird die Anreise mit dem Auto beschrieben.''
135 {%- endif %}
136
137 {% for parking in sledrun_json.car_parking -%}
138 * '''Parkplatz''': {{ h.list_template('Parkplatz', [h.json_pos_ele_position(parking.position), h.json_pos_ele_elevation(parking.position)]) }}
139 {%- if parking.note %} ({{ parking.note }}){% endif %}
140 {% endfor -%}
141 {% for distance_info in sledrun_json.car_distances -%}
142 {% if loop.first -%}
143 * '''Entfernung''':
144 {% endif -%}
145 ** {{ distance_info.route }}: {{ distance_info.km }} km
146 {% endfor %}
147
148 {{ h.key_value_template('Rodelbahnzustand', {'Forumlink': sledrun_json.forum_id}) }}
149
150 [[Kategorie:Rodelbahn]]
151 {% if sledrun_json.entry_under_construction %}[[Kategorie:In Arbeit]]{% endif -%}
152 {% endblock %}