Browse Source

etymology: link to wikipedia (either data_lang or ui_lang)

railway-rails
parent
commit
11a0ed0fec
  1. 2
      etymology.yaml

2
etymology.yaml

@ -51,6 +51,8 @@ feature:
{% set url = attribute(tags, 'name:etymology:website') {% set url = attribute(tags, 'name:etymology:website')
|default(attribute(tags, 'name:etymology:url')) |default(attribute(tags, 'name:etymology:url'))
|default(wikidata.sitelinks[user.data_lang ~ 'wiki'].url)
|default(wikidata.sitelinks[user.ui_lang ~ 'wiki'].url)
|default(etymWikidata[i] ? 'https://wikidata.org/wiki/' ~ etymWikidata[i]|url_encode : null) |default(etymWikidata[i] ? 'https://wikidata.org/wiki/' ~ etymWikidata[i]|url_encode : null)
%} %}

Loading…
Cancel
Save