Template:Oquery: Difference between revisions

From OpenGeofiction
mNo edit summary
mNo edit summary
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(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>
<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>.
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 and place the tag in single quotes). An example query might be <code><nowiki>{{Oquery|AR026|query=network='ME:national'|caption=National Highways of Mecyna}}</nowiki></code>.


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

Revision as of 15:15, 6 November 2021

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 and place the tag in single quotes). An example query might be {{Oquery|AR026|query=network='ME:national'|caption=National Highways of Mecyna}}.