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