<p>In app/helpers/browse_helper.rb:</p>
<pre style='color:#555'>> @@ -61,8 +61,17 @@ def format_key(key)
> def format_value(key, value)
> if wp = wikipedia_link(key, value)
> link_to h(wp[:title]), wp[:url], :title => t('browse.tag_details.wikipedia_link', :page => wp[:title])
> - elsif wdt = wikidata_link(key, value)
> - link_to h(wdt[:title]), wdt[:url], :title => t('browse.tag_details.wikidata_link', :page => wdt[:title])
> + elsif wdt = wikidata_links(key, value)
> + # IMPORTANT: Note that wikidata_links() returns an array of hashes, unlike for example wikipedia_link(),
> + # which just returns one such hash.
> + # Thus we have to iterate over it here.
> + result = ''
> + for item in wdt
> + # adding a link to the result-string
> + result += ';'+link_to(item[:title], item[:url], :title => t('browse.tag_details.wikidata_link', :page => item[:title].strip))
> + end
> + # Format the result and remove the superfluous semicolon, which was added in the for-loop above
> + simple_format(result[1..-1]);
</pre>
<p>Why do we want to use <code>simple_format</code> here? We don't do that for any of the other cases?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/pull/788/files#r15373616">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTg1NTk2MywiZGF0YSI6eyJpZCI6Mzc2ODAyMTl9fQ==--44193ea77c5075377a6538841c2c9804502edeea.gif" width="1" /></p>