Difference between revisions of "Template:Infobox aircraft"

From FlightGear wiki
Jump to: navigation, search
m (Fixed tables for IE8 and FE)
m (Uncommented ratings, till we know what to do with them.)
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
 
! colspan="7" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" | Ratings
Line 53: Line 54:
 
{{!}} colspan="2"  {{!}}  Sounds
 
{{!}} 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>|}}
 
! 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>
 
|}
 
|}
  
Line 70: Line 72:
 
|fgname =
 
|fgname =
 
|download =
 
|download =
|ratingfdm =
 
|ratingexterior =
 
|ratingcockpit =
 
|ratingsounds =
 
 
}}
 
}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Revision as of 12:40, 14 June 2009

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


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 =
}}