Difference between revisions of "Develop auto tables"
Jump to navigation
Jump to search
m |
|||
| Line 20: | Line 20: | ||
*[[Template:Table324]] | *[[Template:Table324]] | ||
*[[Template:Test_split_table]] | *[[Template:Test_split_table]] | ||
| + | |||
| + | |||
| + | ==Tests== | ||
| + | |||
| + | ===Airport codes=== | ||
| + | |||
| + | {{#clear_external_data:}}{{#get_web_data:url=https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(way%5B%22name%22%5D%5B%22iata%22%5D%3B)%3Bout%3B | ||
| + | |format=xml | ||
| + | |data= | ||
| + | way_id=/osm/way/@id, | ||
| + | name=/osm/way/tag[@k='name']/@v, | ||
| + | iata=/osm/way/tag[@k='iata']/@v | ||
| + | |use xpath | ||
| + | }} | ||
| + | {| class="wikitable sortable mw-collapsible mw-collapsed" | ||
| + | ! width=500px; | Name | ||
| + | ! width=100px; | IATA | ||
| + | {{#for_external_table:<nowiki/> | ||
| + | {{!}}- | ||
| + | {{!}}[http://opengeofiction.net/way/{{{way_id}}} {{{name}}}] | ||
| + | {{!}}{{{iata}}} | ||
| + | {{!}}{{{icao}}} | ||
| + | }} | ||
| + | |} | ||
| + | {{#clear_external_data:}} | ||
Revision as of 18:59, 31 January 2023
Useful links
- Hilfe:Tabellen
- correct link:https://overpass.ogf.rent-a-planet.com/api/interpreter?data
- Template:MER-autoTable rfrsh
- Template:Table_rel
- Template:Table_opq
- List of autotables
Subtemplates
Sites for development
- Autotables_working
- Autotables_test_simple
- Autotables_modular
- Autotables_overpass
- Template:Table324
- Template:Test_split_table
Tests
Airport codes
Error while fetching data from URL https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(way%5B%22name%22%5D%5B%22iata%22%5D%3B)%3Bout%3B: $2.
Error fetching URL: Could not resolve host: overpass.ogf.rent-a-planet.com
There was a problem during the HTTP request: 0 Error
Could not get URL https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(way%5B%22name%22%5D%5B%22iata%22%5D%3B)%3Bout%3B after 3 tries.
| Name | IATA |
|---|