<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bharatpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AAirport-Statistics</id>
	<title>Template:Airport-Statistics - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.bharatpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AAirport-Statistics"/>
	<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Template:Airport-Statistics&amp;action=history"/>
	<updated>2026-08-18T14:43:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://en.bharatpedia.org/w/index.php?title=Template:Airport-Statistics&amp;diff=30078&amp;oldid=prev</id>
		<title>WikiDwarf: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Template:Airport-Statistics&amp;diff=30078&amp;oldid=prev"/>
		<updated>2021-04-24T08:46:09Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:16, 24 April 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiDwarf</name></author>
	</entry>
	<entry>
		<id>https://en.bharatpedia.org/w/index.php?title=Template:Airport-Statistics&amp;diff=30077&amp;oldid=prev</id>
		<title>&gt;MusikBot II: Protected &quot;Template:Airport-Statistics&quot;: High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Template:Airport-Statistics&amp;diff=30077&amp;oldid=prev"/>
		<updated>2021-03-08T17:59:39Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/Template:Airport-Statistics&quot; title=&quot;Template:Airport-Statistics&quot;&gt;Template:Airport-Statistics&lt;/a&gt;&amp;quot;: &lt;a href=&quot;https://en.bharatpedia.org/wiki/Bharatpedia:High-risk_templates&quot; class=&quot;extiw&quot; title=&quot;wikipedia:High-risk templates&quot;&gt;High-risk template or module&lt;/a&gt; (&lt;a href=&quot;/w/index.php?title=User:MusikBot_II/TemplateProtector&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:MusikBot II/TemplateProtector (page does not exist)&quot;&gt;more info&lt;/a&gt;) ([Edit=Require autoconfirmed or confirmed access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!--fr&lt;br /&gt;
Ce modèle permet d&amp;#039;afficher un graphique tiré d&amp;#039;une requête Wikidata, elle-même affichant la source ayant permis d&amp;#039;indiquer le chiffre annuel.&lt;br /&gt;
Ce modèle est originellement maintenu sur frwiki  : [[:fr:Modèle:Aéroport-Statistiques|]]&lt;br /&gt;
Il utilise cette brique importante : le modèle {{Graph:Lines}} et les données Wikidata&lt;br /&gt;
S&amp;#039;il y a une donnée fausse sur Wikidata pour un aéroport, il faut changer sur le wikidata de cet aéroport, cela sera transparent et visible à travers tous les wikipédias affichant ce modèle.&lt;br /&gt;
  // traductions==&amp;gt; https://commons.wikimedia.org/wiki/Data:I18n/Template:Airport-Statistics.tab&lt;br /&gt;
&lt;br /&gt;
Dernière version : 19 FEB 2021&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--en&lt;br /&gt;
This template helps show a graph from a  Wikidata query, showing both source and numbers.&lt;br /&gt;
This template is maintained on   frwiki  : [[:fr:Modèle:Aéroport-Statistiques|]]&lt;br /&gt;
it uses both template {{Graph:Lines}} and data from Wikidata.&lt;br /&gt;
if you find something wrong in Wikidata for an airport, please change number on the wikidata for this airport : it will automatically show the right value among the wikis.&lt;br /&gt;
  // Template translations are in https://commons.wikimedia.org/wiki/Data:I18n/Template:Airport-Statistics.tab&lt;br /&gt;
