<p>This pull-request adds links to the corresponding item on <a href="www.wikidata.org">WikiData</a> into the browse-helper similar to the wikipedia-tags. For now it's much simpler than with the wikipedia-tags, because it only takes the plain wikidata-tag into consideration (no namespaced tags like operator:wikidata) and also restricts the values to only <code>/[Qq][1-9][0-9]*/</code>.</p>
<p>I'll surely add the namespaced tags mentioned on the <a href="http://wiki.openstreetmap.org/wiki/Proposed_features/Wikidata">WikiData-proposal-page</a> soon, because they are quite common (Streets/buildings named after or operated by a person/organization, …).</p>
<p>Another thing I'd find quite interesting would be, to show the wikidata-label additionally to the link. Either next to the link and somehow visually separated to show that this label is <strong>not</strong> part of the tag-value, or in the text which appears when hovering the link.<br>
This would make it much easier for a user to "encrypt" the wikidata-values.<br>
Would this be a good idea?<br>
Just wanted to ask before I put work into it.</p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/floscher/openstreetmap-website wikidata-links</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/786'>https://github.com/openstreetmap/openstreetmap-website/pull/786</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Added wikidata-links to the browse-helper (atm just the ones without namespaces).</li>
<li>Added tests for wikidata-links in the browse-helper</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/786/files#diff-0">app/helpers/browse_helper.rb</a>
(12)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/786/files#diff-1">config/locales/en.yml</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/786/files#diff-2">test/helpers/browse_helper_test.rb</a>
(27)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/786.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/786.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/786.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/786.diff</a></li>
</ul>
<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/786">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTQ1NTUwNywiZGF0YSI6eyJpZCI6Mzc0NTEwMzR9fQ==--23d4c829c37aaa77d2e36418548ea4de04c47446.gif" width="1" /></p>