User:Mstr: Difference between revisions
mNo edit summary |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 89: | Line 89: | ||
===List of airports (automatic)=== | ===List of airports (automatic)=== | ||
{{#clear_external_data:}}{{#get_web_data:url=https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(way%5B%22aeroway%22%3D%22aerodrome%22%5D%5B%22is_in%3Acontinent%22%5D%5B%22is_in%3Acountry%22%5D%5B%22is_in%3Acity%22%5D%5B%22name%22%5D%5B%22aero%3Atype%22%5D%5B%22aero%3Agates%22%5D%5B%22aero% | How to add a airport to the list: add in addition to the '''way''' tagged with "aeroway"="aerodrome" the following tags: | ||
*"is_in:continent"=''continent name'' {Antarephia, Archanta, East Uletha, Orano, Pelanesia, Tarephia, West Uletha} | |||
*"is_in:country"=''your country's name'' | |||
*"is_in:city"=''primary city name'' | |||
*"aero:code"=''three letter code'' | |||
*"aero:gates"=''number of gates'', e.g. 23 | |||
*"aero:type"=''airport type'' {<code>domestic</code>,<code>regional</code>,<code>domestic</code>,<code>freight</code>,<code>military</code>,<code>general aviation</code>} | |||
*"aero:runways"=''runway number and length'', e.g. for a single runway <code>8/26 (2703 m)</code> or for multiple runways <code>2L/20R (3225 m)<nowiki><br></nowiki>2R/20L (3220 m)</code> (please consider spaces and line breaks) | |||
Only if all tags are set the airport appears in the list. | |||
{{#clear_external_data:}}{{#get_web_data:url=https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(way%5B%22aeroway%22%3D%22aerodrome%22%5D%5B%22is_in%3Acontinent%22%5D%5B%22is_in%3Acountry%22%5D%5B%22is_in%3Acity%22%5D%5B%22name%22%5D%5B%22aero%3Atype%22%5D%5B%22aero%3Agates%22%5D%5B%22aero%3Arunways%22%5D%3B)%3Bout%20center%20meta%3B | |||
|format=xml | |format=xml | ||
|data= | |data= | ||
way_id=/osm/way/@id, | way_id=/osm/way/@id, | ||
lat=/osm/way/center/@lat, | |||
lon=/osm/way/center/@lon, | |||
name=/osm/way/tag[@k='name']/@v, | name=/osm/way/tag[@k='name']/@v, | ||
continent=/osm/way/tag[@k='is_in:continent']/@v, | continent=/osm/way/tag[@k='is_in:continent']/@v, | ||
Line 104: | Line 116: | ||
}} | }} | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! width= | |+ List of airports <!--<span class="plainlink">([https://wiki.opengeofiction.net/index.php/{{FULLPAGENAMEE}}?action=purge&titles={{FULLPAGENAMEE}} '''<span style=color:#04B404>refresh</span>'''])</span>--> {{Purge}} | ||
! width= | |- | ||
! width= | ! width=100px; | Country | ||
! width= | ! width=130px; | Primary city | ||
! width= | ! width=150px; | Airport name | ||
! width= | ! width=30px; | Code | ||
! width= | ! width=100px; | Continent | ||
! width= | ! width=70px; | Type | ||
! width= | ! width=50px; | Gates | ||
! width=110px; | Runways | |||
! width=250px; class="unsortable"; | Location | |||
{{#for_external_table:<nowiki/> | {{#for_external_table:<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}{{{country}}} | {{!}}[[{{{country}}}]] | ||
{{!}}{{{city}}} | {{!}}[[{{{country}}}#{{{city}}}|{{{city}}}]] | ||
{{!}}{{{name}}} | {{!}}[[{{{country}}}#Aviation|{{{name}}}]] | ||
{{!}}{{{code}}} | {{!}}<code>{{{code}}}</code> | ||
{{!}}{{{continent}}} | {{!}}[[{{{continent}}}]] | ||
{{!}}{{{type}}} | {{!}}{{{type}}} | ||
{{!}}{{{gates}}} | {{!}}{{{gates}}} | ||
{{!}}{{{runways}}} | {{!}}{{{runways}}} | ||
{{!}}[[File:Airplane silhouette.svg|20px|link=https://opengeofiction.net/way/{{{way_id}}} {{{name}}}]] | {{!}}[[File:Airplane silhouette.svg|20px|link=]] <span class="plainlinks">[https://opengeofiction.net/way/{{{way_id}}} {{{lat}}}/{{{lon}}}]</span> | ||
}} | |||
|}{{#clear_external_data:}} | |||
===List of sibling cities (automatic)=== | |||
{{#clear_external_data:}}{{#get_web_data:url=https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(node%5B%22place%22%5D%5B%22population%22%5D%5B%22sibling_cities%22%5D(if%3At%5B%22population%22%5D%3E%3D50000)%3B)%3Bout%3B | |||
|format=xml | |||
|data= | |||
node_id=/osm/node/@id, | |||
city=/osm/node/tag[@k='name']/@v, | |||
country=/osm/node/tag[@k='is_in:country']/@v, | |||
sibling=/osm/node/tag[@k='sibling_cities']/@v | |||
|use xpath | |||
}} | |||
{| class="wikitable sortable" | |||
|+ List of sibling cities <!--<span class="plainlink">([https://wiki.opengeofiction.net/index.php/{{FULLPAGENAMEE}}?action=purge&titles={{FULLPAGENAMEE}} '''<span style=color:#04B404>refresh</span>'''])</span>--> {{Purge}} | |||
|- | |||
! width=130px; | City | |||
! width=100px; | Country | |||
! width=200px; | Sibling cities | |||
! width=50px; | Location | |||
{{#for_external_table:<nowiki/> | |||
{{!}}- | |||
{{!}}[[{{{country}}}#{{{city}}}|{{{city}}}]] | |||
{{!}}[[{{{country}}}]] | |||
{{!}}{{{sibling}}} | |||
{{!}}<span class="plainlinks">[//opengeofiction.net/node/{{{node_id}}} location]</span> | |||
}} | }} | ||
|}{{#clear_external_data:}} | |}{{#clear_external_data:}} |
Latest revision as of 01:37, 27 January 2024
Contact | Languages |
DE (fluent) EN (intermediate) FR (beginner) |
|
My Territories and Projects | |
Collaborative projects
|
Hello,
I am Mstr, OGF user since 2015.
Sandboxes
My last vacations
Borrodin, Antharia |
---|
Loading map... |
Odrava, Drabantia |
Loading map... |
Tarott, Kalm |
Loading map... |
First Harbor, Orinoco |
Loading map... |
Jardín, Tárrases |
Loading map... |
Säntjana, Karolia |
Loading map... |
Huntington, Federal States |
Loading map... |
Hreawirc, Wyster |
Loading map... |
Mynninghamn, Østermark |
Loading map... |
Campo Verde, Brasonia |
Loading map... |
Latina, Latina |
Loading map... |
Gobras City, Gobrassanya |
Loading map... |
Khaiwoon, Khaiwoon |
Loading map... |
List of airports (automatic)
How to add a airport to the list: add in addition to the way tagged with "aeroway"="aerodrome" the following tags:
- "is_in:continent"=continent name {Antarephia, Archanta, East Uletha, Orano, Pelanesia, Tarephia, West Uletha}
- "is_in:country"=your country's name
- "is_in:city"=primary city name
- "aero:code"=three letter code
- "aero:gates"=number of gates, e.g. 23
- "aero:type"=airport type {
domestic
,regional
,domestic
,freight
,military
,general aviation
} - "aero:runways"=runway number and length, e.g. for a single runway
8/26 (2703 m)
or for multiple runways2L/20R (3225 m)<br>2R/20L (3220 m)
(please consider spaces and line breaks)
Only if all tags are set the airport appears in the list.
List of sibling cities (automatic)
City | Country | Sibling cities | Location
|
---|---|---|---|
Town B | Mergania | X;Y;Z | location |
Town A | Mergania | A;B;C;D;E;F;G | location |