Last version : 19 FEB 2021&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{Graph:Lines&lt;br /&gt;
| tabletype=query | table=# Scroll down and hit blue arrow down to run and see the results + the sources&lt;br /&gt;
SELECT ?year ?item ?itemLabel (MAX(?number) AS ?passengers)&lt;br /&gt;
  (SAMPLE(COALESCE(?reference_URL, ?monthly_reference_URL2)) AS ?sample_reference_URL)&lt;br /&gt;
WITH&lt;br /&gt;
{&lt;br /&gt;
  SELECT ?item ?statement ?date ?year ?timevalue ?numberperperiod ?reference_URL&lt;br /&gt;
  WHERE&lt;br /&gt;
  {&lt;br /&gt;
    ?item wdt:{{#if: {{{iata|}}} |P238|}}{{#if: {{{icao|}}} |P239|}}{{#if: {{{faa|}}} |P240|}} ?airport_code&lt;br /&gt;
    VALUES ?airport_code &lt;br /&gt;
    {&lt;br /&gt;
 &amp;quot;{{#invoke:String|replace|{{{iata|}}}{{{icao|}}}{{{faa|}}}| |&amp;quot; &amp;quot;||}}&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
    ?item p:P3872 ?statement.&lt;br /&gt;
    ?statement pqv:P585 ?timevalue;&lt;br /&gt;
               ps:P3872 ?numberperperiod.&lt;br /&gt;
    ?timevalue wikibase:timeValue ?date.&lt;br /&gt;
    OPTIONAL { ?statement pq:P518 ?applies. }&lt;br /&gt;
    OPTIONAL { ?statement prov:wasDerivedFrom / (pr:P854{{!}}pr:P4656) ?reference_URL. }&lt;br /&gt;
    FILTER (BOUND(?applies)=false {{!!}} ?applies = wd:Q2165236 )&lt;br /&gt;
    MINUS { ?statement wikibase:rank wikibase:DeprecatedRank }&lt;br /&gt;
    BIND (YEAR(?date) AS ?year)&lt;br /&gt;
    FILTER (?year &amp;gt;{{{début|1949}}}).&lt;br /&gt;
    FILTER (?year &amp;lt; YEAR(NOW()))&lt;br /&gt;
  }&lt;br /&gt;
} AS %airport&lt;br /&gt;
WHERE&lt;br /&gt;
{&lt;br /&gt;
  {&lt;br /&gt;
    # Get the sum of monthly values within a year&lt;br /&gt;
    SELECT ?item ?year (SUM(?max_numberperperiod) AS ?number) (SAMPLE(?monthly_reference_URL) AS ?monthly_reference_URL2)&lt;br /&gt;
    WHERE&lt;br /&gt;
    {&lt;br /&gt;
      # Get the maximal value and a sample reference URL for each unique month&lt;br /&gt;
      {&lt;br /&gt;
        SELECT ?item ?year (MAX(?numberperperiod) AS ?max_numberperperiod) (SAMPLE(?reference_URL) AS ?monthly_reference_URL)&lt;br /&gt;
        WHERE&lt;br /&gt;
        {&lt;br /&gt;
          INCLUDE %airport&lt;br /&gt;
          ?timevalue wikibase:timePrecision ?prec.&lt;br /&gt;
          FILTER (?prec &amp;gt; 9)# precision more precise or equal to month&lt;br /&gt;
        }&lt;br /&gt;
        GROUP BY ?item ?year ?date&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    GROUP BY ?item ?year&lt;br /&gt;
  }&lt;br /&gt;
  UNION&lt;br /&gt;
  {&lt;br /&gt;
    ?timevalue wikibase:timePrecision 9 .&lt;br /&gt;
    BIND (?numberperperiod AS ?number)&lt;br /&gt;
    BIND (?reference_URL AS ?sample_reference_URL)&lt;br /&gt;
    INCLUDE %airport&lt;br /&gt;
  }&lt;br /&gt;
  SERVICE wikibase:label { bd:serviceParam wikibase:language &amp;quot;{{CONTENTLANGUAGE}}&amp;quot;. }&lt;br /&gt;
}&lt;br /&gt;
GROUP BY ?item ?itemLabel ?year&lt;br /&gt;
ORDER BY ?item DESC (?year)&lt;br /&gt;
|yGrid=true&lt;br /&gt;
|legend={{#ifexpr:{{#invoke:String|len|{{{iata|}}}{{{icao|}}}{{{faa|}}}}}&amp;gt;4|-|}}&lt;br /&gt;
|group=itemLabel&lt;br /&gt;
|yAxis={{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|passengers}}&lt;br /&gt;
|yAxisFormat=.1s&lt;br /&gt;
| yZero=false&lt;br /&gt;
| value=passengers| type=year | xField=year|width={{{width|540}}}&lt;br /&gt;
| title={{#if: {{{titre|}}} |{{{titre|}}}| &lt;br /&gt;
{{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|title_start}} {{#ifexpr:{{#invoke:String|len|{{{iata|}}}{{{icao|}}}{{{faa|}}}}}&amp;gt;4|&lt;br /&gt;
{{#if: {{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|middle_title_if_airports}}|&lt;br /&gt;
{{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|middle_title_if_airports}} {{{iata|}}}{{{icao|}}}{{{faa|}}} {{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|end_title_if_airports}} |&lt;br /&gt;
{{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|end_title_if_airports}} {{{iata|}}}{{{icao|}}}{{{faa|}}} }}  |&lt;br /&gt;
{{#if: {{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|middle_title_if_one_airport}}| &lt;br /&gt;
{{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|middle_title_if_one_airport}} {{{iata|}}}{{{icao|}}}{{{faa|}}} {{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|end_title_if_one_airport}} |&lt;br /&gt;
{{#invoke:TNT|msg|I18n/Template:Airport-Statistics.tab|end_title_if_one_airport}} {{{iata|}}}{{{icao|}}}{{{faa|}}} }} &lt;br /&gt;
}}}}&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>&gt;MusikBot II</name></author>
	</entry>
</feed>