Browse Source

name-etymology: show abstracts from wikipedia articles

master
parent
commit
0e208fdb07
  1. 14
      name-etymology.json

14
name-etymology.json

@ -39,7 +39,19 @@
"{{ keyTrans('name:start_date') }}: {% if attribute(tags, \"name:start_date\") %}{{ attribute(tags, \"name:start_date\")|osmFormatDate({ format: \"long\" }) }}{% else %}{{ trans('unknown') }}{% endif %}<br/>",
"{% if tags.old_name %}{{ keyTrans('old_name') }}: {{ tags.old_name|enumerate }}<br/>{% endif %}",
"{% if attribute(tags, 'old_name:etymology') %}{{ keyTrans('old_name:etymology') }}: {{ attribute(tags, 'old_name:etymology')|enumerate }}<br/>{% endif %}",
""
"",
"{% if attribute(tags, 'name:etymology:wikidata') or attribute(tags, 'name:etymology:wikipedia') %}",
" <hr>",
" {% if attribute(tags, 'name:etymology:wikidata') %}",
" {% for value in attribute(tags, 'name:etymology:wikidata')|split(';') %}",
" {{ value|wikipediaAbstract|raw }}",
" {% endfor %}",
" {% else %}",
" {% for value in attribute(tags, 'name:etymology:wikipedia')|split(';') %}",
" {{ value|wikipediaAbstract|raw }}",
" {% endfor %}",
" {% endif %}",
"{% endif %}"
]
}
}
Loading…
Cancel
Save