]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blob - wrpylib/templates/sledrun_wikitext.txt
29c9c5d6210eff75458464c9ebd666fb53e8d9b7
[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''': {% if nightlight_description -%}
36   {{ nightlight_description }}
37   {%- else %}
38   {%- if nightlight_possible -%}
39   {{ nightlight_possible }}
40   {%- if nightlight_weekdays %} (
41   {%- if nightlight_weekdays|length == 7 -%}
42   täglich
43   {%- else -%}
44   {{ ', '.join(nightlight_weekdays) }}
45   {%- endif -%}
46   ){% endif %}
47   {%- else -%}
48   ''Unbekannt''
49   {%- endif %}
50   {%- endif %}
51 * '''Rodelverleih''': {% if sled_rental_description -%}
52 {{ sled_rental_description | trim }}
53 {%- else -%}
54 {% if sled_rental -%}
55 {% if sled_rental|length == 0 %}Nein{% endif %}
56 {%- else -%}
57 {{ sled_rental_direct | german_bool | default("''Unbekannt''") }}
58 {%- endif %}
59 {%- endif -%}
60 {% for rental in sled_rental %}
61 ** {% set space = joiner(" ") %}
62    {%- if rental.name %}{{ space() }}
63    {%- if rental.weblink and not rental.weblink.text %}{{ weblink({"url": rental.weblink.url, "text": rental.name}) }}
64    {%- else %}{{ rental.name }}
65    {%- endif %}
66    {%- endif %}
67    {%- if rental.wr_page %}{{ space() }}{{ wr_page(rental.wr_page) }}{% endif %}
68    {%- if rental.weblink and not (rental.name and not rental.weblink.text) %}
69    {{- space() }}{{ weblink(rental.weblink) }}{% endif %}
70    {%- if rental.note %}{{ space() }}({{ rental.note }}){% endif %}
71 {%- endfor %}
72 * '''Schneelage - Auskunft''':
73 {%- for info in info_phone %}
74 ** {{ info.phone }} ({{ info.name }}{% if info.note %}; {{ info.note }}{% endif %})
75 {%- endfor %}
76 {%- for info in info_web %}
77 ** {{ weblink(info) }}
78 {%- endfor %}
79 * '''Betreiber''':
80 {%- if has_operator is defined %} {% if has_operator %}{{ operator }}{% else %}''Nein''{% endif %}{% endif %}
81 * '''Hütten''': {{ gastronomy_description }}
82 {%- for info in gastronomy %}
83 ** {% set space = joiner(" ") %}
84    {%- if info.name %}{{ space() }}
85    {%- if info.weblink and not info.weblink.text %}{{ weblink({"url": info.weblink.url, "text": info.name}) }}
86    {%- else %}{{ info.name }}
87    {%- endif %}
88    {%- endif %}
89    {%- if info.wr_page %}{{ space() }}{{ wr_page(info.wr_page) }}{% endif %}
90    {%- if info.weblink and not (info.name and not info.weblink.text) %}
91    {{- space() }}{{ weblink(info.weblink) }}{% endif %}
92    {%- if info.note %}{{ space() }}({{ info.note }}){% endif %}
93 {%- endfor %}
94 * '''Andere Rodelbahnen''':
95 {%- for info in sledrun_list %}
96 ** {{ wr_page(info) }}
97 {%- endfor %}
98 * '''Siehe auch''':
99 {%- for info in see_also %}
100 ** {{ weblink(info) }}
101 {%- endfor %}
102
103 {{ h.key_value_template('Buttonleiste', {
104     'Bericht': allow_reports|german_bool,
105     'ForumId': forum_id,
106     'Gütesiegel': tiroler_naturrodelbahn_gütesiegel.thread_id if tiroler_naturrodelbahn_gütesiegel else '',
107     'Impressionen': impressions_title,
108     'Wetter': 'Ja' if position else '',
109     'webcam': webcams[0].url if webcams and webcams|length > 0 else '',
110     'video': videos[0].url if videos and videos|length > 0 else '',
111     'Korrektur': 'Seite',
112     'Korrektur_To': correction_email,
113     'Korrektur_To_Name': correction_name,
114     'Freizeitticket': 'Ja' if freizeitticket_tyrol else '',
115     'Regiocard': 'Ja' if regio_card_tyrol else '',
116 }) }}
117 {% raw %}{{Clear}}{% endraw %}
118
119
120 == Landkarte ==
121 {% if map_json is none -%}
122 ''leider ist derzeit keine [[Winterrodeln:Landkarte|Landkarte]] zu dieser Rodelbahn vorhanden''
123 {%- else -%}
124 {{ h.create_wrmap(map_json) }}
125 {% raw %}{{Landkarte Legende}}<br/>{{GoogleMaps Hinweis}}{% endraw %}
126 {%- endif %}
127
128
129 == Anreise mit öffentlichen Verkehrsmitteln ==
130 {% if public_transport_description -%}
131 {{ public_transport_description | trim }}
132 {%- else -%}
133 {% if public_transport == "Nein" -%}
134 Leider ist keine Anreise mit öffentlichen Verkehrsmitteln möglich.
135 {%- else -%}
136 ''Hier wird die Anreise mit öffentlichen Verkehrsmitteln beschrieben.''
137 {%- endif %}
138 {%- endif %}
139
140 {% for pt_stop in public_transport_stops -%}
141 * {{ h.list_template('Haltestelle', [pt_stop.get('municipality', pt_stop.get('name', '')), pt_stop.get('name_local', ''),
142      h.json_pos_ele_position(pt_stop.get('position', {})), h.json_pos_ele_elevation(pt_stop.get('position', {}))]) }}
143 {%- if pt_stop.note %} ({{ pt_stop.note }}){% endif %}
144 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
145 {% if template_name in pt_stop -%}
146 ** {{ h.json_template(pt_stop[template_name]) }}
147 {% endif %}
148 {%- endfor %}
149 {%- endfor -%}
150 {% if public_transport_lines|length + public_transport_links|length > 0 -%}
151 * '''Fahrplan''':
152 {% for pt_line in public_transport_lines -%}
153 ** {% set space = joiner(" ") %}
154    {%- if pt_line.name %}{{ space() }}{{ pt_line.name }}
155    {%- else %}
156    {%- if pt_line.label %}{{ space() }}{{ pt_line.label }}{% endif %}
157    {%- endif %}
158    {%- if pt_line.timetable_template %}{{ space() }}{{ h.json_template(pt_line.timetable_template) }}{% endif %}
159    {%- if pt_line.route %}{{ space() }}{{ pt_line.route }}{% endif %}
160    {%- if pt_line.note %}{{ space() }}{{ pt_line.note }}{% endif %}
161    {%- for tl in pt_line.timetable_links %}{{ space() }}{{ weblink(tl) }}{% endfor %}
162 {% endfor -%}
163 {% for link in public_transport_links -%}
164 ** {{ weblink(link) }}
165 {% endfor %}
166 {% endif %}
167 == Anreise mit dem Auto ==
168 {% if car_description -%}
169 {{ car_description | trim }}
170 {%- else -%}
171 ''Hier wird die Anreise mit dem Auto beschrieben.''
172 {%- endif %}
173
174 {% for parking in sledrun_json.car_parking -%}
175 * '''Parkplatz''': {{ h.list_template('Parkplatz', [h.json_pos_ele_position(parking.position), h.json_pos_ele_elevation(parking.position)]) }}
176 {%- if parking.note %} ({{ parking.note }}){% endif %}
177 {% endfor -%}
178 {% for distance_info in sledrun_json.car_distances -%}
179 {% if loop.first -%}
180 * '''Entfernung''':
181 {% endif -%}
182 ** {{ distance_info.route }}: {{ distance_info.km }} km
183 {% endfor %}
184
185 {{ h.key_value_template('Rodelbahnzustand', {'Forumlink': sledrun_json.forum_id}) }}
186
187 [[Kategorie:Rodelbahn]]
188 {% if sledrun_json.entry_under_construction %}[[Kategorie:In Arbeit]]{% endif -%}
189 {% endblock %}