You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I manage a Zulip organization where we discuss OpenStreetMap. OSM data model is based around key=value pairs called "tags". So when talking about OSM different key=value pairs are mentioned quite often. The meaning and intended use of each key (often in combination with specific set of values) is documented in OSM Wiki. It is impossible to remember all the details of tag use, so it is always handy to have a link to respective key and value pages in OSM Wiki.
Unfortunately, the best I can do in Zulip is adding a couple of linkifiers:
The surface=* key is used to provide additional information about the physical surface of roads/footpaths and some other features, particularly regarding material composition and/or structure. surface=asphalt tag is used for objects with asphalt surface.
Ideally, it should look like so:
The surface=* key is used to provide additional information about the physical surface of roads/footpaths and some other features, particularly regarding material composition and/or structure. surface=asphalt tag is used for objects with asphalt surface.
Note how key=value construct links to both key and value pages.
This is how adding linkifier may look like to support this functionality:
When linkifier's Pattern matches some text, it should convert portion, matched by Capture group to linkify, to a link leading to a respective URL format string. Add link button should allow user to add more Capture group to linkify + URL format string pairs.
The text was updated successfully, but these errors were encountered:
I manage a Zulip organization where we discuss OpenStreetMap. OSM data model is based around key=value pairs called "tags". So when talking about OSM different key=value pairs are mentioned quite often. The meaning and intended use of each key (often in combination with specific set of values) is documented in OSM Wiki. It is impossible to remember all the details of tag use, so it is always handy to have a link to respective key and value pages in OSM Wiki.
Unfortunately, the best I can do in Zulip is adding a couple of linkifiers:
(?P<key>[\w:]+)=(?P<tag>\w+)
https://wiki.openstreetmap.org/wiki/Tag:%(key)s%3D%(tag)s
(?P<key>[\w:]+)=\*
https://wiki.openstreetmap.org/wiki/Key:%(key)s
The result looks like so:
Ideally, it should look like so:
Note how key=value construct links to both key and value pages.
This is how adding linkifier may look like to support this functionality:
(?P<key>[\w:]+)=(?P<tag>\w+)
key
https://wiki.openstreetmap.org/wiki/Key:%(key)s
tag
https://wiki.openstreetmap.org/wiki/Tag:%(key)s%3D%(tag)s
When linkifier's Pattern matches some text, it should convert portion, matched by Capture group to linkify, to a link leading to a respective URL format string. Add link button should allow user to add more Capture group to linkify + URL format string pairs.
The text was updated successfully, but these errors were encountered: