Template:Infobox airport: Difference between revisions

From IxWiki
Jump to navigation Jump to search
mNo edit summary
m update links
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{infobox
{{#if:{{Has short description}} |<!--Do nothing--> |{{main other|{{#invoke:Type in location|main|Airport|{{{location|}}}}}}}}}{{infobox
| bodyclass = vcard
| bodyclass = vcard
| bodystyle = {{#if:{{{box-width|}}}|width: {{{box-width|22em}}}}}
| bodystyle = {{#if:{{{box-width|}}}|width: {{{box-width|22em}}}}}
Line 13: Line 13:
  }}
  }}


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image-width|}}}|sizedefault=frameless|upright=1|alt={{{image_alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{logo|}}}}}}|size={{{image_size|{{{image-width|}}}}}}|sizedefault=250px|upright=1|alt={{{image_alt|}}}}}
| caption = {{{caption|}}}
| caption = {{{caption|}}}


| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image2-width|}}}|sizedefault=frameless|upright=1|alt={{{image2_alt|}}}}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image2_size|{{{image2-width|}}}}}}|sizedefault=250px|upright=1|alt={{{image2_alt|}}}}}
| caption2 = {{{caption2|}}}
| caption2 = {{{caption2|}}}


Line 23: Line 23:
| rowstyle1 = font-weight:bold;
| rowstyle1 = font-weight:bold;
| data1 = <includeonly>{{hlist|style={{#if:{{{FAA|}}}{{{TC|}}}{{{LID|}}}{{{WMO|}}}|width:22.5em}}
| data1 = <includeonly>{{hlist|style={{#if:{{{FAA|}}}{{{TC|}}}{{{LID|}}}{{{WMO|}}}|width:22.5em}}
  |1=<span class="nowrap">[[ATRO]]: {{#if:{{{ATRO|}}}|<span class="nickname">{{{ATRO}}}</span>|''none''}}</span>
  |1=<span class="nowrap">[[Air Traffic Regulatory Organization|ATRO]]: {{#if:{{{ATRO|}}}|<span class="nickname">{{{ATRO}}}</span>|''none''}}</span>
  |2=<span class="nowrap">[[ICAO airport code|ICAO]]: {{#if:{{{ICAO|}}}|<span class="nickname">{{{ICAO}}}</span>|''none''}}</span>
  |2=<span class="nowrap">{{wp|ICAO airport code|ICAO}}: {{#if:{{{ICAO|}}}|<span class="nickname">{{{ICAO}}}</span>|''none''}}</span>
  |3={{#if:{{{FAA|}}}|<span class="nowrap">[[Federal Aviation Administration|FAA]] [[Location identifier#FAA identifier|LID]]: <span class="nickname">{{{FAA}}}</span></span>}}
  |3={{#if:{{{FAA|}}}|<span class="nowrap">{{wp|Federal Aviation Administration|FAA}} {{wp|Location identifier#FAA identifier|LID}}: <span class="nickname">{{{FAA}}}</span></span>}}
  |4={{#if:{{{TC|}}} |<span class="nowrap">[[Transport Canada|TC]] [[Location identifier#Transport Canada identifier|LID]]: <span class="nickname">{{{TC}}}</span></span>}}
  |4={{#if:{{{TC|}}} |<span class="nowrap">{{wp|Transport Canada|TC}} {{wp|Location identifier#Transport Canada identifier|LID}}: <span class="nickname">{{{TC}}}</span></span>}}
  |5={{#if:{{{LID|}}}|<span class="nowrap">[[Location identifier|LID]]: <span class="nickname">{{{LID}}}</span></span>}}
  |5={{#if:{{{LID|}}}|<span class="nowrap">{{wp|Location identifier|LID}}: <span class="nickname">{{{LID}}}</span></span>}}
  |6={{#if:{{{GPS|}}}|<span class="nowrap">[[Global Positioning System|GPS]]: <span class="nickname">{{{GPS}}}</span></span>}}
  |6={{#if:{{{GPS|}}}|<span class="nowrap">{{wp|Global Positioning System|GPS}}: <span class="nickname">{{{GPS}}}</span></span>}}
  |7={{#if:{{{WMO|}}}|<span class="nowrap">[[Location identifier#WMO station identifiers|WMO]]: <span class="nickname">{{{WMO}}}</span></span>}}
  |7={{#if:{{{WMO|}}}|<span class="nowrap">{{wp|Location identifier#WMO station identifiers|WMO}}: <span class="nickname">{{{WMO}}}</span></span>}}
  }}</includeonly>
  }}</includeonly>
| header2 = <includeonly>Summary</includeonly>
| header2 = <includeonly>Summary</includeonly>
Line 61: Line 61:
| data10 = {{{passenger_services_ceased|}}}
| data10 = {{{passenger_services_ceased|}}}


| label11 = [[Airline hub|Hub]] for
| label11 = {{wp|Airline hub|Hub}} for
| data11 = {{{hub|}}}
| data11 = {{{hub|}}}


| label12 = [[Focus city]] for
| label12 = {{wp|Focus city}} for
| data12 = {{{focus_city|}}}
| data12 = {{{focus_city|}}}


| label13 = Built
| label13 = Operating base for
| data13 = {{{built|}}}
| data13 = {{{operating_base|}}}  


| label14 = In use
| label14 = Built
| data14 = {{{used|}}}
| data14 = {{{built|}}}


| label15 = Commander
| label15 = In use
| data15 = {{{commander|}}}
| data15 = {{{used|}}}


| label16 = Occupants
| label16 = Commander
| data16 = {{{occupants|}}}
| data16 = {{{commander|}}}


| label17 = [[Time zone]]
| label17 = Occupants
| data17 = {{#if: {{{timezone|}}} {{{utc|}}}| {{{timezone}}} ({{{utc}}}) }}
| data17 = {{{occupants|}}}


| label18 = &nbsp;•&nbsp;Summer ([[Daylight saving time|DST]])
| label18 = {{wp|Time zone}}
| data18 = {{#if: {{{summer|}}} {{{utcs|}}}| {{{summer}}} ({{{utcs}}}) }}
| data18 = {{#if: {{{timezone|}}} {{{utc|}}}| {{{timezone}}} ({{{utc}}}) }}


| label19 = Elevation&nbsp;[[Metres above sea level|AMSL]]
| label19 = &nbsp;•&nbsp;Summer ({{wp|Daylight saving time|DST}})
| data19 = {{#if:{{{elevation-f|}}} {{{elevation-m|}}}
| data19 = {{#if: {{{summer|}}} {{{utcs|}}}| {{{summer}}} ({{{utcs}}}) }}
 
| label20 = Elevation&nbsp;{{wp|Height above sea level|AMSL}}
| data20 = {{#if:{{{elevation-f|}}} {{{elevation-m|}}}
   |{{#if:{{{metric-elev|}}}
   |{{#if:{{{metric-elev|}}}
     | {{#if:{{{elevation-m|}}}| {{formatnum: {{replace|{{{elevation-m|}}}|,|}} }}&nbsp;m| {{convert|{{{elevation-f|}}}|ft|m|0|disp=output only}} }} / {{#if: {{{elevation-f|}}} | {{formatnum: {{replace|{{{elevation-f|}}}|,|}} }}&nbsp;ft |{{convert|{{{elevation-m|}}}|m|ft|0|disp=output only}} }}
     | {{#if:{{{elevation-m|}}}| {{formatnum: {{replace|{{{elevation-m|}}}|,|}} }}&nbsp;m| {{convert|{{{elevation-f|}}}|ft|m|0|disp=output only}} }} / {{#if: {{{elevation-f|}}} | {{formatnum: {{replace|{{{elevation-f|}}}|,|}} }}&nbsp;ft |{{convert|{{{elevation-m|}}}|m|ft|0|disp=output only}} }}
Line 93: Line 96:
   }}
   }}


| label20 = [[Geographic coordinate system|Coordinates]]
| label21 = {{wp|Geographic coordinate system|Coordinates}}
| data20 = {{#if: {{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:airport}}}}
| data21 = {{#if: {{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:airport}}}}


| label30    = Public transit access
| label30    = Public transit access
Line 107: Line 110:
   |11|111=Maps}}
   |11|111=Maps}}


| data33 = {{#if:{{{image_map|}}}| {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{image_mapsize|}}}|sizedefault=frameless|upright=1|alt={{{image_map_alt|}}}|title={{{image_map_caption|Location of {{{name}}}}}}}}{{#if:{{{image_map_caption|}}}|<br /><small>{{{image_map_caption}}}</small>}} }}
| data33 = {{#if:{{{image_map|}}}| {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{image_mapsize|}}}|sizedefault=frameless|upright=1|alt={{{image_map_alt|}}}|title={{{image_map_caption|Location of {{{name}}}}}}}}{{#if:{{{image_map_caption|}}}|<br />{{{image_map_caption}}}}} }}


| data34 = {{#if:{{{pushpin_map|}}}|{{Location map|{{{pushpin_map|}}}
| data34 = {{#if:{{{pushpin_map|}}}|{{Location map|{{{pushpin_map|}}}
Line 129: Line 132:
| data36    = {{#invoke:Infobox mapframe|autocaption}}
| data36    = {{#invoke:Infobox mapframe|autocaption}}


| header37 = {{#if: {{{r1-number|}}} {{{r1-length-f|}}} {{{r1-length-m|}}} {{{r1-surface|}}}|[[Runway|{{Font color|black|#DDDDFF|Runways}}]]}}
| header37 = {{#if: {{{r1-number|}}} {{{r1-length-f|}}} {{{r1-length-m|}}} {{{r1-surface|}}}|{{wp|Runway|{{Font color|black|#DDDDFF|Runways}}}}}}


| data38 = {{#if: {{{r1-number|}}} {{{r1-length-f|}}} {{{r1-length-m|}}} {{{r1-surface|}}}
| data38 = {{#if: {{{r1-number|}}} {{{r1-length-f|}}} {{{r1-length-m|}}} {{{r1-surface|}}}
  |{{Infobox airport/datatable
  |{{Infobox airport/datatable
  | nlabel = [[Runway#Naming|Direction]]
  | nlabel = {{wp|Runway#Naming|Direction}}
  | metric = {{{metric-rwy|}}}
  | metric = {{{metric-rwy|}}}
  | n1  = {{{r1-number|}}}
  | n1  = {{{r1-number|}}}
Line 155: Line 158:
}}}}
}}}}


| header39 = {{#if: {{{h1-number|}}} {{{h1-length-f|}}} {{{h1-length-m|}}} {{{h1-surface|}}}|[[Helipad|{{Font color|black|#DDDDFF|Helipads}}]]}}
| header39 = {{#if: {{{h1-number|}}} {{{h1-length-f|}}} {{{h1-length-m|}}} {{{h1-surface|}}}|{{wp|Helipad|{{Font color|black|#DDDDFF|Helipads}}}}}}


| data40 = {{#if: {{{h1-number|}}} {{{h1-length-f|}}} {{{h1-length-m|}}} {{{h1-surface|}}}
| data40 = {{#if: {{{h1-number|}}} {{{h1-length-f|}}} {{{h1-length-m|}}} {{{h1-surface|}}}
Line 206: Line 209:
| data51 = {{#if:{{{footnotes|}}}|<div style="text-align: left;">{{{footnotes}}}</div>}}
| data51 = {{#if:{{{footnotes|}}}|<div style="text-align: left;">{{{footnotes}}}</div>}}


| data52 = {{{embed|}}}
| data52 = {{{embed|{{{module|}}}}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox airport with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox airport]] with unknown parameter "_VALUE_"|ignoreblank=y| area-served | box-width | built | caption | caption2 | city-served | closed | commander | coordinates | elevation-f | elevation-m | embed | ensign | ensign_alt | ensign_size | FAA | focus_city | footnotes | GPS | h1-length-f | h1-length-m | h1-number | h1-surface | h10-length-f | h10-length-m | h10-number | h10-surface | h11-length-f | h11-length-m | h11-number | h11-surface | h12-length-f | h12-length-m | h12-number | h12-surface | h2-length-f | h2-length-m | h2-number | h2-surface | h3-length-f | h3-length-m | h3-number | h3-surface | h4-length-f | h4-length-m | h4-number | h4-surface | h5-length-f | h5-length-m | h5-number | h5-surface | h6-length-f | h6-length-m | h6-number | h6-surface | h7-length-f | h7-length-m | h7-number | h7-surface | h8-length-f | h8-length-m | h8-number | h8-surface | h9-length-f | h9-length-m | h9-number | h9-surface | hub | IATA | ICAO | image | image_alt | image_map | image_map_alt | image_map_caption | image_mapsize | image-width | image2 | image2_alt | image2-width | LID | location | metric-elev | metric-rwy | name | nativename | nativename-a | nativename-r | occupants | opened | operator | owner | owner-oper | passenger_services_ceased | publictransit | pushpin_image | pushpin_label | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_mapsize | pushpin_mark | pushpin_marksize | pushpin_outside | pushpin_relief | r1-length-f | r1-length-m | r1-number | r1-surface | r10-length-f | r10-length-m | r10-number | r10-surface | r11-length-f | r11-length-m | r11-number | r11-surface | r12-length-f | r12-length-m | r12-number | r12-surface | r2-length-f | r2-length-m | r2-number | r2-surface | r3-length-f | r3-length-m | r3-number | r3-surface | r4-length-f | r4-length-m | r4-number | r4-surface | r5-length-f | r5-length-m | r5-number | r5-surface | r6-length-f | r6-length-m | r6-number | r6-surface | r7-length-f | r7-length-m | r7-number | r7-surface | r8-length-f | r8-length-m | r8-number | r8-surface | r9-length-f | r9-length-m | r9-number | r9-surface | stat-year | stat1-data | stat1-header | stat2-data | stat2-header | stat3-data | stat3-header | stat4-data | stat4-header | stat5-data | stat5-header | stat6-data | stat6-header | stat7-data | stat7-header | stat8-data | stat8-header | summer | TC | timezone | type | used | utc | utcs | website | WMO | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox airport with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox airport]] with unknown parameter "_VALUE_"|ignoreblank=y| area-served | box-width | built | caption | caption2 | city-served | closed | commander | coordinates | elevation-f | elevation-m | embed | ensign | ensign_alt | ensign_size | FAA | focus_city | footnotes | GPS | h1-length-f | h1-length-m | h1-number | h1-surface | h10-length-f | h10-length-m | h10-number | h10-surface | h11-length-f | h11-length-m | h11-number | h11-surface | h12-length-f | h12-length-m | h12-number | h12-surface | h2-length-f | h2-length-m | h2-number | h2-surface | h3-length-f | h3-length-m | h3-number | h3-surface | h4-length-f | h4-length-m | h4-number | h4-surface | h5-length-f | h5-length-m | h5-number | h5-surface | h6-length-f | h6-length-m | h6-number | h6-surface | h7-length-f | h7-length-m | h7-number | h7-surface | h8-length-f | h8-length-m | h8-number | h8-surface | h9-length-f | h9-length-m | h9-number | h9-surface | hub | ATRO | ICAO | image | logo | image_alt | image_map | image_map_alt | image_map_caption | image_mapsize | image_size | image-width | image2 | image2_alt | image2_size | image2-width | LID | location | metric-elev | metric-rwy | module | name | nativename | nativename-a | nativename-r | occupants | opened | operating_base | operator | owner | owner-oper | passenger_services_ceased | publictransit | pushpin_image | pushpin_label | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_mapsize | pushpin_mark | pushpin_marksize | pushpin_outside | pushpin_relief | r1-length-f | r1-length-m | r1-number | r1-surface | r10-length-f | r10-length-m | r10-number | r10-surface | r11-length-f | r11-length-m | r11-number | r11-surface | r12-length-f | r12-length-m | r12-number | r12-surface | r2-length-f | r2-length-m | r2-number | r2-surface | r3-length-f | r3-length-m | r3-number | r3-surface | r4-length-f | r4-length-m | r4-number | r4-surface | r5-length-f | r5-length-m | r5-number | r5-surface | r6-length-f | r6-length-m | r6-number | r6-surface | r7-length-f | r7-length-m | r7-number | r7-surface | r8-length-f | r8-length-m | r8-number | r8-surface | r9-length-f | r9-length-m | r9-number | r9-surface | stat-year | stat1-data | stat1-header | stat2-data | stat2-header | stat3-data | stat3-header | stat4-data | stat4-header | stat5-data | stat5-header | stat6-data | stat6-header | stat7-data | stat7-header | stat8-data | stat8-header | summer | TC | timezone | type | used | utc | utcs | website | WMO | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher
}}<noinclude>{{documentation}}<!-- Please add categories and interwikis to the /doc subpage, not here. --></noinclude>
}}<noinclude>{{documentation}}<!-- Please add categories and interwikis to the /doc subpage, not here. --></noinclude>

Latest revision as of 17:23, 20 January 2024

Script error: The function "autocaption" does not exist.