Difference between revisions of "Template:Requestdata test"

From geofiction
Jump to navigation Jump to search
(Created page with "<includeonly>{{#clear_external_data:}}{{#get_web_data:url=https://opengeofiction.net/api/0.6/relation/312195/full |format=xml |data= way_id=/osm/way/@id ,name=/osm/way/tag[@k...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#clear_external_data:}}{{#get_web_data:url=https://opengeofiction.net/api/0.6/relation/312195/full
+
<includeonly>{{#clear_external_data:}}{{#get_web_data:url=https://opengeofiction.net/api/0.6/relation/{{{relation|}}}/full
 
|format=xml
 
|format=xml
 
|data=
 
|data=
  way_id=/osm/way/@id
+
  way_id=/osm/{{{type|}}}/@id
,name=/osm/way/tag[@k='name']/@v
+
,name=/osm/{{{type|}}}/tag[@k='{{{column1tag|}}}']/@v
 
|use xpath
 
|use xpath
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 +
 +
==Usage==
 +
<pre>{{Requestdata test | relation=312195 | type=way | column1tag=name}}</pre>
 +
 +
==Example==
 +
{| {{Requestdata test | relation=312195 | type=way | column1tag=name}}
 +
{| class="wikitable"
 +
! Name
 +
! Link
 +
{{!}}-
 +
{{#for_external_table:<nowiki/>
 +
{{!}}{{{name}}}
 +
{{!}}[http://opengeofiction.net/way/{{{way_id}}} click here]
 +
{{!}}-
 +
}} |}
 +
{{#clear_external_data:}} |}
  
 
[[Category:Experimental templates]]</noinclude>
 
[[Category:Experimental templates]]</noinclude>

Latest revision as of 01:23, 23 January 2023


Usage

{{Requestdata test | relation=312195 | type=way | column1tag=name}}

Example

Name Link
Teststraße 1 click here
Teststraße 2 click here
Teststraße 3 click here
Teststraße 4 click here
Teststraße 5 click here
Teststraße 6 click here
Teststraße 7 click here
Teststraße 8 click here