-{% raw %}{{Buttonleiste{% endraw -%}
-|Bericht={{ allow_reports | default(true) | german_bool }}
-{%- if forum_id %}|ForumId={{ forum_id }}{% endif -%}
-{% if impressions_title %}|Impressionen={{ impressions_title }}{% endif -%}
-{%- if position %}|Wetter=Ja{% endif -%}
-{%- if videos %}|Video={{ videos[0].url }}{% endif -%}
-|Korrektur=Seite{% if correction_email %}|Korrektur_To={{ correction_email }}{% endif -%}
-{% if freizeitticket_tyrol %}|Freizeitticket=Ja{% endif -%}
-{% if regio_card_tyrol %}|Regiocard=Ja{% endif -%}}}
+{{ h.key_value_template('Buttonleiste', {
+ 'Bericht': allow_reports|german_bool,
+ 'ForumId': forum_id,
+ 'Impressionen': impressions_title,
+ 'Wetter': 'Ja' if position else '',
+ 'video': videos[0].url if videos and videos|length > 0 else '',
+ 'Korrektur': 'Seite',
+ 'Korrektur_To': correction_email,
+ 'Freizeitticket': 'Ja' if freizeitticket_tyrol else '',
+ 'Regiocard': 'Ja' if regio_card_tyrol else '',
+}) }}