Difference between revisions of "Template:Table rel"

From geofiction
Jump to navigation Jump to search
(Created page with "<includeonly>{| {{ #if:{{{relation|}}} | {{ #if:{{{type|}}} | {{#clear_external_data:}}{{#get_web_data:url=https://opengeofiction.net/api/0.6/relation/{{{relation}}}/full |for...")
 
m
Line 181: Line 181:
  
 
=Usage=
 
=Usage=
<pre>{{MER-autoTable_rfrsh
+
<pre>{{Table rel
 
| relation    = ...relation number
 
| relation    = ...relation number
 
| type        = {node,way} ...only ways OR nodes are possible
 
| type        = {node,way} ...only ways OR nodes are possible
Line 216: Line 216:
  
 
=Example: List of Gobeletplain Cafés=
 
=Example: List of Gobeletplain Cafés=
<pre>{{MER-autoTable_rfrsh
+
<pre>{{Table rel
 
| relation    = 48497
 
| relation    = 48497
 
| type        = node
 
| type        = node
Line 232: Line 232:
 
}}</pre>
 
}}</pre>
  
{{MER-autoTable_rfrsh
+
{{Table rel
 
| relation    = 48497
 
| relation    = 48497
 
| type        = node
 
| type        = node
Line 269: Line 269:
  
 
=Tests=
 
=Tests=
{{MER-autoTable_rfrsh
+
{{Table rel
 
| search1      = name/Gobeletplain
 
| search1      = name/Gobeletplain
 
| type        = node
 
| type        = node
Line 306: Line 306:
  
 
[[Category:Autotable templates]]
 
[[Category:Autotable templates]]
[[Category:Mergan templates]]
+
[[Category:Experimental templates]]</noinclude>
[[Category:Overpass templates]]</noinclude>
 

Revision as of 13:06, 31 July 2022


Usage

{{Table rel
| relation    = ...relation number
| type        = {node,way} ...only ways OR nodes are possible
| topic       = ...topic of table
| width       = ...total width of table
| column1sort = {no, } ...if 1st column is unsortable
| column1name = ...name of 1st column
| column1tag  = ...name of 1st column tag to search for
| column2sort = {no, } ...if 2nd column is unsortable
| column2name = ...name of 2nd column
| column2tag  = ...name of 2nd column tag to search for
| column3sort = {no, } ...if 3rd column is unsortable
| column3name = ...name of 3rd column
| column3tag  = ...name of 3rd column tag to search for
| column4sort = {no, } ...if 4th column is unsortable
| column4name = ...name of 4th column
| column4tag  = ...name of 4th column tag to search for
| column5sort = {no, } ...if 5th column is unsortable
| column5name = ...name of 5th column
| column5tag  = ...name of 5th column tag to search for
| column6sort = {no, } ...if 6th column is unsortable
| column6name = ...name of 6th column
| column6tag  = ...name of 6th column tag to search for
| column7sort = {no, } ...if 7th column is unsortable
| column7name = ...name of 7th column
| column7tag  = ...name of 7th column tag to search for
| column8sort = {no, } ...if 8th column is unsortable
| column8name = ...name of 8th column
| column8tag  = ...name of 8th column tag to search for
| column9sort = {no, } ...if 9th column is unsortable
| column9name = ...name of 9th column
| column9tag  = ...name of 9th column tag to search for
}}

Example: List of Gobeletplain Cafés

{{Table rel
| relation    = 48497
| type        = node
| topic       = List of Gobeletplain Cafés
| width       = 550
| column1name = Name
| column1tag  = name
| column2name = City
| column2tag  = is_in:city
| column3name = Country
| column3tag  = is_in:country
| column4sort = no
| column4name = Note
| column4tag  = ldata:note
}}
Error while fetching data from URL https://opengeofiction.net/api/0.6/relation/48497/full: $2.
There was a problem during the HTTP request: 410 Gone
Could not get URL https://opengeofiction.net/api/0.6/relation/48497/full after 3 tries.
List of Gobeletplain Cafés MER-refresh.png
Name City Country Note Map


Tests

Could not get URL https://osm3s.opengeofiction.net/api/interpreter?data=node%5B%22name%22%3D%22Gobeletplain%22%5D;out; after 3 tries.
List of Gobeletplain Cafés MER-refresh.png
Name City Country Note Map