]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blob - wrpylib/templates/sledrun_wiki.txt
Copy converting JSON to wikitext from wradmin.
[philipp/winterrodeln/wrpylib.git] / wrpylib / templates / sledrun_wiki.txt
1 {% block content %}
2 == Allgemeines ==
3 {{ rodelbahnbox }}
4 {{ description }}
5 {% raw %}
6 * {{Position oben}}
7 * {{Position unten}}
8 * {{Höhenunterschied}}
9 * {{Bahnlänge}}
10 * {{Gehzeit}}
11 {% endraw -%}
12 * '''Beleuchtung''': {{ night_light }}
13 * '''Rodelverleih''': {{ sled_rental_description }}
14 * '''Schneelage - Auskunft''':{% for info in sledrun_json.get('info_phone', []) %}
15 ** {{ info['phone'] }} ({{ info['name'] }}){% endfor %}{% for info in sledrun_json.get('info_web', []) %}
16 ** {% if 'text' in info %}[{{ info['url'] }} {{ info['text'] }}]{% else %}{{ info['url'] }}{% endif %}{% endfor %}
17 * '''Betreiber''': {{ operator }}
18 * '''Hütten''':{% for info in sledrun_json.get('gastronomy', []) %}
19 ** {% if 'wr_page' in info -%}
20    {% if 'name' in info %}[[{{ info['wr_page']['title'] }}|{{ info['name'] }}]]
21    {%- else %}{{ info['wr_page'] }}{% endif -%}
22    {% endif -%}
23    {% endfor %}
24 * '''Andere Rodelbahnen''':
25 ** [[Untermarkter Alm]]
26 * '''Siehe auch''':{% for info in sledrun_json.get('see_also', []) %}
27 ** {% if 'text' in info %}[{{ info['url'] }} {{ info['text'] }}]{% else %}{{ info['url'] }}{% endif %}{% endfor %}
28
29
30 {% raw %}{{Buttonleiste{% endraw -%}
31 |Bericht={% if sledrun_json.get('allow_reports', True) %}Ja{% else %}Nein{% endif -%}
32 {% if 'forum_id' in sledrun_json %}|ForumId={{ sledrun_json['forum_id'] }}{% endif -%}
33 {% if 'position' in sledrun_json %}|Wetter=Ja{% endif -%}
34 |Korrektur=Seite{% if 'correction_email' in sledrun_json %}|Korrektur_To={{ sledrun_json['correction_email'] }}{% endif -%}
35 {% if 'freizeitticket_tyrol' in sledrun_json %}|Freizeitticket=Ja{% endif -%}
36 {% if 'regio_card_tyrol' in sledrun_json %}|Regiocard=Ja{% endif -%}}}
37 {% raw %}{{Clear}}{% endraw %}
38
39
40 == Landkarte ==
41 {% if map_json is none -%}
42 ''leider ist derzeit keine [[Winterrodeln:Landkarte|Landkarte]] zu dieser Rodelbahn vorhanden''
43 {%- else -%}
44 {{ h.create_wrmap(map_json) }}
45 {% raw %}{{Landkarte Legende}}<br/>{{GoogleMaps Hinweis}}{% endraw %}
46 {% endif %}
47
48 == Anreise mit öffentlichen Verkehrsmitteln ==
49 {% if 'public_transport_description' in sledrun_json %}{{ sledrun_json['public_transport_description'] }}
50 {%- else %}''Hier wird die Anreise mit öffentlichen Verkehrsmitteln beschrieben.''{% endif %}
51
52 {% for pt_stop in sledrun_json.get('public_transport_stops', []) -%}
53 * {{ h.list_template('Haltestelle', [pt_stop.get('name', ''), '', h.json_pos_ele_position(pt_stop.get('position', '')), h.json_pos_ele_elevation(pt_stop.get('position', ''))]) }}
54 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
55 {% if template_name in pt_stop -%}
56 ** {{ h.json_template(pt_stop[template_name]) }}
57 {% endif %}
58 {%- endfor %}
59 {%- endfor -%}
60 {% for pt_line in sledrun_json.get('public_transport_lines', []) -%}
61 {% if loop.first -%}
62 * '''Fahrplan''':
63 {% endif -%}
64 ** {% if pt_line.timetable_template is defined %}{{ h.json_template(pt_line.timetable_template) }}
65    {%- else %}{{ pt_line.name }}{% endif %}
66 {% endfor %}
67
68
69 == Anreise mit dem Auto ==
70 {% if 'car_description' in sledrun_json %}{{ sledrun_json.car_description }}
71 {%- else %}''Hier wird die Anreise mit dem Auto beschrieben.''{% endif %}
72
73 {% for parking in sledrun_json.car_parking -%}
74 * '''Parkplatz''': {{ h.list_template('Parkplatz', [h.json_pos_ele_position(parking.position), h.json_pos_ele_elevation(parking.position)]) }}
75 {% endfor -%}
76 {% for distance_info in sledrun_json.car_distances -%}
77 {% if loop.first -%}
78 * '''Entfernung''':
79 {% endif -%}
80 ** {{ distance_info.route }}: {{ distance_info.km }} km
81 {% endfor %}
82
83 {% raw %}{{Rodelbahnzustand|Forumlink={% endraw %}{{ sledrun_json.forum_id }}}}
84
85 [[Kategorie:Rodelbahn]]
86 {% endblock %}