Jump to content

Template:Oquery: Difference between revisions

From OpenGeofiction
m Testing shorter URL
m updating
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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
<includeonly><span class="plainlinks">[https://overpass.opengeofiction.net/?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%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 where needed and place the tag in single quotes. (Double quotes will be needed when there is an apostrophe in the query.) An example query might be <code><nowiki>{{Oquery|AR026|query=network='ME:national'|caption=National Highways of Mecyna}}</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>
[[Category:Overpass link templates]]
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>

Latest revision as of 19:36, 17 January 2026

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 where needed and place the tag in single quotes. (Double quotes will be needed when there is an apostrophe in the query.) An example query might be {{Oquery|AR026|query=network='ME:national'|caption=National Highways of Mecyna}}.