Templat:Infobox airport/doc: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Mfa fariz (bicara | kontrib)
kTidak ada ringkasan suntingan
Mfa fariz (bicara | kontrib)
Tidak ada ringkasan suntingan
Baris 2:
<!-- PENAMBAHAN KATEGORI DAN INTERWIKI LETAKKAN DI BAGIAN AKHIR DOKUMEN INI -->
 
=== Deskripsi ===
Templat '''<nowiki>{{Infobox Bandara}}</nowiki>''' ini digunakan untuk menambahkan kotak informasi (''infobox'') bandara.
 
=== Penggunaan ===
{|style="background:transparent;"
|<pre>
Baris 41:
| commander = <!-- bandar udara militer -->
| occupants = <!-- bandar udara militer -->
| metric-elev =y
| elevation-f =
| elevation-m =
Baris 66:
| r1-length-m =
| r1-surface = <!-- sampai dengan r8 -->
| metric-rwy =y
| h1-number =
| h1-length-f =
Baris 79:
</pre>
|}
 
==Parameter==
Semua parameter kecual '''nama''' ada pilihan.
 
===Nama bandara===
Parameter-parameter ini menjeleskan tentang nama bandara yang ditampilkan di bagian atas infobox.
 
====Untuk bandara di Indonesia====
; name
: Nama bandara dalam Bahasa Indonesia, seperti ''[[Bandar Udara Internasional Juanda]]'' atau ''[[Bandar Udara Internasional Ngurah Rai]]''.
 
; nativename
: Nama bandara dalam Bahasa Inggris, seperti ''Juanda International Airport''.
 
; nativename-a
: Tidak perlu diisi.
 
; nativename-r
: Tidak perlu diisi.
 
====Selain bandara di Indonesia====
; name
: The name of the airport in English, such as ''[[Warsaw Chopin Airport]]'' or ''[[Beijing Capital International Airport]]''.
 
