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

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎External links: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(14 intermediate revisions by 6 users not shown)
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://naco.faa.gov/index.asp?xml=naco/online/d_tpp Digital Terminal Procedures Publication]. For a URL of <code><nowiki>http://naco.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://naco.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://naco.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://naco.faa.gov/index.asp?xml=naco/online/d_tpp Digital Terminal Procedures/Airport Diagram], this causes a change in the [[URL]] involving four numbers: the first two represent the year (07 for 2007) and the second two represent the current cycle (01 through 13). This template should be updated on the effective date for each new cycle. The following is a list of the effective dates for 2007 and 2008:
+
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:
<tt>
 
* 0701 - Effective 18 JAN 2007 to 15 FEB 2007
 
* 0702 - Effective 15 FEB 2007 to 15 MAR 2007
 
* 0703 - Effective 15 MAR 2007 to 12 APR 2007
 
* 0704 - Effective 12 APR 2007 to 10 MAY 2007
 
* 0705 - Effective 10 MAY 2007 to 07 JUN 2007
 
* 0706 - Effective 07 JUN 2007 to 05 JUL 2007
 
* 0707 - Effective 05 JUL 2007 to 02 AUG 2007
 
* 0708 - Effective 02 AUG 2007 to 30 AUG 2007
 
* 0709 - Effective 30 AUG 2007 to 27 SEP 2007
 
* 0710 - Effective 27 SEP 2007 to 25 OCT 2007
 
* 0711 - Effective 25 OCT 2007 to 22 NOV 2007
 
* 0712 - Effective 22 NOV 2007 to 20 DEC 2007
 
* 0713 - Effective 20 DEC 2007 to 17 JAN 2008
 
* 0801 - Effective 17 JAN 2008 to 14 FEB 2008
 
* 0802 - Effective 14 FEB 2008 to 13 MAR 2008
 
* 0803 - Effective 13 MAR 2008 to 10 APR 2008
 
* 0804 - Effective 10 APR 2008 to 08 MAY 2008
 
* 0805 - Effective 08 MAY 2008 to 05 JUN 2008
 
* 0806 - Effective 05 JUN 2008 to 03 JUL 2008
 
* 0807 - Effective 03 JUL 2008 to 31 JUL 2008
 
* 0808 - Effective 31 JUL 2008 to 28 AUG 2008
 
* 0809 - Effective 28 AUG 2008 to 25 SEP 2008
 
* 0810 - Effective 25 SEP 2008 to 23 OCT 2008
 
* 0811 - Effective 23 OCT 2008 to 20 NOV 2008
 
* 0812 - Effective 20 NOV 2008 to 18 DEC 2008
 
* 0813 - Effective 18 DEC 2008 to 15 JAN 2009
 
</tt>
 
  
== External links ==
+
*<kbd><!--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}}}}}}}}</kbd>
*[http://faa.gov/ Federal Aviation Administration] (FAA)
+
*<kbd><!--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}}}}}}}}</kbd>
**[http://naco.faa.gov/ National Aeronautical Charting Office] (NACO)
+
*<kbd><!--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}}}}}}}}</kbd>
***[http://naco.faa.gov/content/naco/doles/AIRACschedule.pdf NACO 28 and 56 Day Product Schedule]
+
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
 +
*<kbd><!--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}}}}}}}}</kbd>
  
 
== See also ==
 
== See also ==
* [[Template:FAA-airport]] - external link to FAA Airport Master Record, updated every 56 days (the [[URL]] remains the same).
+
* [[Aeronautical Information Publication#AIRAC effective dates (28-day cycle)]]
* [[Template:FAA-procedures]] - external link to FAA Terminal Procedures, updated every 28 days (the URL changes with each update).
+
* [[List of airports in the United States]] – contains links to individual lists by state or territory
* [[Template:AIP_FR]] - external link to French [[Aeronautical Information Publication|AIP]], updated every 28 days (the URL changes with each update).
 
* [[Aeronautical Information Publication #AIRAC effective dates (28-day cycle)]]
 
  
<includeonly>
+
; Similar templates
 +
* {{tl|FAA-airport}}, creates external link to FAA airport master record for a U.S. airport, updated every 56 days ([[URL]] does not change)
 +
* {{tl|FAA-procedures}}, creates external link to FAA terminal procedures for a specific U.S. airport, updated (and URL changes) every 28 days
 +
* {{tl|AIP AU}}, creates external link to Australian AIP for a specific airport, updated (and URL changes) 4 times per year
 +
* {{tl|AIP FR}}, creates external link to French AIP for a specific airport, updated (and URL changes) every 28 days
 +
* {{tl|AIP IE}}, creates external link to Irish AIP for a specific airport
 +
* {{tl|AIP NL}}, creates external link to Netherlands AIP for a specific airport, updated (and URL changes) every 28 days
 +
 
 +
== External links ==
 +
*[https://www.faa.gov/ Federal Aviation Administration] (FAA)
 +
**[https://www.faa.gov/air_traffic/flight_info/aeronav/ Aeronautical Navigation Products] (AeroNav Products, formerly the National Aeronautical Charting Office)
 +
***[https://aeronav.faa.gov/content/aeronav/doles/28-56-day_schedule.pdf 28 and 56 Day Product Schedule: 2009 through 2018] ([[PDF]])
 +
<includeonly>{{Sandbox other||
 
<!--Categories-->
 
<!--Categories-->
 
[[Category:Aviation external link templates|{{PAGENAME}}]]
 
[[Category:Aviation external link templates|{{PAGENAME}}]]
  
<!--Interwikis-->
+
<!--Interwiki links-->
 +
[[ja:Template:FAA-diagram]]
 
[[ru:Шаблон:FAA-diagram]]
 
[[ru:Шаблон:FAA-diagram]]
</includeonly>
+
}}</includeonly>

Latest revision as of 04:12, 25 April 2020

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/2602/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/2602/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 23 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:

  • 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.
  • 2701 – 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