Template:Oquery: Difference between revisions

From OpenGeofiction
mNo edit summary
m (Testing shorter URL)
Line 1: Line 1:
<includeonly><span class="plainlinks">[https://ogfturbo.rent-a-planet.com/?Q=(area%5B%22admin_level%22%5D%5B%22ogf:id%22%3D%22{{{1}}}%22%5D%3B)-%3E.bndarea%3B%0A(node(area.bndarea)%5B%22{{{2}}}%22%7E%22{{urlencode:{{{3}}}}}%22%5D(%7B%7Bbbox%7D%7D)%3Bway(area.bndarea)%5B%22{{{2}}}%22%7E%22{{urlencode:{{{3}}}}}%22%5D(%7B%7Bbbox%7D%7D)%3Brelation(area.bndarea)%5B%22{{{2}}}%22%7E%22{{urlencode:{{{3}}}}}%22%5D(%7B%7Bbbox%7D%7D)%3B)%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B&C=-38.44498;155.06104;5&R {{{4|{{{2}}}={{{3}}}}}}]'''</span><sup>[[File:Overpass-turbo.svg|10px|link=]]</sup></includeonly><noinclude>
https://ogfturbo.rent-a-planet.com/?Q=(area%5B%22admin_level%22%5D%5B%22ogf%3Aid%22%3D%22UL02a%22%5D%3B)-%3E.bndarea%3B%0A(nwr(area.bndarea)%5B{{{query}}}%5D(%7B%7Bbbox%7D%7D)%3B)%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B&C=26.07652;46.83472;6
This template is for a basic Overpass query ''within a single administrative division by ogf:id code''. It uses the syntax <code><nowiki>{{Oquery|ogf:id|query|caption}}</nowiki></code>. Replace the three placeholders with the information desired. For the query parameter, use common tagging syntax with an underscore in lieu of a space). An example query might be <code><nowiki>{{Oquery|UL02a|leisure|park|Parks in Mauretia}}</nowiki></code>.
 
<includeonly><span class="plainlinks">[https://ogfturbo.rent-a-planet.com/?Q=(area%5B%22admin_level%22%5D%5B%22ogf:id%22%3D%22{{{1}}}%22%5D%3B)-%3E.bndarea%3B%0A(nwr(area.bndarea)%5B{{{query}}}%5D(%7B%7Bbbox%7D%7D)%3B)%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B&C=-38.44498;155.06104;5&R {{{caption|{{{query}}} in {{{1}}}}}}]'''</span><sup>[[File:Overpass-turbo.svg|10px|link=]]</sup></includeonly><noinclude>
This template is for a basic Overpass query ''within a single administrative division by ogf:id code''. It uses the syntax <code><nowiki>{{Oquery|ogf:id|query= |caption= }}</nowiki></code>. Replace the three placeholders with the information desired. For the query parameter, use common tagging syntax with an underscore in lieu of a space). An example query might be <code><nowiki>{{Oquery|UL02a|query=leisure=park|caption=Parks in Mauretia}}</nowiki></code>.


[[Category:Overpass templates]]</noinclude>
[[Category:Overpass templates]]</noinclude>

Revision as of 20:14, 24 October 2021

https://ogfturbo.rent-a-planet.com/?Q=(area%5B%22admin_level%22%5D%5B%22ogf%3Aid%22%3D%22UL02a%22%5D%3B)-%3E.bndarea%3B%0A(nwr(area.bndarea)%5B{{{query}}}%5D(%7B%7Bbbox%7D%7D)%3B)%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B&C=26.07652;46.83472;6


This template is for a basic Overpass query within a single administrative division by ogf:id code. It uses the syntax {{Oquery|ogf:id|query= |caption= }}. Replace the three placeholders with the information desired. For the query parameter, use common tagging syntax with an underscore in lieu of a space). An example query might be {{Oquery|UL02a|query=leisure=park|caption=Parks in Mauretia}}.