{% set hasDescription = tagsPrefix(tags, 'description:') %}
{% if tags.description or hasDescription %}
-
{{ localizedTag(tags, 'description')|default(attribute(tags, 'description:' ~ hasDescription|keys[0]))|nl2br }}
{% endif %}
{% set address = tagsPrefix(tags, 'addr:') %}
{% if address %}
-
{{ keyTrans('address') }}:
{{ attribute(tags, 'addr:street') }}
{{ attribute(tags, 'addr:housenumber') }},
{{ attribute(tags, 'addr:postcode') }}
{{ attribute(tags, 'addr:city') }}
{% endif %}
{% set address = tagsPrefix(tags, 'contact:') %}
{% if address %}
-
{{ keyTrans('address') }}:
{{ attribute(tags, 'contact:street') }}
{{ attribute(tags, 'contact:housenumber') }},
{{ attribute(tags, 'contact:postcode') }}
{{ attribute(tags, 'contact:city') }}
{% endif %}
{% if layer_id|split('/')|last != 'etymology' and (attribute(tags, 'name:etymology') or attribute(tags, 'name:etymology:wikidata')) %}
-
{{ keyTrans('name:etymology') }}:
{% set etymWikidata = attribute(tags, 'name:etymology:wikidata') %}
{% if etymWikidata %}
{% set etymWikidata = etymWikidata|split(';') %}
{% set etymName = attribute(tags, 'name:etymology')|split(';') %}
{% set result = [] %}
{% for i in 0..max(etymName|length - 1, etymWikidata|length - 1) %}
{% set result = result|merge([ etymWikidata[i] ? '' ~ (etymName[i]|default(etymWikidata[i]))|e ~ '' : etymName[i]|e ]) %}
{% endfor %}
{{ result|enumerate|raw }}
{% else %}
{{ attribute(tags, "name:etymology")|enumerate }}
{% endif %}
{% endif %}
{% if tags.website %}
-
{{ keyTrans('website') }}:
{% for i, v in tags.website|split(';') -%}
{%- if i > 0 %}, {% endif %}
{{ v }}
{%- endfor %}
{% endif %}
{% if attribute(tags, 'contact:website') %}
-
{{ keyTrans('website') }}:
{% for i, v in attribute(tags, 'contact:website')|split(';') -%}
{%- if i > 0 %}, {% endif %}
{{ v }}
{%- endfor %}
{% endif %}
{% if tags.phone %}
-
{{ keyTrans('phone') }}:
{% for i, v in tags.phone|split(';') -%}
{%- if i > 0 %}, {% endif %}
{{ v }}
{%- endfor %}
{% endif %}
{% if attribute(tags, 'contact:phone') %}
-
{{ keyTrans('phone') }}:
{% for i, v in attribute(tags, 'contact:phone')|split(';') -%}
{%- if i > 0 %}, {% endif %}
{{ v }}
{%- endfor %}
{% endif %}
{% if attribute(tags, 'contact:email') %}
-
{{ keyTrans('email') }}:
{% for i, v in attribute(tags, 'contact:email')|split(';') -%}
{%- if i > 0 %}, {% endif %}
{{ v }}
{%- endfor %}
{% endif %}
{% if attribute(tags, 'email') %}
-
{{ keyTrans('email') }}:
{% for i, v in tags.email|split(';') -%}
{%- if i > 0 %}, {% endif %}
{{ v }}
{%- endfor %}
{% endif %}
{% if tags.opening_hours %}
-
{{ keyTrans('opening_hours') }}:
{{ tags.opening_hours }}
{% endif %}
{% set payment = tagsPrefix(tags, 'payment:') %}
{% if payment %}
-
{{ keyTrans('payment') }}:
{% set i = 0 %}
{% for k, tag in payment %}
{%- if i > 0 %},{% endif %}
{% if tags[tag] == 'no' %}
{{ keyTrans(tag, { default: k }) }}{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}
{% set i = i + 1 -%}
{% endfor %}
{% endif %}
{% if attribute(tags, 'wheelchair') %}
-
{{ trans('facilities') }}:
{% if attribute(tags, 'wheelchair') %}
-
{{ keyTrans('wheelchair') }}:
{{ tagTrans('wheelchair', tags.wheelchair) }}
{% if attribute(tags, 'toilets:wheelchair') %}
-
🚽
{{ keyTrans('toilets:wheelchair') }}:
{{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}
{% endif %}
{% endif %}
{% endif %}
{% if tags.year_of_construction or tags.start_date or tags.opening_date or tags.end_date %}
-
{% if tags.year_of_construction %}
{{ keyTrans('year_of_construction') }}:
{{ tags.year_of_construction|osmFormatDate }}
{% endif %}
{% if tags.start_date %}
{{ keyTrans('start_date') }}:
{{ tags.start_date|osmFormatDate }}
{% endif %}
{% if tags.opening_date %}
{{ keyTrans('opening_date') }}:
{{ tags.opening_date|osmFormatDate }}
{% endif %}
{% if tags.end_date %}
{{ keyTrans('end_date') }}:
{{ tags.end_date|osmFormatDate }}
{% endif %}
{% endif %}