<p></p>
<p>The issue I see with this kind of code is that it doesn't really scale. Next week another groups wants to have their special tag du jour linked on osm.org, and we add up with more and more code.</p>
<p>My suggestion would be:</p>
<ul>
<li>have pattern matching and replacement rules stored for each tag in Wikidata (on osm wiki)</li>
<li>write a script to manually pull relevant tag information</li>
<li>store updated config.yml file it as part of this repository</li>
</ul>
<p>We already do something similar for config/wiki_pages.yml. Maybe you could take a look how that is implemented. When different groups want their tag linkified we would only send them to Wikidata, and run the script afterwards. No more manual fiddling with Rails code.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2621#issuecomment-626210938">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOLOXNFUPBCNUIQ67DRQWIMLANCNFSM4M43YMWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLOM3HUT4PH27HGTK2DRQWIMLA5CNFSM4M43YMWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEVJTQ6Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2621#issuecomment-626210938",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2621#issuecomment-626210938",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>