Template talk:TagValue

From OpenStreetMap Wiki
Jump to navigation Jump to search

Great template - there's a real need for this! Part of me thinks it might be better to add an option to hide the key on the main Tag template (something like {{Tag|wheelchair|yes|displayKey=no}}, but that'd probably end up longer and more complex to type... Frankie Roberto 22:35, 6 September 2009 (UTC)

Link with redirect=no

Is there a way to add redirect=no to the generated link? I tried following the docs by using [[Key:{{{1}}}|on_kerb]] but that does not work. My goal is: We have a list of values on https://wiki.openstreetmap.org/wiki/Key:parking#Common_values and I want to change the links for those tag-pages that are redirected back in a way, that forces them to stay on the redirected page. I think that is less confusing for users. --Tordans (talk) 06:45, 28 December 2022 (UTC)

Lua rewrite

I've rewritten this template to be based on Module:Tag instead of wikitext. In general, there should be no difference to the input or output, other than a minor invisible change to the rendered HTML syntax, but some aspects of performance should improve under the new implementation. The difference should be significant on pages that transclude this template many times. The following comparisons reflect both the change proposed here and the one proposed in Template talk:Tag#Lua rewrite, but they remain somewhat pessimistic because of other templates like {{TagKey}} that haven't been ported to Lua yet:

The Lua module is passing a battery of tests, but more test cases are always welcome. If no showstopping issues are identified, I'd like to deploy these two rewrites soon so we can move on to other templates like {{TagKey}}.

 – Minh Nguyễn 💬 16:50, 14 April 2024 (UTC)

And also a port of {{TagKey}}, completing the set. – Minh Nguyễn 💬 18:40, 25 April 2024 (UTC)