]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blob - wrpylib/templates/sledrun_wiki.txt
d7563515187fb6831a6572698e1d99a8b4cc1225
[philipp/winterrodeln/wrpylib.git] / wrpylib / templates / sledrun_wiki.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 == Allgemeines ==
9 {{ rodelbahnbox }}
10 {{ description | default("''Hier wird die Rodelbahn allgemein beschrieben.''") | trim }}
11 {% raw %}
12 * {{Position oben}}
13 * {{Position unten}}
14 * {{Höhenunterschied}}
15 * {{Bahnlänge}}
16 * {{Gehzeit}}
17 {% endraw -%}
18 * '''Beleuchtung''': {{ nightlight_description | default( nightlight_possible | default("''Unbekannt''") ) | trim }}
19 * '''Rodelverleih''': {{ sled_rental_description | default( sled_rental_direct | german_bool | default("''Unbekannt''") ) | trim }}
20 * '''Schneelage - Auskunft''':
21 {%- for info in info_phone %}
22 ** {{ info.phone }} ({{ info.name }})
23 {%- endfor %}
24 {%- for info in info_web %}
25 ** {{ weblink(info) }}
26 {%- endfor %}
27 * '''Betreiber''': {{ operator }}
28 * '''Hütten''':
29 {%- for info in gastronomy %}
30 ** {% if info.wr_page %}{{ wr_page(info.wr_page) }}{% endif %}
31    {%- if info.weblink %}{{ weblink(info.weblink) }}{% endif %}
32    {%- if info.note %} ({{ info.note }}){% endif %}
33 {%- endfor %}
34 * '''Andere Rodelbahnen''':
35 {% for info in sledrun_list %}
36 ** {{ wr_page(info) }}
37 {% endfor -%}
38 * '''Siehe auch''':
39 {% for info in see_also %}
40 ** {{ weblink(info) }}
41 {%- endfor %}
42
43 {% raw %}{{Buttonleiste{% endraw -%}
44 |Bericht={{ allow_reports | default(true) | german_bool }}
45 {%- if forum_id %}|ForumId={{ forum_id }}{% endif -%}
46 {% if impressions_title %}|Impressionen={{ impressions_title }}{% endif -%}
47 {%- if position %}|Wetter=Ja{% endif -%}
48 {%- if videos %}|Video={{ videos[0].url }}{% endif -%}
49 |Korrektur=Seite{% if correction_email %}|Korrektur_To={{ correction_email }}{% endif -%}
50 {% if freizeitticket_tyrol %}|Freizeitticket=Ja{% endif -%}
51 {% if regio_card_tyrol %}|Regiocard=Ja{% endif -%}}}
52 {% raw %}{{Clear}}{% endraw %}
53
54
55 == Landkarte ==
56 {% if map_json is none -%}
57 ''leider ist derzeit keine [[Winterrodeln:Landkarte|Landkarte]] zu dieser Rodelbahn vorhanden''
58 {%- else -%}
59 {{ h.create_wrmap(map_json) }}
60 {% raw %}{{Landkarte Legende}}<br/>{{GoogleMaps Hinweis}}{% endraw %}
61 {%- endif %}
62
63
64 == Anreise mit öffentlichen Verkehrsmitteln ==
65 {% if public_transport_description -%}
66 {{ public_transport_description | trim }}
67 {%- else -%}
68 ''Hier wird die Anreise mit öffentlichen Verkehrsmitteln beschrieben.''
69 {%- endif %}
70
71 {% for pt_stop in public_transport_stops -%}
72 * {{ 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', {}))]) }}
73 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
74 {% if template_name in pt_stop -%}
75 ** {{ h.json_template(pt_stop[template_name]) }}
76 {% endif %}
77 {%- endfor %}
78 {%- endfor -%}
79 {% for pt_line in public_transport_lines -%}
80 {% if loop.first -%}
81 * '''Fahrplan''':
82 {%- endif %}
83 ** {% if pt_line.timetable_template is defined %}{{ h.json_template(pt_line.timetable_template) }}
84    {%- else %}{{ pt_line.name }}{% endif %}
85 {%- endfor %}
86 {% for link in public_transport_links -%}
87 {% if loop.first -%}
88 * '''Fahrplan''':
89 {%- endif %}
90 ** {{ weblink(link) }}
91 {%- endfor %}
92
93 == Anreise mit dem Auto ==
94 {% if car_description -%}
95 {{ car_description | trim }}
96 {%- else -%}
97 ''Hier wird die Anreise mit dem Auto beschrieben.''
98 {%- endif %}
99
100 {% for parking in sledrun_json.car_parking -%}
101 * '''Parkplatz''': {{ h.list_template('Parkplatz', [h.json_pos_ele_position(parking.position), h.json_pos_ele_elevation(parking.position)]) }}
102 {% endfor -%}
103 {% for distance_info in sledrun_json.car_distances -%}
104 {% if loop.first -%}
105 * '''Entfernung''':
106 {% endif -%}
107 ** {{ distance_info.route }}: {{ distance_info.km }} km
108 {% endfor %}
109
110 {% raw %}{{Rodelbahnzustand|Forumlink={% endraw %}{{ sledrun_json.forum_id }}}}
111
112 [[Kategorie:Rodelbahn]]
113 {% endblock %}