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