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