Difference between revisions of "Template:WAAT-airport coords"

From OpenGeofiction Encyclopedia
Jump to: navigation, search
(Adding Wallawaukee Vernon Intl. (WVN))
Line 75: Line 75:
 
-->{{ #ifeq:{{{1}}} | DDM |  38.7145/79.5659 }}<!--
 
-->{{ #ifeq:{{{1}}} | DDM |  38.7145/79.5659 }}<!--
 
-->{{ #ifeq:{{{1}}} | DDT |  37.6873/81.1566 }}<!--
 
-->{{ #ifeq:{{{1}}} | DDT |  37.6873/81.1566 }}<!--
-->{{ #ifeq:{{{1}}} | DEL | -17.0808/49.7348 }}<!--
+
-->{{ #ifeq:{{{1}}} | DEL | -17.0580/43.9243 }}<!--
 
-->{{ #ifeq:{{{1}}} | DKD | -16.8145/148.5252 }}<!--
 
-->{{ #ifeq:{{{1}}} | DKD | -16.8145/148.5252 }}<!--
 
-->{{ #ifeq:{{{1}}} | DLT | -55.5472/136.7578 }}<!--
 
-->{{ #ifeq:{{{1}}} | DLT | -55.5472/136.7578 }}<!--

Revision as of 15:07, 16 January 2020


Notes for editing

Each greater airport has a unique three alphabetic character World Association of Air Transport-Airport Code, comprised of letters from the city name or airport name.

This code and the coordinates of the airport are stored in this template to be used everywhere else. Please do not change any existing code without making sure that they are not used!

§ Important technical notes to users
Please add the position of a new airport to this template. Don't hesitate to ask for help -> Michael.

Usage

{{WAAT-airport coords | 3 character WAAT-airport-code}}

Example

Example I

{{WAAT-airport coords | OAK }}

-37.7233/161.1788

{{WAAT-airport coords | OAK | Oakhill State }}

-37.7233/161.1788

Example II

{{MER-coordinates
| zoom = 13
| latitude = {{#titleparts:{{WAAT-airport coords|OAK}}|1|1}}
| longitude = {{#titleparts:{{WAAT-airport coords|OAK}}|2|2}} }}

OGFmapicon.png 37.7233 S, 161.1788 E

Example III

{{#titleparts:{{WAAT-airport coords|BAD}}|1|1}},{{#titleparts:{{WAAT-airport coords|BAD}}|2|2}}

47.2564,131.0824

Example IV

To circumvent problems of newbie-edits (using the template without adding appropriate coordinates) there is a solution:

{{MER-coordinates 
| zoom = 13 
| latitude = {{#titleparts:{{WAAT-airport coords|XXXXXX181848946 }}|1|1}} 
| longitude = {{#titleparts:{{WAAT-airport coords|XXXXXX181848946 }}|2|2}} 
}}