Difference between revisions of "Template:AIP FR/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(use new template for transcluded documentation)
m (20 revisions imported)
 
(17 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 -->
==Documentation==
+
This template generates an external link to the French [[Aeronautical Information Publication]] (AIP) for a specific airport. These links change every 28 days and the template calculates the correct [[URL]] based on the current date.
This template is used to generate an external link to the French [[Aeronautical Information Publication]] for a specified airport. This URL changes monthly, so by using a template it can be updated in one place rather than editing multiple articles.
 
  
=== Airports in France ===
+
== Airports in France ==
 
Parameters:
 
Parameters:
# (unnamed) - airport's ICAO location identifier, i.e. LFMN
+
# ''(unnamed)'' &ndash; airport's [[ICAO location indicator]], i.e. LFMN
# ''name'' (optional) - airport's location, i.e. '''NICE''' CÔTE D'AZUR (location and bold print are as shown in the AIP).  Most airports show two locations: the first is the city served, second is the city where the airport is located.
+
# ''name'' (optional) &ndash; airport's location, i.e. '''NICE''' CÔTE D'AZUR (location and bold print are as shown in the AIP).  Most airports show two locations: the first is the city served, second is the city where the airport is located.
  
 
Short version (used in airport lists):
 
Short version (used in airport lists):
Line 17: Line 16:
 
* Result: {{AIP_FR|LFMN|name='''NICE''' CÔTE D'AZUR}}
 
* Result: {{AIP_FR|LFMN|name='''NICE''' CÔTE D'AZUR}}
  
=== Airports in French overseas territories ===
+
== Airports in French overseas territories ==
 
Parameters:
 
Parameters:
# (unnamed) - airport's ICAO location identifier, i.e. NTAA
+
# ''(unnamed)'' &ndash; airport's ICAO location indicator, i.e. NTAA
# (unnamed) - AIP directory
+
# ''(unnamed)'' &ndash; AIP directory
#* CAR-SAM-NAM: French [[Antilles]] ([[Guadeloupe]], [[Martinique]]), [[French Guiana]], [[Saint-Pierre and Miquelon]]
+
#* <code>CAR-SAM-NAM</code> &ndash; French [[Antilles]] ([[Guadeloupe]], [[Martinique]]), [[French Guiana]], [[Saint-Pierre and Miquelon]]
#* PAC-P: [[French Polynesia]]
+
#* <code>PAC-P</code> &ndash; [[French Polynesia]]
#* PAC-N: [[New Caledonia]], [[Wallis and Futuna]]
+
#* <code>PAC-N</code> &ndash; [[New Caledonia]], [[Wallis and Futuna]]
#* RUN: [[Réunion]], [[Mayotte]]
+
#* <code>RUN</code> &ndash; [[Réunion]], [[Mayotte]]
# ''name'' (optional) - airport's location, i.e. '''TAHITI''' FAA'A (location and bold print are as shown in the AIP).
+
# ''name'' (optional) &ndash; airport's location, i.e. '''TAHITI''' FAA'A (location and bold print are as shown in the AIP).
  
 
Short version (used in airport lists):
 
Short version (used in airport lists):
Line 34: Line 33:
 
* Usage: <code><nowiki>{{AIP_FR|NTAA|PAC-P|name='''TAHITI''' FAA'A}}</nowiki></code>
 
* Usage: <code><nowiki>{{AIP_FR|NTAA|PAC-P|name='''TAHITI''' FAA'A}}</nowiki></code>
 
* Result: {{AIP_FR|NTAA|PAC-P|name='''TAHITI''' FAA'A}}
 
* Result: {{AIP_FR|NTAA|PAC-P|name='''TAHITI''' FAA'A}}
 +
 +
== Technical information ==
 +
The AIP is updated on a [[Aeronautical Information Publication#AIRAC effective dates (28-day cycle)|28-day cycle]] as per the [[ICAO]]. For the online version of the French AIPs this causes a change in the [[URL]] involving the [[Aeronautical Information Regulation And Control|AIRAC]] effective date formatted as <code>YYYY-MM-DD</code>. This template uses the current date (presently {{CURRENTDAY}} {{CURRENTMONTHABBREV}} {{CURRENTYEAR}}) to calculate the effective date. The following is a list for the current and upcoming AIRAC cycles:
 +
 +
*<kbd><!--current-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+1-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*1))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*1))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+2-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*2))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*2))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+3-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*3))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*3))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+4-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*4))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*4))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+5-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*5))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*5))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+6-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*6))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*6))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+7-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*7))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*7))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+8-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*8))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*8))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+9-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*9))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*9))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+10-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*10))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*10))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+11-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*11))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*11))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
*<kbd><!--current+12-->{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*12))/28)-0.5 round 0)-1)*28+2454483}}}}}} — effective {{#time:d M Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28+(28*12))/28)-0.5 round 0)-1)*28+2454483}}}}}} (AIRAC cycle {{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}})</kbd>
 +
 +
If this template stops working, the most likely reason is that the URL format has changed. To find the current format, go to the [http://www.sia.aviation-civile.gouv.fr/html/frameset_aip_uk.htm Aeronautical Information Publications] page of the ''Service d'information aéronautique'' (SIA) website and view the AIP for an airport.
 +
 +
* The current format for airports in France is <code>https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_{{uc:{{#time:d_M_Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}}}/FRANCE/AIRAC-{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}/html/eAIP/FR-AD-2.LFMN-fr-FR.html</code>, where <code>{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}</code> is the current effective date and <code>LFMN</code> is the airport's ICAO location indicator.
 +
 +
* The current format for airports in French overseas territories is <code>https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_{{uc:{{#time:d_M_Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}}}/PAC-P/AIRAC-{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}/html/eAIP/FR-AD-2.NTAA-fr-FR.html</code>, where <code>{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}</code> is the current effective date, <code>NTAA</code> is the airport's ICAO location indicator and <code>PAC-P</code> is used for airports in French Polynesia. Other possibilities here are <code>CAR-SAM-NAM</code> for French Antilles (Guadeloupe, Martinique), French Guiana, or Saint-Pierre and Miquelon; <code>PAC-N</code> for New Caledonia or Wallis and Futuna; <code>RUN</code> for Réunion or Mayotte.
  
 
== See also ==
 
== See also ==
 +
; Lists of airports
 
* [[List of airports in France]]
 
* [[List of airports in France]]
 
* [[List of airports in French Guiana]]
 
* [[List of airports in French Guiana]]
Line 46: Line 69:
 
* [[List of airports in Saint-Pierre and Miquelon]]
 
* [[List of airports in Saint-Pierre and Miquelon]]
 
* [[List of airports in Wallis and Futuna]]
 
* [[List of airports in Wallis and Futuna]]
 +
 +
; Similar templates
 +
* {{tl|AIP AU}}, creates an external link to the Australian AIP for a specific airport (URL changes 4 times per year).
 +
* {{tl|AIP IE}}, creates an external link to the Irish AIP for a specific airport.
 +
* {{tl|AIP NL}}, creates an external link to the Netherlands AIP for a specific airport (URL changes every 28 days).
 +
* {{tl|FAA-diagram}}, creates an external link to the [[FAA]] airport diagram for a specific U.S. airport (URL changes every 28 days).
 +
* {{tl|FAA-procedures}}, creates an external link to the FAA terminal procedures for a specific U.S. airport (URL changes every 28 days).
  
 
== External links ==
 
== External links ==
*[http://www.sia.aviation-civile.gouv.fr/ ''Service d'information aéronautique'' (SIA)]
+
* [https://www.sia.aviation-civile.gouv.fr ''Service d'information aéronautique'' (SIA)], the French [[Aeronautical Information Service]]
**[http://www.sia.aviation-civile.gouv.fr/html/frameset_aip_fr.htm Publications d'information aéronautique (AIP)] {{fr icon}}
+
** [https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_{{uc:{{#time:d_M_Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}}}/FRANCE/AIRAC-{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}/html/index-fr-FR.html eAIP FRANCE] - effective {{#time:j F Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}
**[http://www.sia.aviation-civile.gouv.fr/html/frameset_aip_uk.htm Aeronautical Information Publications (AIP)] {{en icon}}
+
** [https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_{{uc:{{#time:d_M_Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}}}/CAR-SAM-NAM/AIRAC-{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}/html/index-fr-FR.html eAIP CAR-SAM-NAM] - effective {{#time:j F Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}
 +
** [https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_{{uc:{{#time:d_M_Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}}}/PAC-P/AIRAC-{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}/html/index-fr-FR.html eAIP PAC-P] - effective {{#time:j F Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}
 +
** [https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_{{uc:{{#time:d_M_Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}}}/PAC-N/AIRAC-{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}/html/index-fr-FR.html eAIP PAC-N] - effective {{#time:j F Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}
 +
** [https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_{{uc:{{#time:d_M_Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}}}/RUN/AIRAC-{{#time:Y-m-d|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}/html/index-fr-FR.html eAIP RUN] - effective {{#time:j F Y|{{JULIANDAY.TIMESTAMP|{{#expr:(((({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-2454483+28)/28)-0.5 round 0)-1)*28+2454483}}}}}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
[[Category:Aviation external link templates]]
  
<includeonly>
+
}}</includeonly>
<!--Categories-->
 
[[Category:Aviation templates|{{PAGENAME}}]]
 
[[Category:External link templates|{{PAGENAME}}]]
 
<!--Other languages-->
 
</includeonly>
 

Latest revision as of 17:06, 15 October 2020

This template generates an external link to the French Aeronautical Information Publication (AIP) for a specific airport. These links change every 28 days and the template calculates the correct URL based on the current date.

Airports in France

Parameters:

  1. (unnamed) – airport's ICAO location indicator, i.e. LFMN
  2. name (optional) – airport's location, i.e. NICE CÔTE D'AZUR (location and bold print are as shown in the AIP). Most airports show two locations: the first is the city served, second is the city where the airport is located.

Short version (used in airport lists):

Long version (used in airport articles):

Airports in French overseas territories

Parameters:

  1. (unnamed) – airport's ICAO location indicator, i.e. NTAA
  2. (unnamed) – AIP directory
  3. name (optional) – airport's location, i.e. TAHITI FAA'A (location and bold print are as shown in the AIP).

Short version (used in airport lists):

Long version (used in airport articles):

Technical information

The AIP is updated on a 28-day cycle as per the ICAO. For the online version of the French AIPs this causes a change in the URL involving the AIRAC effective date formatted as YYYY-MM-DD. This template uses the current date (presently 19 Jan 2026) to calculate the effective date. The following is a list for the current and upcoming AIRAC cycles:

  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2601)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2602)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2603)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2604)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2605)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2606)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2607)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2608)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2609)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2610)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2611)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2612)
  • Error: Invalid time. — effective Error: Invalid time. (AIRAC cycle 2613)

If this template stops working, the most likely reason is that the URL format has changed. To find the current format, go to the Aeronautical Information Publications page of the Service d'information aéronautique (SIA) website and view the AIP for an airport.

  • The current format for airports in France is https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_ERROR: INVALID TIME./FRANCE/AIRAC-Error: Invalid time./html/eAIP/FR-AD-2.LFMN-fr-FR.html, where Error: Invalid time. is the current effective date and LFMN is the airport's ICAO location indicator.
  • The current format for airports in French overseas territories is https://www.sia.aviation-civile.gouv.fr/dvd/eAIP_ERROR: INVALID TIME./PAC-P/AIRAC-Error: Invalid time./html/eAIP/FR-AD-2.NTAA-fr-FR.html, where Error: Invalid time. is the current effective date, NTAA is the airport's ICAO location indicator and PAC-P is used for airports in French Polynesia. Other possibilities here are CAR-SAM-NAM for French Antilles (Guadeloupe, Martinique), French Guiana, or Saint-Pierre and Miquelon; PAC-N for New Caledonia or Wallis and Futuna; RUN for Réunion or Mayotte.

See also

Lists of airports
Similar templates
  • {{AIP AU}}, creates an external link to the Australian AIP for a specific airport (URL changes 4 times per year).
  • {{AIP IE}}, creates an external link to the Irish AIP for a specific airport.
  • {{AIP NL}}, creates an external link to the Netherlands AIP for a specific airport (URL changes every 28 days).
  • {{FAA-diagram}}, creates an external link to the FAA airport diagram for a specific U.S. airport (URL changes every 28 days).
  • {{FAA-procedures}}, creates an external link to the FAA terminal procedures for a specific U.S. airport (URL changes every 28 days).

External links