Difference between revisions of "Template:Infobox aircraft"

From FlightGear wiki
Jump to: navigation, search
m (rating = ranking)
m (Seperate rating categories)
Line 1: Line 1:
 
{| style="background: white; width: 260px; font-size: 90%; text-align: left; border: 1px silver solid; border-collapse: collapse; margin-left:1em;" cellpadding="3" border="1" align="right"
 
{| style="background: white; width: 260px; font-size: 90%; text-align: left; border: 1px silver solid; border-collapse: collapse; margin-left:1em;" cellpadding="3" border="1" align="right"
 
! colspan="7" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" | {{{name}}}
 
! colspan="7" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" | {{{name}}}
|-
 
{{#if:{{{ranking|<noinclude>x</noinclude>}}}|
 
! colspan="7" {{!}} <center>{{#ifeq: {{{ranking}}} | 0 | [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ranking}}} | 1 | [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ranking}}} | 2 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ranking}}} | 3 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ranking}}} | 4 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] }}{{#ifeq: {{{ranking}}} | 5 | [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] }}</center>|}}
 
 
|-
 
|-
 
{{#if:{{{image|<noinclude>x</noinclude>}}}|
 
{{#if:{{{image|<noinclude>x</noinclude>}}}|
Line 38: Line 35:
 
{{#if:{{{download|}}}|
 
{{#if:{{{download|}}}|
 
{{!}} colspan="7" style="text-align: center;" {{!}} '''[{{{download}}} Download]'''  }}
 
{{!}} colspan="7" style="text-align: center;" {{!}} '''[{{{download}}} Download]'''  }}
 +
|-
 +
! colspan="7" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" | Ratings
 +
|-
 +
{{#if:{{{ratingfdm|<noinclude>x</noinclude>}}}|
 +
{{!}} colspan="2"  {{!}}  FDM
 +
! colspan="6" {{!}} <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="6" {{!}} <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:{{{ratingdcockpit|<noinclude>x</noinclude>}}}|
 +
{{!}} colspan="2"  {{!}}  Cockpit
 +
! colspan="6" {{!}} <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="6" {{!}} <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>|}}
 
|}
 
|}
  
Line 46: Line 61:
 
{{infobox Aircraft
 
{{infobox Aircraft
 
|name =
 
|name =
|ranking =
 
 
|image =
 
|image =
 
|type =
 
|type =
Line 56: Line 70:
 
|fgname =
 
|fgname =
 
|download =
 
|download =
 +
|ratingfdm =
 +
|ratingexterior =
 +
|ratingcockpit =
 +
|ratingsounds =
 
}}
 
}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Revision as of 12:59, 30 May 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 =
|ratingfdm =
|ratingexterior =
|ratingcockpit =
|ratingsounds =
}}