| | 1 | '''Tag2Link''' is the name (of a former JOSM plugin) for extracting URLs from [[Help/Concepts/Object#Tags|tags]]. For instance, this allows to open the `website` of an OSM object in the web browser. |
| | 2 | |
| | 3 | == Where to find it? == |
| | 4 | Tag2Link can be invoked from the following locations within JOSM: |
| | 5 | * [[Help/Dialog/TagsMembership]] |
| | 6 | * [[Help/Dialog/SelectionList]] |
| | 7 | * [[Help/Dialog/RelationList] |
| | 8 | |
| | 9 | == Built-in rules == |
| | 10 | The following rules are built-in (OSM key → action): |
| | 11 | * name → Search on DuckDuckGo |
| | 12 | * website → URL |
| | 13 | * source → URL |
| | 14 | * url → URL |
| | 15 | * image → Wikimedia Commons |
| | 16 | * wikipedia → Wikipedia |
| | 17 | * wikidata → Wikidata |
| | 18 | * species → Wikispecies |
| | 19 | |
| | 20 | == Rules from Wikidata == |
| | 21 | Additional rules are loaded from Wikidata items which have [https://www.wikidata.org/wiki/Property:P1282 OSM tag or key (P1282)] and [https://www.wikidata.org/wiki/Property:P1630 formatter URL (P1630)] defined. Use the following URL to the Wikidata Query Service in order to inspect all Wikidata item taken into account: https://w.wiki/GbF |
| | 22 | |
| | 23 | == Rules from OSM Sophox == |
| | 24 | Additional rules are loaded from OSM Wiki Wikibase based on [https://wiki.openstreetmap.org/wiki/Property:P8 formatter URL (P8)], see [https://sophox.org/#SELECT%20%3Fitem%20%28CONCAT%28%22Key%3A%22%2C%20%3Fpermanent_key_ID%29%20as%20%3FOSM_key%29%20%3Fformatter_URL%20WHERE%20%7B%0A%20%20FILTER%28%3Fpermanent_key_ID%20NOT%20IN%20%28%27image%27%2C%20%27url%27%2C%20%27website%27%2C%20%27wikidata%27%2C%20%27wikimedia_commons%27%29%29.%0A%20%20%3Fitem%20osmdt%3AP2%20osmd%3AQ7.%0A%20%20%3Fitem%20osmdt%3AP16%20%3Fpermanent_key_ID.%0A%20%20%3Fitem%20osmdt%3AP8%20%3Fformatter_URL.%0A%7D%0A this query] on OSM Sophox Service. |