Difference between revisions of "Template:MER-opq-count"

From geofiction
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
<!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! --><includeonly>{{#if:{{{search1|}}} |  
 
<!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! --><includeonly>{{#if:{{{search1|}}} |  
{{#clear_external_data:}}{{#get_web_data:url=https://osm3s.opengeofiction.net/api/interpreter?data={{#if:{{{area|}}} |  
+
{{#clear_external_data:}}{{#get_web_data:url=https://overpass.ogf.rent-a-planet.com/api/interpreter?data={{#if:{{{area|}}} |  
 
{{#ifeq:{{{area}}} | MER |
 
{{#ifeq:{{{area}}} | MER |
 
(area%5B%22admin_level%22=2%5D%5B%22name%22=%22Merganien%22%5D;)-%3E.bndarea;%0A | (area%5B%22admin_level%22%5D%5B%22name%22=%22{{{area}}}%22%5D;)-%3E.bndarea;%0A }} }}(node{{#if:{{{area|}}} |  
 
(area%5B%22admin_level%22=2%5D%5B%22name%22=%22Merganien%22%5D;)-%3E.bndarea;%0A | (area%5B%22admin_level%22%5D%5B%22name%22=%22{{{area}}}%22%5D;)-%3E.bndarea;%0A }} }}(node{{#if:{{{area|}}} |  
Line 20: Line 20:
 
}}
 
}}
  
 +
 +
<!--
 
<pre>{{MER-opq-count
 
<pre>{{MER-opq-count
 
| search1 = highway/primary
 
| search1 = highway/primary
Line 42: Line 44:
 
{{MER-opq-count | search1 = ogf:count/inh241 | area = MER }}
 
{{MER-opq-count | search1 = ogf:count/inh241 | area = MER }}
  
{{MER-opq-count | search1 = ogf:count/inh241 | area = Federal States of Archanta }}
+
{{MER-opq-count | search1 = ogf:count/inh241 | area = Federal States of Archanta }}-->
  
 
<!--{{{#iferror: {{#ifexpr: {{MER-opq-count | search1 = building/yes | area = Myrcia}} | <dann-text> | <sonst-text> }} | Keine Zahl | Zahl }}-->
 
<!--{{{#iferror: {{#ifexpr: {{MER-opq-count | search1 = building/yes | area = Myrcia}} | <dann-text> | <sonst-text> }} | Keine Zahl | Zahl }}-->
Line 50: Line 52:
 
<!--{{#expr: ({{MER-opq-count | search1 = building/yes | area = Myrcia}})+3 }}-->
 
<!--{{#expr: ({{MER-opq-count | search1 = building/yes | area = Myrcia}})+3 }}-->
  
[[Category:Mergan templates]]
 
 
[[Category:Overpass templates]]</noinclude>
 
[[Category:Overpass templates]]</noinclude>

Revision as of 02:14, 7 January 2023