Difference between revisions of "Template:FAA-diagram/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(updates due to change from NACO to AeroNav)
imported>Zyxw
(Update documentation to reflect template being updated to automatically calculate current cycle number and effective date.)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This template is used to generate an external link to the [[Federal Aviation Administration]] (FAA) diagram for a specific airport. These [[URL]]s change every 28 days, so by using a template they can be updated in one place rather than editing multiple articles.
+
This template is used to generate an external link to the [[Federal Aviation Administration]] (FAA) diagram for a specific airport. These links change every 28 days and the template calculates the correct [[URL]] based on the current date.
  
 
== Parameters ==
 
== Parameters ==
# (required) - airport number as found in [[URL]] of the FAA's [http://aeronav.faa.gov/index.asp?xml=aeronav/applications/d_tpp digital - Terminal Procedures Publication/Airport Diagrams]. For a URL of <code><nowiki>http://aeronav.faa.gov/d-tpp/0701/00001AD.PDF</nowiki></code>, the airport number is <code>00001</code>.
+
# (required) - airport number as found in [[URL]] of the FAA's [http://aeronav.faa.gov/index.asp?xml=aeronav/applications/d_tpp digital - Terminal Procedures Publication/Airport Diagrams]. For a URL of <code><nowiki>http://</nowiki>aeronav.faa.gov/d-tpp/{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364)/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364)/364)-0.5 round 0)-1)*13}}|2}}/00001AD.PDF</code>, the airport number is <code>00001</code>.
 
# (optional) - airport name
 
# (optional) - airport name
  
 
== Examples ==
 
== Examples ==
 
# For [[Abilene Regional Airport]], without optional parameter:
 
# For [[Abilene Regional Airport]], without optional parameter:
#* URL:    <code><nowiki>http://aeronav.faa.gov/d-tpp/0701/00001AD.PDF</nowiki></code>
+
#* URL:    <code><nowiki>http://</nowiki>aeronav.faa.gov/d-tpp/{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364)/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364)/364)-0.5 round 0)-1)*13}}|2}}/00001AD.PDF</code>
 
#* Usage:  <code><nowiki>{{FAA-diagram|00001}}</nowiki></code>
 
#* Usage:  <code><nowiki>{{FAA-diagram|00001}}</nowiki></code>
 
#* Result: {{FAA-diagram|00001}}
 
#* Result: {{FAA-diagram|00001}}
 
# For [[O'Hare International Airport]], with optional parameter:
 
# For [[O'Hare International Airport]], with optional parameter:
#* URL:    <code><nowiki>http://aeronav.faa.gov/d-tpp/0701/00166AD.PDF</nowiki></code>
+
#* URL:    <code><nowiki>http://</nowiki>aeronav.faa.gov/d-tpp/{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364)/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364)/364)-0.5 round 0)-1)*13}}|2}}/00166AD.PDF</code>
 
#* Usage:  <code><nowiki>{{FAA-diagram|00166|O'Hare International}}</nowiki></code>
 
#* Usage:  <code><nowiki>{{FAA-diagram|00166|O'Hare International}}</nowiki></code>
 
#* Result: {{FAA-diagram|00166|O'Hare International}}
 
#* Result: {{FAA-diagram|00166|O'Hare International}}
  
 
== Technical information ==
 
