Template:DescriptionLinks: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
Content deleted Content added
Maro21 (talk | contribs)
m remove "query"
MalgiK (talk | contribs)
Add symbols
Line 1: Line 1:
{{#if: {{{rtype|}}} |
{{#if: {{{rtype|}}} |
* {{TaginfoLinks
* [[File:Taginfo-icon-1.svg|12px|text-bottom]] {{TaginfoLinks
| path = relations/{{{rtype|}}}
| path = relations/{{{rtype|}}}
| ad = {{TaginfoLinksPerLanguage|ad|lang={{{lang|}}}}}
| ad = {{TaginfoLinksPerLanguage|ad|lang={{{lang|}}}}}
Line 37: Line 37:
}}
}}
{{#ifeq: {{ROOTPAGENAME}} | Open Historical Map |
{{#ifeq: {{ROOTPAGENAME}} | Open Historical Map |
* [https://openhistoricalmap.github.io/overpass-turbo/?template=key-value-type&type=relation&key=type&value={{URLENCODE:{{{rtype|}}}|QUERY}} overpass-turbo]
* [[File:Taginfo-icon-1.svg|12px|text-bottom]] [https://openhistoricalmap.github.io/overpass-turbo/?template=key-value-type&type=relation&key=type&value={{URLENCODE:{{{rtype|}}}|QUERY}} overpass-turbo]
|
|
* [https://overpass-turbo.eu/?template=key-value-type&type=relation&key=type&value={{URLENCODE:{{{rtype|}}}|QUERY}} overpass-turbo]
* [[File:Overpass-turbo.svg|16px|text-bottom]] [https://overpass-turbo.eu/?template=key-value-type&type=relation&key=type&value={{URLENCODE:{{{rtype|}}}|QUERY}} overpass-turbo]
}}
}}
| {{#if: {{{value|}}} |
| {{#if: {{{value|}}} |
* {{TaginfoLinks
* [[File:Taginfo-icon-1.svg|12px|text-bottom]] {{TaginfoLinks
| path = tags/{{{key}}}={{{value|}}}
| path = tags/{{{key}}}={{{value|}}}
| ad = {{TaginfoLinksPerLanguage|ad|lang={{{lang|}}}}}
| ad = {{TaginfoLinksPerLanguage|ad|lang={{{lang|}}}}}
Line 79: Line 79:
}}
}}
{{#ifeq: {{ROOTPAGENAME}} | Open Historical Map |
{{#ifeq: {{ROOTPAGENAME}} | Open Historical Map |
* [https://openhistoricalmap.github.io/overpass-turbo/?template=key-value&key={{URLENCODE:{{{key}}}|QUERY}}&value={{URLENCODE:{{{value|}}}|QUERY}} overpass-turbo]
* [[File:Taginfo-icon-1.svg|12px|text-bottom]] [https://openhistoricalmap.github.io/overpass-turbo/?template=key-value&key={{URLENCODE:{{{key}}}|QUERY}}&value={{URLENCODE:{{{value|}}}|QUERY}} overpass-turbo]
|
|
* [https://overpass-turbo.eu/?template=key-value&key={{URLENCODE:{{{key}}}|QUERY}}&value={{URLENCODE:{{{value|}}}|QUERY}} overpass-turbo]
* [[File:Overpass-turbo.svg|16px|text-bottom]] [https://overpass-turbo.eu/?template=key-value&key={{URLENCODE:{{{key}}}|QUERY}}&value={{URLENCODE:{{{value|}}}|QUERY}} overpass-turbo]
<!-- Sophox service seems up, https://github.com/Sophox/sophox/issues/24 -->
<!-- Sophox service seems up, https://github.com/Sophox/sophox/issues/24 -->
* [https://sophox.org/#%23defaultView%3AMap%0ASELECT%20%2a%20WHERE%20%7B%0A%20%20%20%20%20%20%20%3Fosm%20osmt%3A{{URLENCODE:{{{key}}}|QUERY}}%20%22{{URLENCODE:{{{value|}}}|QUERY}}%22%20.%0A%20%20%20%20%20%20%20%3Fosm%20osmm%3Aloc%20%3Floc%20.%0A%7D Sophox]
* [[File:Sophox_logo.svg|24px|text-bottom]] [https://sophox.org/#%23defaultView%3AMap%0ASELECT%20%2a%20WHERE%20%7B%0A%20%20%20%20%20%20%20%3Fosm%20osmt%3A{{URLENCODE:{{{key}}}|QUERY}}%20%22{{URLENCODE:{{{value|}}}|QUERY}}%22%20.%0A%20%20%20%20%20%20%20%3Fosm%20osmm%3Aloc%20%3Floc%20.%0A%7D Sophox]
* [https://taghistory.raifer.tech/#***/{{{key}}}/{{URLENCODE:{{{value|}}}|PATH}} OSM Tag History]
* {{#invoke:char|char|0x1F4C8}} [https://taghistory.raifer.tech/#***/{{{key}}}/{{URLENCODE:{{{value|}}}|PATH}} OSM Tag History]
}}
}}
|
|
* {{TaginfoLinks
* [[File:Taginfo-icon-1.svg|12px|text-bottom]] {{TaginfoLinks
| path = keys/{{{key}}}
| path = keys/{{{key}}}
| ad = {{TaginfoLinksPerLanguage|ad|lang={{{lang|}}}}}
| ad = {{TaginfoLinksPerLanguage|ad|lang={{{lang|}}}}}
Line 124: Line 124:
}}
}}
{{#ifeq: {{ROOTPAGENAME}} | Open Historical Map |
{{#ifeq: {{ROOTPAGENAME}} | Open Historical Map |
* [https://openhistoricalmap.github.io/overpass-turbo/?template=key&key={{URLENCODE:{{{key}}}|QUERY}} overpass-turbo]
* [[File:OpenHistoricalMap_logo.svg|16px|text-bottom]] [https://openhistoricalmap.github.io/overpass-turbo/?template=key&key={{URLENCODE:{{{key}}}|QUERY}} overpass-turbo]
|
|
* [https://overpass-turbo.eu/?template=key&key={{URLENCODE:{{{key}}}|QUERY}} overpass-turbo]
* [[File:Overpass-turbo.svg|16px|text-bottom]] [https://overpass-turbo.eu/?template=key&key={{URLENCODE:{{{key}}}|QUERY}} overpass-turbo]
* [https://taghistory.raifer.tech/#***/{{{key}}}/ OSM Tag History]
* {{#invoke:char|char|0x1F4C8}} [https://taghistory.raifer.tech/#***/{{{key}}}/ OSM Tag History]
}}
}}
}}}}<noinclude>
}}}}<noinclude>

Revision as of 21:45, 4 December 2024

[Edit] [Purge] Template documentation

Usage

This template displays a list of links to external tools, within the infobox displayed in description pages for OSM relation types, OSM tag keys, or OSM full tags (key and value).

  • {{DescriptionLinks|rtype= rtype |lang= lang }}
  • {{DescriptionLinks|key= key |lang= lang }}
  • {{DescriptionLinks|key= key |value= value |lang= lang }}
    • rtype is the identifier of an OSM relation type. It if is not specified the following 2 parameters will be used:
      • key is the key of an OSM tag. It is mandatory if rtype is not specified;
      • value is the value of an OSM tag. It is only used in association with a specified key.
    • lang allows setting the appropriate language code to use to determine the list of relevant Taginfo sites (with Template:TaginfoLinksPerLanguage). It may be used to translate or adapt the presentation of the generated bulleted list and other displayed labels.

Note

This template uses internally Template:TaginfoLinks for matching relevant Taginfo sites, and should be modified and kept in sync with the list of active TagInfo sites.

See also