Template talk:TagKey

From OpenStreetMap Wiki
Jump to navigation Jump to search

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 ones proposed in Template talk:Tag#Lua rewrite and Template talk:TagValue#Lua rewrite. I also replaced {{Keylink}} and {{Valuelink}} to demonstrate that those templates are overkill for discovering key and value description pages.

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 address some of the performance problems that have been identified on large pages.

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