== Technical information ==
The airport diagrams are part of the [[Aeronautical Information Publication]] (AIP) which is updated on a [[Aeronautical Information Publication#AIRAC effective dates (28-day cycle)|28-day cycle]] as per the [[ICAO]]. For the FAA's [http://aeronav.faa.gov/index.asp?xml=aeronav/applications/d_tpp digital - Terminal Procedures Publication/Airport Diagrams], this causes a change in the [[URL]] involving four numbers: the first two represent the year (09 for 2009, 10 for 2010) and the second two represent the current [[Aeronautical Information Regulation And Control|AIRAC]] cycle (01 through 13). This template should be updated before the effective date for each new cycle. The following is a list of changes required for 2012.
+
The airport diagrams are part of the [[Aeronautical Information Publication]] (AIP) which is updated on a [[Aeronautical Information Publication#AIRAC effective dates (28-day cycle)|28-day cycle]] as per the [[ICAO]]. For the FAA's [http://aeronav.faa.gov/index.asp?xml=aeronav/applications/d_tpp digital - Terminal Procedures Publication/Airport Diagrams], this causes a change in the [[URL]] involving four numbers: the first two represent the year (09 for 2009, 10 for 2010) and the second two represent the current [[Aeronautical Information Regulation And Control|AIRAC]] cycle (01 through 13). This template uses the current date (presently {{CURRENTDAY}} {{CURRENTMONTHABBREV}} {{CURRENTYEAR}}) to calculate the effective date and the matching four-digit cycle number. The following is a list of the current and upcoming cycle numbers and effective dates:
 
 
'''AIRAC effective dates for 2012:'''
 
 
<tt>
 
<tt>
* 1201 – effective 12 JAN 2012 to 09 FEB 2012
+
*<!--current-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364)/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364)/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*1))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1202 – effective 09 FEB 2012 to 08 MAR 2012
+
*<!--current+1-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*1))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*1))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*1))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*1))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*2))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1203 – effective 08 MAR 2012 to 05 APR 2012
+
*<!--current+2-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*2))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*2))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*2))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*2))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*3))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1204 – effective 05 APR 2012 to 03 MAY 2012
+
*<!--current+3-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*3))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*3))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*3))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*3))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*4))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1205 – effective 03 MAY 2012 to 31 MAY 2012
+
*<!--current+4-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*4))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*4))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*4))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*4))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*5))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1206 – effective 31 MAY 2012 to 28 JUN 2012
+
*<!--current+5-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*5))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*5))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*5))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*5))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*6))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1207 – effective 28 JUN 2012 to 26 JUL 2012
+
*<!--current+6-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*6))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*6))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*6))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*6))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*7))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1208 – effective 26 JUL 2012 to 23 AUG 2012
+
*<!--current+7-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*7))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*7))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*7))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*7))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*8))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1209 – effective 23 AUG 2012 to 20 SEP 2012
+
*<!--current+8-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*8))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*8))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*8))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*8))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*9))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1210 – effective 20 SEP 2012 to 18 OCT 2012
+
*<!--current+9-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*9))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*9))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*9))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*9))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*10))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1211 – effective 18 OCT 2012 to 15 NOV 2012
+
*<!--current+10-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*10))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*10))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*10))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*10))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*11))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1212 – effective 15 NOV 2012 to 13 DEC 2012
+
*<!--current+11-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*11))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*11))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*11))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*11))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*12))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
* 1213 – effective 13 DEC 2012 to 10 JAN 2013
+
*<!--current+12-->{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*12))/364)-0.5 round 0)+7}}|2}}{{padleft:{{#expr:((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*12))/28)-0.5 round 0)-(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+364+(28*12))/364)-0.5 round 0)-1)*13}}|2}} - effective {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*12))/28)-0.5 round 0)-1)*28+2454483}}}}}}}} to {{uc:{{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*13))/28)-0.5 round 0)-1)*28+2454483}}}}}}}}
 
</tt>
 
</tt>
  

Revision as of 22:41, 17 May 2012

This template is used to generate an external link to the Federal Aviation Administration (FAA) diagram for a specific airport. These links change every 28 days and the template calculates the correct URL based on the current date.

Parameters

  1. (required) - airport number as found in URL of the FAA's digital - Terminal Procedures Publication/Airport Diagrams. For a URL of http://aeronav.faa.gov/d-tpp/2601/00001AD.PDF, the airport number is 00001.
  2. (optional) - airport name

Examples

  1. For Abilene Regional Airport, without optional parameter:
    • URL: http://aeronav.faa.gov/d-tpp/2601/00001AD.PDF
    • Usage: {{FAA-diagram|00001}}
    • Result: FAA Airport Diagram (PDF), effective Error: Invalid time.
  2. For O'Hare International Airport, with optional parameter:

Technical information

The airport diagrams are part of the Aeronautical Information Publication (AIP) which is updated on a 28-day cycle as per the ICAO. For the FAA's digital - Terminal Procedures Publication/Airport Diagrams, this causes a change in the URL involving four numbers: the first two represent the year (09 for 2009, 10 for 2010) and the second two represent the current AIRAC cycle (01 through 13). This template uses the current date (presently 15 Jan 2026) to calculate the effective date and the matching four-digit cycle number. The following is a list of the current and upcoming cycle numbers and effective dates:

  • 2601 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2602 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2603 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2604 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2605 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2606 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2607 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2608 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2609 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2610 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2611 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2612 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.
  • 2613 - effective ERROR: INVALID TIME. to ERROR: INVALID TIME.

See also

Similar templates
  • {{FAA-airport}}, creates external link to FAA airport master record for a U.S. airport, updated every 56 days (URL does not change).
  • {{FAA-procedures}}, creates external link to FAA terminal procedures for a specific U.S. airport, updated (and URL changes) every 28 days.
  • {{AIP AU}}, creates external link to Australian AIP for a specific airport, updated (and URL changes) 4 times per year.
  • {{AIP FR}}, creates external link to French AIP for a specific airport, updated (and URL changes) every 28 days.
  • {{AIP IE}}, creates external link to Irish AIP for a specific airport.
  • {{AIP NL}}, creates external link to Netherlands AIP for a specific airport, updated (and URL changes) every 28 days.

External links