Difference between revisions of "Template:FAA-procedures/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) terminal procedures 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) terminal procedures for a specific airport. These links change every 28 days and the template calculates the correct [[URL]] based on the current date.
  
 
== Parameters ==
 
== Parameters ==
Line 20: Line 20:
  
 
== Technical information ==
 
== Technical information ==
The terminal procedures 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], 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 terminal procedures 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], 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:58, 17 May 2012

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

Parameters

The template accepts one or two unnamed parameters:

  1. (required) the airport's FAA location identifier
  2. (optional) text to replace FAA identifier in displayed link

Examples

For Blairstown Airport (1N7):

Example using one parameter:

Examples using both parameters:

Technical information

The terminal procedures 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, 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 13 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-diagram}}, creates external link to FAA airport diagram 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