Module talk:Turn into tag link

From OpenStreetMap Wiki
Latest comment: 10 days ago by Chris2map in topic missing colon
Jump to navigation Jump to search

missing colon

See testcases, I think colon is not recognized by the pattern.

I also think there should be aome kind of notice for errors, like left-over characters at the end, or no matches at all (i.e. only left overs).
cyton (talk) 08:45, 11 May 2026 (UTC)Reply

Come to think of it now, you *could* split at colons, and use the prefix-variant of Template:Tag with the := parameters. I.e. splitting the parts of the tag apart at every colon into it's components.
The Template:Tag allows for 5 key components, that's reasonable to implement.
Same for the listed 5 components for the value, separated by semicolon, right?
cyton (talk) 11:54, 11 May 2026 (UTC)Reply
Or, what about implementing this as a feature of the Module:Tag itself?
I haven't read its source, but it probably handles this in some similar fashion already, no?
cyton (talk) 11:57, 11 May 2026 (UTC)Reply
Extended the module with ":". Most of the cases should work now. --Chris2map (talk) 13:10, 11 May 2026 (UTC)Reply