Template:Infobox Airport: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
m (Fix alt)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox
|title    = {{{name|}}}
|title    = {{{name|}}}
|image    = {{#if:{{{image|}}}|[[Image:{{{image|}}}{{!}}270px{{!}}{{{alt{{!}}}}]]|[[Special:UploadWizard|Image requested]]}}
|image    = {{#if: {{{image|}}} | [[File:{{{image|}}}|270px|{{{alt|}}}]] | [[Special:UploadWizard|Image requested]] }}
|caption  = {{{alt|}}}
|caption  = {{{alt|}}}
|image2  = {{#if:{{{image2|}}}|[[Image:{{{image2|}}}{{!}}270px{{!}}{{{alt2{{!}}}}]]}}
|image2  = {{#if: {{{image2|}}} | [[File:{{{image2|}}}|270px|{{{alt2|}}}]] }}
|caption2 = {{{alt2|}}}
|caption2 = {{{alt2|}}}
|data1    =  
|data1    =  
Line 18: Line 18:
|data4    = {{{city|}}}
|data4    = {{{city|}}}
|data5    = {{#if:{{{website|}}}|'''[{{{website}}} website]'''}}
|data5    = {{#if:{{{website|}}}|'''[{{{website}}} website]'''}}
|data6    =
|data6    =  
{{{!}}
  {{{!}} width="100%" cellspacing="0" cellpadding="0"
! colspan="3" style="text-align: center;" {{!}} Runways
  ! colspan="3" style="text-align: center; background-color:#ddd;" {{!}} Runways
{{!}}-
  {{!}}-
! style="text-align: center; width: 33%"{{!}} '''Runway'''
  ! style="text-align: center; {{!}} '''Runway'''
! style="text-align: center; width: 33%"{{!}} '''Length'''
  ! style="text-align: center; {{!}} '''Length'''
! style="text-align: center; width: 33%"{{!}} '''Material'''
  ! style="text-align: center; {{!}} '''Material'''
{{!}}-  
  {{!}}-
{{#if:{{{runway|}}}|
  {{#if:{{{runway|}}}| {{!}} {{{runway|}}} {{!!}} {{{length|}}} {{!!}} {{{material|}}}  
{{!}} {{{runway|}}}
  {{!}}-}}
{{!}} style="text-align: center;" {{!}} {{{length|}}}
  {{#if:{{{runway2|}}}| {{!}} {{{runway2|}}} {{!!}} {{{length2|}}} {{!!}} {{{material2|}}}  
{{!}} {{{material|}}} }}
  {{!}}-}}
{{!}}-
  {{#if:{{{runway3|}}}| {{!}} {{{runway3|}}} {{!!}} {{{length3|}}} {{!!}} {{{material3|}}}  
{{#if:{{{runway2|}}}|
  {{!}}-}}
{{!}} {{{runway2|}}}
  {{#if:{{{runway4|}}}| {{!}} {{{runway4|}}} {{!!}} {{{length4|}}} {{!!}} {{{material4|}}}  
{{!}} style="text-align: center;" {{!}} {{{length2|}}}
  {{!}}-}}
{{!}} {{{material2|}}} }}
  {{#if:{{{runway5|}}}| {{!}} {{{runway5|}}} {{!!}} {{{length5|}}} {{!!}} {{{material5|}}}  
{{!}}-
  {{!}}-}}
{{#if:{{{runway3|}}}|
  {{#if:{{{runway6|}}}| {{!}} {{{runway6|}}} {{!!}} {{{length6|}}} {{!!}} {{{material6|}}}  
{{!}} {{{runway3|}}}
  {{!}}-}}
{{!}} style="text-align: center;" {{!}} {{{length3|}}}
  {{#if:{{{runway7|}}}| {{!}} {{{runway7|}}} {{!!}} {{{length7|}}} {{!!}} {{{material7|}}}  
{{!}} {{{material3|}}} }}
  {{!}}-}}
{{!}}-
  {{#if:{{{runway8|}}}| {{!}} {{{runway8|}}} {{!!}} {{{length8|}}} {{!!}} {{{material8|}}}  
{{#if:{{{runway4|}}}|
  {{!}}-}}
{{!}} {{{runway4|}}}
  {{#if:{{{runway9|}}}| {{!}} {{{runway7|}}} {{!!}} {{{length9|}}} {{!!}} {{{material9|}}}  
{{!}} style="text-align: center;" {{!}} {{{length4|}}}
  {{!}}-}}
{{!}} {{!}} {{{material4|}}} }}
  {{#if:{{{runway10|}}}| {{!}} {{{runway10|}}} {{!!}} {{{length10|}}} {{!!}} {{{material10|}}}  
{{!}}-
  {{!}}-}}
{{#if:{{{runway5|}}}|
  {{#if:{{{helipad1|}}}| {{!}} {{{helipad1|}}} {{!!}} {{{dimensions1|}}} {{!!}} {{{helimaterial1|}}}
{{!}} {{{runway5|}}}
  {{!}}-}}
{{!}} style="text-align: center;" {{!}} {{{length5|}}}
  {{#if:{{{helipad2|}}}| {{!}} {{{helipad2|}}} {{!!}} {{{dimensions2|}}} {{!!}} {{{helimaterial2|}}}
{{!}} {{{material5|}}} }}
  {{!}}-}}
{{!}}-
  {{#if:{{{helipad3|}}}| {{!}} {{{helipad3|}}} {{!!}} {{{dimensions3|}}} {{!!}} {{{helimaterial3|}}}
{{#if:{{{runway6|}}}|
  {{!}}-}}
{{!}} {{{runway6|}}}
  {{#if:{{{helipad4|}}}| {{!}} {{{helipad4|}}} {{!!}} {{{dimensions4|}}} {{!!}} {{{helimaterial4|}}}
{{!}} style="text-align: center;" {{!}} {{{length6|}}}
  {{!}}-}}
{{!}} {{{material6|}}} }}
  {{!}}}
{{!}}-
{{#if:{{{runway7|}}}|
{{!}} {{{runway7|}}}
{{!}} style="text-align: center;" {{!}} {{{length7|}}}
{{!}} {{{material7|}}} }}
{{!}}-
{{#if:{{{runway8|}}}|
{{!}} {{{runway8|}}}
{{!}} style="text-align: center;" {{!}} {{{length8|}}}
{{!}} {{{material8|}}} }}
{{!}}-
{{#if:{{{runway9|}}}|
{{!}} {{{runway9|}}}
{{!}} style="text-align: center;" {{!}} {{{length9|}}}
{{!}} {{{material9|}}} }}
{{!}}-
{{#if:{{{runway10|}}}|
{{!}} {{{runway10|}}}
{{!}} style="text-align: center;" {{!}} {{{length10|}}}
{{!}} {{{material10|}}} }}
{{#if:{{{helipad1|}}}|
{{!}}-
{{#if:{{{helipad1|}}}|
{{!}} {{{helipad1|}}}
{{!}} style="text-align: center;" {{!}} {{{dimensions1|}}}
{{!}} {{{helimaterial1|}}} }}
{{!}}-
{{#if:{{{helipad2|}}}|
{{!}} {{{helipad2|}}}
{{!}} style="text-align: center;" {{!}} {{{dimensions2|}}}
{{!}} {{{helimaterial2|}}} }}
{{!}}-
{{#if:{{{helipad3|}}}|
{{!}} {{{helipad3|}}}
{{!}} style="text-align: center;" {{!}} {{{dimensions3|}}}
{{!}} {{{helimaterial3|}}} }}
{{!}}-
{{#if:{{{helipad4|}}}|
{{!}} {{{helipad4|}}}
{{!}} style="text-align: center;" {{!}} {{{dimensions4|}}}
{{!}} {{{helimaterial4|}}} }}
{{!}}}
|label7    = Scenery tile
|label7    = Scenery tile
|data7    = {{{scenerytile|}}}
|data7    = {{{scenerytile|}}}
Line 105: Line 63:
{{#if: {{{image}}} | | [[Category:Image requested]]}}</includeonly><noinclude>{{Informative template|1=
{{#if: {{{image}}} | | [[Category:Image requested]]}}</includeonly><noinclude>{{Informative template|1=
== Goal ==
== Goal ==
This infobox is used to summarize an airport's key points.
This infobox is used to summarize the key information about an airport.
 
__NOTOC__
== Usage ==
== Usage ==
To use this infobox, simply add the following piece of code at the top of your article. You do not have to fill in all the forms. If one is empty, it won't be shown. Just add as much information as you can find. Check other articles to see how everything works and should look.
Add the following to the top of the article. All parameters are optional.  Empty fields will not be shown. Check [[Special:WhatLinksHere/Template:Infobox_Airport|articles using this template]] to see how everything works and should look.
<nowiki>{{</nowiki>'''Infobox Airport'''
<nowiki>|</nowiki> ''name''          =
<nowiki>|</nowiki> ''image''        =
<nowiki>|</nowiki> ''alt''          =
<nowiki>|</nowiki> ''image2''        =
<nowiki>|</nowiki> ''alt2''          =
<nowiki>|</nowiki> ''iata''          =
<nowiki>|</nowiki> ''icao''          =
<nowiki>|</nowiki> ''type''          =
<nowiki>|</nowiki> ''owner''        =
<nowiki>|</nowiki> ''city''          =
<nowiki>|</nowiki> ''website''      =
<nowiki>|</nowiki> ''runway''        =
<nowiki>|</nowiki> ''length''        =
<nowiki>|</nowiki> ''material''      =
...
<nowiki>|</nowiki> ''runway10''      =
<nowiki>|</nowiki> ''helipad1''      =
<nowiki>|</nowiki> ''dimensions1''  =
<nowiki>|</nowiki> ''helimaterial1'' =
...
<nowiki>|</nowiki> ''helipad4''      =
<nowiki>|</nowiki> ''scenerytile''  =
<nowiki>|</nowiki> ''terrasync''    =
<nowiki>|</nowiki> ''download''      =
<nowiki>}}</nowiki>


<pre>
=== Basic data ===
{{infobox Airport
; name:  Official name of the airport.
|name =
; image:  FlightGear screenshot of the airport, preferably from the UFO, excluding the '''Image:''' or '''File:''' prefix.  See also [[Howto:Make nice screenshots]].
|image =
; alt:  Caption for the screenshot
|iata =
; image2:  Additional screenshot, excluding the '''Image:''' or '''File:''' prefix
|icao =
; alt2:  Caption for the additional screenshot
|type =
; iata:  IATA three letter code
|owner =
; icao:  ICAO four letter airport code
|city =
; type:  Type of airport
; owner:  Airport owner
; city:  The closest city to the airport
; website:  Official website of the airport


|runway1 =
=== Runway data ===
|length1 =
There can be up to 10 runways, '''runway''' to '''runway10'''.
|material1 =
; runway(n):  Runway numbers for both directions
; length(n):  Length of the runway
; material(n):  Runway material.  Common values are for example '''Concrete''', '''Concrete/Asphalt''', '''Asphalt''', '''Gravel''', '''Grass'''.


|helipad1 =
=== Helipad data ===
|dimensions1 =
There can be up to four helipads, '''helipad1''' to '''helipad4'''.
|helimaterial1 =
; helipad(n):  Helipad name
 
; dimensions(n):  Helipad dimensions
|scenerytile =
; helimaterial(n):  Helipad material
|terrasync =
|download =
}}
</pre>


There is a maximum of 10 runways and 4 helipads.
=== Scenery tile data ===
; scenerytile:  The name of the scenery tile
; terrasync:  Is the airport's models uploaded to the [[FlightGear Scenery Database|scenery database]] and available through [[TerraSync]]?
; download:  Download URL if the airport is not available through TerraSync
}}
}}


[[Category:Infoboxes|Airport]]
[[Category:Infobox templates|Airport]]
</noinclude>
</noinclude>

Latest revision as of 15:26, 5 April 2015

The following template description is not displayed when the template is inserted in an article.

Goal

This infobox is used to summarize the key information about an airport.

Usage

Add the following to the top of the article. All parameters are optional. Empty fields will not be shown. Check articles using this template to see how everything works and should look.

{{Infobox Airport
| name          = 
| image         = 
| alt           = 
| image2        = 
| alt2          = 
| iata          = 
| icao          = 
| type          = 
| owner         = 
| city          = 
| website       = 

| runway        = 
| length        = 
| material      = 
...
| runway10      = 

| helipad1      = 
| dimensions1   = 
| helimaterial1 = 
...
| helipad4      = 

| scenerytile   = 
| terrasync     = 
| download      = 
}}

Basic data

name
Official name of the airport.
image
FlightGear screenshot of the airport, preferably from the UFO, excluding the Image: or File: prefix. See also Howto:Make nice screenshots.
alt
Caption for the screenshot
image2
Additional screenshot, excluding the Image: or File: prefix
alt2
Caption for the additional screenshot
iata
IATA three letter code
icao
ICAO four letter airport code
type
Type of airport
owner
Airport owner
city
The closest city to the airport
website
Official website of the airport

Runway data

There can be up to 10 runways, runway to runway10.

runway(n)
Runway numbers for both directions
length(n)
Length of the runway
material(n)
Runway material. Common values are for example Concrete, Concrete/Asphalt, Asphalt, Gravel, Grass.

Helipad data

There can be up to four helipads, helipad1 to helipad4.

helipad(n)
Helipad name
dimensions(n)
Helipad dimensions
helimaterial(n)
Helipad material

Scenery tile data

scenerytile
The name of the scenery tile
terrasync
Is the airport's models uploaded to the scenery database and available through TerraSync?
download
Download URL if the airport is not available through TerraSync