Difference between revisions of "Template:Infobox aircraft"

From FlightGear wiki
Jump to: navigation, search
m (Uncommented ratings, till we know what to do with them.)
m
Line 35: Line 35:
 
{{#if:{{{download|}}}|
 
{{#if:{{{download|}}}|
 
{{!}} colspan="7" style="text-align: center;" {{!}} '''[{{{download}}} Download]'''  }}
 
{{!}} colspan="7" style="text-align: center;" {{!}} '''[{{{download}}} Download]'''  }}
<noinclude>
 
|-
 
! colspan="7" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" | Ratings
 
|-
 
{{#if:{{{ratingfdm|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  FDM
 
! colspan="5" {{!}} <center>{{#ifeq: {{{ratingfdm}}} | 0 | [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingfdm}}} | 1 | [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingfdm}}} | 2 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingfdm}}} | 3 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingfdm}}} | 4 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingfdm}}} | 5 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] }}</center>|}}
 
|-
 
{{#if:{{{ratingexterior|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Exterior
 
! colspan="5" {{!}} <center>{{#ifeq: {{{ratingexterior}}} | 0 | [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingexterior}}} | 1 | [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingexterior}}} | 2 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingexterior}}} | 3 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingexterior}}} | 4 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingexterior}}} | 5 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] }}</center>|}}
 
|-
 
{{#if:{{{ratingcockpit|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Cockpit
 
! colspan="5" {{!}} <center>{{#ifeq: {{{ratingcockpit}}} | 0 | [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingcockpit}}} | 1 | [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingcockpit}}} | 2 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingcockpit}}} | 3 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingcockpit}}} | 4 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingcockpit}}} | 5 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] }}</center>|}}
 
|-
 
{{#if:{{{ratingsounds|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Sounds
 
! colspan="5" {{!}} <center>{{#ifeq: {{{ratingsounds}}} | 0 | [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingsounds}}} | 1 | [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingsounds}}} | 2 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingsounds}}} | 3 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingsounds}}} | 4 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ratingsounds}}} | 5 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] }}</center>|}}
 
</noinclude>
 
 
|}
 
|}
  

Revision as of 12:41, 14 June 2009

{{{name}}}
[[Image:|270px|]]
Type
Livery
Author(s)
Status {{{status}}}
Version {{{version}}}
FDM
--aircraft {{{fgname}}}


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.

{{infobox Aircraft
|name =
|image =
|type =
|livery =
|authors =
|status =
|version =
|fdm =
|fgname =
|download =
}}