"{% if not start_date and attribute(tags, 'building:year') %}{% set start_date = attribute(tags, 'building:year') %}{% endif %}",
"{% if not start_date and attribute(tags, 'building:year') %}{% set start_date = attribute(tags, 'building:year') %}{% endif %}",
"",
"",
"{% if start_date %}",
"{% if start_date %}",
" {# equalize tagging mistakes - need to add QA messages #}",
" {# convert 1910-1911 to 1910..1911 #}{% set m = start_date|matches('^(\\d{4})-(\\d{4})$') %}{% if m %}{% set start_date = m[1] ~ '..' ~ m[2] %}{% endif %}",
" {# convert 191* to 1910s #}{% set m = start_date|matches('^(\\d{3})\\*$') %}{% if m %}{% set start_date = m[1] ~ '0s' %}{% endif %}",
"",
"",
" {% set value = start_date|osmParseDate %}",
" {% set value = start_date|osmParseDate %}",
" {% if value and value[0] and value[1] %}",
" {% if value and value[0] and value[1] %}",
" {% set value = (value[1] - value[0]) / 2 + value[0] %}",
" {% set value = (value[1] - value[0]) / 2 + value[0] %}",