{% for contact in contacts %} {%- set typ = contact_types.get(contact.name) -%} {%- if typ -%} {{ typ['label'].get(g.locale.language) or typ['label']['default'] }}: {% if typ['link_template'] -%} {%- endif -%} {%- if typ['title_template'] -%} {{ typ['title_template'].format(value=contact.value) }} {%- else -%} {{ contact.value }} {%- endif -%} {%- if typ['link_template'] %}{% endif %} {%- else -%} {{ contact.name }}: {{ contact.value }} {%- endif -%}
{% endfor %}