; nativename
: Airport name in a native language using Western characters (French, German, Spanish, etc.), such as ''Lotnisko Chopina w Warszawie''. In such cases the native name should be in italics, see [[Wikipedia:Manual of Style/Text formatting#Foreign terms]]. Can also be used for two different names in the same language (see [[Region of Waterloo International Airport]]).
 
; nativename-a
: Airport name in a native language with non-Western characters (Chinese, Japanese, Korean, Arabic, etc.), such as 北京首都国际机场.
 
; nativename-r
: Use in conjunction with above for Romanized name of the airport, such as ''Běijīng Shǒudū Guójì Jīcháng''. In such cases the Romanized name should be in italics, see [[Wikipedia:Manual of Style/Text formatting#Foreign terms]].
 
===Airport image===
These parameters specify an airport photograph or logo which is displayed below the title. A second image can also be displayed below the first image by using the parameter names ending with a "2".
 
; image / image2
: The name of image file, such as <code>Airport.png</code> or <code>Logo.gif</code> (do not include the <code>File:</code> or <code>Image:</code> prefix).
; image_alt / image2_alt
: [[Wikipedia:Alternative text for images|Alternative text]] for the images.
; image-width / image-width2
: The image width in pixels, i.e. ''175'' (defaults to 220 if not specified).
: ''This should only be used for smaller images which would appear distorted when expanded to a width of 220px.''
 
; caption / caption2
: Text displayed beneath the image. If left blank or omitted, a caption will not be displayed.
: ''This should only be used for photographs that require an explanation; it should be omitted for airport logos and may be omitted for aerial photographs.''
 
===Airport codes===
These parameters specify airport location identifiers which are displayed below the image (or below title if there is no image):
 
; IATA
: The airport's three character [[IATA airport code|IATA location identifier]]. If omitted or left blank it will display as '''IATA: ''none'''''.
 
; ICAO
: The airport's four character [[ICAO airport code|ICAO location identifier]]. If omitted or left blank it will display as '''ICAO: ''none'''''.
 
; FAA
: The three or four character [[FAA]] [[location identifier]] for airports in the United States. If omitted or left blank, nothing is displayed.
 
; TC
: The three or four character [[Transport Canada]] [[location identifier]] for airports in Canada. If omitted or left blank, nothing is displayed.
 
; LID
: A [[location identifier]] for airports outside the US or Canada, if other than ICAO or IATA codes. If omitted or left blank, nothing is displayed.
 
; GPS
: A [[Global Positioning System]] code for the airport, if other than ICAO or IATA codes. If omitted or left blank, nothing is displayed.
 
; WMO
: The [[World Meteorological Organization]] five digit code for the weather station at the airport. If omitted or left blank, nothing is displayed.
 
===Airport summary===
These parameters specify airport details for the "Summary" section displayed below the airport codes.
 
; type
: Airport type should be one of the following: ''Public'', ''Private'', ''Military'' or ''Military/Public''. Do not use ''Commercial'', ''General'' or ''Civil''.
 
; owner-oper
: If the airport is owned and operated by the same entity, use this in place of ''owner'' and ''operator''.
 
; owner
: Name of the airport owner.
 
; operator
: Name of the airport operator, if not the owner.
 
; city-served
: If the airport is associated with a major city but actually located in a smaller town, list the major city here and the smaller town under ''location''. This is not automatically linked, in order to allow multiple links if needed.
: Example: <code><nowiki>city-served = [[Paris]]</nowiki></code>
: Result: [[Paris]]
 
; location
: Name of the town or city where the airport is located. Do not put the airport's street address in this field. This is not automatically linked, in order to allow multiple links if needed.
: Example: <code><nowiki>location = [[Orly]], [[France]]</nowiki></code>
: Result: [[Orly]], [[France]]
 
; hub
: If the airport serves as an [[airline hub|hub]] list the airlines here. This is not automatically linked, in order to allow multiple links if needed.
: Example: <code><nowiki>
*[[British Airways]]
*[[BMI (airline)|BMI]]
*[[Virgin Atlantic Airways]]
</nowiki></code>
: Result:
:* [[British Airways]]
:* [[BMI (airline)|BMI]]
:* [[Virgin Atlantic Airways]]
 
; focus_city
: If the airport serves as a [[focus city]], list the airlines here. See discussion at [[Wikipedia talk:WikiProject Airports#Focus Cities on pages]].
 
; elevation-f
: Height [[above mean sea level]], in feet.
 
; elevation-m
: Height above mean sea level, in metres.
 
; website
: External link to the airport's official [[website]]. See [[Wikipedia: External links#How to link]] for more information.
: Example: <code><nowiki>website = [http://www.dfwairport.com/ www.dfwairport.com]</nowiki></code>
: Result: <span class="plainlinksneverexpand">[http://www.dfwairport.com/ www.dfwairport.com]</span>
 
; opened
: The date when the airport originally opened for commercial service.
: Example: <code><nowiki>{{Start date|1989|09|22}}</nowiki></code>
: Result: September 22, 1989
 
; closed
: The date when the airport closed, either temporarily or permanently, along with reason for closing (for presently closed airports only).
 
; passenger_services_ceased
: The date when passenger services to the airport ceased due to conversion of the airport for another use, along with the new use for the airport. Only for airports that previously had passenger services.
 
====Military airports====
These optional parameters provide additional information for military airports. The parameter names are based on those used in [[Template:Infobox military structure]]. This allows the display of information from that template, without the need to include an additional infobox. See [[#Example 4|example 4]] below.
 
; built
: The date when the structure was built, usually given in years.
 
; used
: The period during which the structure was in active military use, usually given in years.
 
; commander
: The current commanding officer, for structures currently in military use.
 
; occupants
: Any notable military units which occupy the structure.
 
====Geographic coordinates====
This template allows for the insertion of [[geographic coordinates]] in two different ways: you can either provide a complete {{tl|Coord}} template in the '''coordinates''' parameter, or you can provide the individual coordinate components (degrees, minutes, seconds, etc.) in the separate parameters described below. The latter method also allows you to insert a [[Template:Location map|pushpin map]] with an automatically-placed airport icon and label (see [[#Maps|below]]).
 
If you use both methods, then the '''coordinates''' parameter will be used in the infobox.
 
; coordinates
: [[Latitude]] and [[Longitude]] of airport, specified using the {{tl|Coord}} template. When entering the coordinates always ensure that the resultant map or image shows the airport. It is very easy to confuse "N" for "S" or "E" for "W". If used as shown below, this will also cause the airport to appear in [[Google Earth]]'s Geographic Web Layer.
: Example: <code><nowiki>coordinates = {{Coord|49|27|16|N|002|06|46|E|type:airport_region:FR|display=inline,title}}</nowiki></code>
: Result: {{Coord|49|27|16|N|002|06|46|E|type:airport_region:FR|display=inline}}
 
; latd
: Latitude degrees. Can also be used for decimal degrees.
 
; latm
: Latitude minutes. Omit or leave blank if '''latd''' has a decimal value.
 
; lats
: Latitude seconds. Omit or leave blank if '''latd''' has a decimal value.
 
; latNS
: Latitude North or South (enter '''N''' or '''S'''). Omit or leave blank if '''latd''' has a decimal value.
 
; longd
: Longitude degrees. Can also be used for decimal degrees.
 
; longm
: Longitude minutes. Omit or leave blank if '''longd''' has a decimal value.
 
; longs
: Longitude seconds. Omit or leave blank if '''longd''' has a decimal value.
 
; longEW
: Longitude East or West (enter '''E''' or '''W'''). Omit or leave blank if '''longd''' has a decimal value.
 
; coordinates_type
: Set the [[Template:Coord/doc#type:T|type]] parameter for the coordinates. If this parameter is omitted or left blank, the type will be set to '''airport'''. It is unlikely that you would need to change this.
 
; coordinates_region
: Set the [[Template:Coord/doc#region:R|region]] parameter for the coordinates. Use either a two character [[ISO 3166-1 alpha-2]] country code or an [[ISO 3166-2]] region code. For example, the [[United Kingdom]] is '''GB''', and [[Ontario]], [[Canada]] is '''CA-ON'''.
 
; coordinates_notitle
: By default the coordinates will be displayed both in the infobox and in the title of the article. If this parameter is set to a non-empty value, the coordinates will be displayed only in the infobox.
 
===Maps===
This template provides two ways to include a map: as a simple image, or using {{tl|Location map}} and the coordinate parameters described [[#Geographic coordinates|above]] to automatically place a pushpin mark and label on a map.
 
==== Image map ====
Am image map can be displayed by providing a value for '''image_map'''. The remaining '''image_''' parameters are optional.
 
; image_map
: The name of an image to use as a map, such as <code>Airport_map.png</code> (do not include the <code>File:</code> or <code>Image:</code> prefix).
 
; image_mapsize
: ''(optional)'' The width to display the image map, in pixels. Just the number, no "<code>px</code>". If omitted or left empty, defaults to '''220'''.
 
; image_map_alt
: ''(optional)'' [[Wikipedia:Alternative text for images|Alt text]] for the image map. If left blank or omitted, this defaults to same text used in <code>image_map_caption</code> (or Location of {{{name}}} if no caption.
 
; image_map_caption
: ''(optional)'' Caption to display below the image map. If left blank or omitted, a caption will not be displayed.
 
==== Location/pushpin map ====
A location map can be displayed by providing values for '''latd''', '''longd''', and '''pushpin_map'''. The remaining '''pushpin_''' parameters are optional.
 
; pushpin_map
: The name of a location map as per [[Template:Location map]] (eg. '''Indonesia''' or '''Russia'''). The coordinate fields (eg. '''latd''' and '''longd''') position a pushpin mark and label on the map automatically.
 
; pushpin_mapsize
: ''(optional)'' The width to display the pushpin map, in pixels. Just the number, without "<code>px</code>". If omitted or left empty, defaults to '''220'''.
 
; pushpin_map_alt
: ''(optional)'' [[Wikipedia:Alternative text for images|Alt text]] for the pushpin map.
 
; pushpin_map_caption
: ''(optional)'' Caption to display below the pushpin map. If left blank or omitted, a caption will not be displayed.
 
; pushpin_relief
: ''(optional)'' Any non-blank value (yes, 1, etc.) will cause the template to display a [[relief mapping (computer graphics)|relief map]] image, where available (see [[#Example 1|example 1]]). For additional information, see [[Template:Location map#Relief parameter]].
 
; pushpin_image
: ''(optional)'' Name of an alternative map image, which must have the same edge coordinates as the location map template specified via '''pushpin_map''' (see [[#Example 5|example 5]]). Do not include the <code>File:</code> or <code>Image:</code> prefix. For additional information, see [[Template:Location map#AlternativeMap parameter]].
 
; pushpin_label
: ''(optional)'' The text of the label to place next to the pushpin mark (see [[#Example 1|example 1]]). The default is the value of the '''name''' parameter.
 
; pushpin_label_position
: ''(optional)'' The position of the label on the pushpin map relative to the pushpin mark (see [[#Example 5|example 5]]). Valid values are <code>left</code>, <code>right</code>, <code>top</code> and <code>bottom</code>. This defaults to either <code>left</code> or <code>right</code>, depending on the coordinates of the marker and its position relative to the right border of the map image.
 
; pushpin_mark
: ''(optional)'' The name of an image to display as the pushpin mark (see [[#Example 5|example 5]]). The default is <code>[[:File:Airplane silhouette.svg]]</code> ( [[File:Airplane silhouette.svg|10px]] ).
 
; pushpin_marksize
: ''(optional)'' The size of the mark in [[pixel]]s (see [[#Example 5|example 5]]). The default is 10. Do not include <code>px</code>, for example: <code>pushpin_marksize = 8</code>, not <code>pushpin_marksize = 8px</code>.
 
===Infobox control===
These parameters control how certain fields within the infobox are displayed.
 
; metric-elev
: Set to any value to display elevation in metric units (metres) before imperial/US units (feet); leave blank to display imperial/US units first. This can be seen in [[#Example 1|example 1]].
 
; metric-rwy
: Set to any value to display runway length in metric units (metres) before imperial/US units (feet); leave blank to display imperial/US units first. [[#Example 1|Examples 1]] and [[#Example 2|2]] below show the runway length with metres first; [[#Example 3|example 3]] and [[#Example 4|4]] show it with feet before metres.
 
===Runways===
These parameters specify details for each runway in the "Runways" section displayed below the summary. This can also be used to specify water landing areas for [[seaplanes]] (see [[Fairbanks International Airport]]). Parameters start with '''r1-''' for the first runway, '''r2-''' for the second runway, up to '''r8-''' for the eighth runway (if more are needed, leave a message on the [[Template talk:Infobox Airport|talk]] page). Each airport should have at least one runway.
 
; r<sub>''n''</sub>-number (r1-number, r2-number, ...)
: The designation of the runway, normally two numbers like this &rarr; 02/20, 1st number is 18 lower than the 2nd. Where there are parallel runways an additional letter is added to each number, for example "L" for left, "R" for right and "C" for center. In certain cases a runway will only have one number when it can only be used in one direction. For airports in the United States the leading zero is not used and the designation should read 2/20.
 
; r<sub>''n''</sub>-length-f (r1-length-f, r2-length-f, ...)
: Runway length in feet.
 
; r<sub>''n''</sub>-length-m (r1-length-m, r2-length-m, ...)
: Runway length in metres.
 
; r<sub>''n''</sub>-surface (r1-surface, r2-surface, ...)
: Runway surface type, such as: [[Concrete]], [[Asphalt]], [[Gravel]], [[Grass]] (or Turf), [[Soil|Dirt]], [[Water]], etc. Avoid the generic type "Paved" if possible.
 
===Helipads===
These parameters specify details for each helipad in the "Helipads" section displayed below the runways. Parameters start with '''h1-''' for the first helipad, '''h2-''' for the second helipad, up to '''h12-''' for the twelfth helipad (if more are needed, leave a message on the [[Template talk:Infobox Airport|talk]] page). This section is optional and only appears if the '''h1-''' parameters are specified. See [[#Example 1|example 1]] and [[#Example 3|example 3]] below.
 
; h<sub>''n''</sub>-number(h1-number, h2-number, ...)
: The designation of the helipad. In the United States this is usually the letter "H" followed by a number, i.e. "H1", "H2", etc.
 
; h<sub>''n''</sub>-length-f (h1-length-f, h2-length-f, ...)
: Helipad length in feet.
 
; h<sub>''n''</sub>-length-m (h1-length-m, h2-length-m, ...)
: Helipad length in metres.
 
; h<sub>''n''</sub>-surface (h1-surface, h2-surface, ...)
: Helipad surface type, such as: Concrete, Asphalt, etc. Avoid the generic type "Paved" if possible.
 
===Statistics===
These parameters specify details for an optional "Statistics" section displayed below the runways and helipads. Parameters start with '''stat1-''' for the first statistic, '''stat2-''' for the second statistic, etc. This section only appears if the '''stat1-''' parameters are specified. See [[#Example 1|example 1]] and [[#Example 3|example 3]] below.
 
; stat''<sub>n</sub>''-header (stat1-header, stat2-header, ...)
: A brief description of each statistic, such as ''Passengers'' or ''Aircraft operations''.
 
; stat''<sub>n</sub>''-data (stat1-data, stat2-data, ...)
: The data associated with the corresponding header.
 
; stat-year
: The calendar year for the statistics. This is displayed in parentheses after the word "Statistics" in the section header.
 
===Footnotes===
This parameter contains text for footnotes displayed at the bottom of the infobox.
 
; footnotes
: The most common use for this field is to give sources or references for the data displayed in the infobox. See the examples below.
 
<includeonly>