Difference between revisions of "Template:Infobox aircraft"

From FlightGear wiki
Jump to: navigation, search
m
m (add rating)
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:{{{rating|<noinclude>x</noinclude>}}}|
 +
! colspan="7" {{!}} <center>
 +
{{#if:{{{rating|<noinclude>0</noinclude>}}}|[[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]]}}
 +
{{#if:{{{rating|<noinclude>1</noinclude>}}}|[[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]]}}
 +
{{#if:{{{rating|<noinclude>2</noinclude>}}}|[[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]]}}
 +
{{#if:{{{rating|<noinclude>3</noinclude>}}}|[[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]] [[Image:Star_grey.gif]]}}
 +
{{#if:{{{rating|<noinclude>4</noinclude>}}}|[[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_yellow.gif]] [[Image:Star_grey.gif]]}}
 +
{{#if:{{{rating|<noinclude>5</noinclude>}}}|[[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 42: Line 52:
 
<pre>
 
<pre>
 
{{infobox Aircraft
 
{{infobox Aircraft
|image =
 
 
|name =
 
|name =
 +
|rating =
 +
|image =
 
|type =
 
|type =
 
|livery =
 
|livery =

Revision as of 12:13, 29 May 2009

{{{name}}}

File:Star grey.gif File:Star grey.gif File:Star grey.gif File:Star grey.gif File:Star grey.gif File:Star yellow.gif File:Star grey.gif File:Star grey.gif File:Star grey.gif File:Star grey.gif File:Star yellow.gif File:Star yellow.gif File:Star grey.gif File:Star grey.gif File:Star grey.gif File:Star yellow.gif File:Star yellow.gif File:Star yellow.gif File:Star grey.gif File:Star grey.gif File:Star yellow.gif File:Star yellow.gif File:Star yellow.gif File:Star yellow.gif File:Star grey.gif File:Star yellow.gif File:Star yellow.gif File:Star yellow.gif File:Star yellow.gif File:Star yellow.gif

[[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 =
|rating =
|image =
|type =
|livery =
|authors =
|status =
|version =
|fdm =
|fgname =
|download =
}}