Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Template:Infobox aircraft"

From FlightGear wiki
Jump to: navigation, search
m (Fixed tables for IE8 and FE)
Line 7: Line 7:
 
{{#if:{{{type|<noinclude>x</noinclude>}}}|
 
{{#if:{{{type|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Type
 
{{!}} colspan="2"  {{!}}  Type
{{!}} colspan="6"  {{!}} {{{type|}}} }}
+
{{!}} colspan="5"  {{!}} {{{type|}}} }}
 
|-
 
|-
 
{{#if:{{{livery|<noinclude>x</noinclude>}}}|
 
{{#if:{{{livery|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Livery
 
{{!}} colspan="2"  {{!}}  Livery
{{!}} colspan="6"  {{!}} {{{livery|}}} }}
+
{{!}} colspan="5"  {{!}} {{{livery|}}} }}
 
|-
 
|-
 
{{#if:{{{authors|<noinclude>x</noinclude>}}}|
 
{{#if:{{{authors|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Author(s)
 
{{!}} colspan="2"  {{!}}  Author(s)
{{!}} colspan="6"  {{!}} {{{authors|}}} }}
+
{{!}} colspan="5"  {{!}} {{{authors|}}} }}
 
|-
 
|-
 
{{#if:{{{status|<noinclude>x</noinclude>}}}|
 
{{#if:{{{status|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Status
 
{{!}} colspan="2"  {{!}}  Status
{{!}} colspan="6"  {{!}} {{{status}}} }}
+
{{!}} colspan="5"  {{!}} {{{status}}} }}
 
|-
 
|-
 
{{#if:{{{version|<noinclude>x</noinclude>}}}|
 
{{#if:{{{version|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Version
 
{{!}} colspan="2"  {{!}}  Version
{{!}} colspan="6"  {{!}} {{{version}}} }}
+
{{!}} colspan="5"  {{!}} {{{version}}} }}
 
|-
 
|-
 
{{#if:{{{fdm|<noinclude>x</noinclude>}}}|
 
{{#if:{{{fdm|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}} [[FDM]]
 
{{!}} colspan="2"  {{!}} [[FDM]]
{{!}} colspan="6"  {{!}} {{{fdm|}}} }}
+
{{!}} colspan="5"  {{!}} {{{fdm|}}} }}
 
|-
 
|-
 
{{#if:{{{fgname|<noinclude>x</noinclude>}}}|
 
{{#if:{{{fgname|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  --aircraft
 
{{!}} colspan="2"  {{!}}  --aircraft
{{!}} colspan="6" style="font-family: 'Courier New'" {{!}}  {{{fgname}}} }}
+
{{!}} colspan="5" style="font-family: 'Courier New'" {{!}}  {{{fgname}}} }}
 
|-
 
|-
 
{{#if:{{{download|}}}|
 
{{#if:{{{download|}}}|
Line 40: Line 40:
 
{{#if:{{{ratingfdm|<noinclude>x</noinclude>}}}|
 
{{#if:{{{ratingfdm|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  FDM
 
{{!}} 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>|}}
+
! 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>}}}|
 
{{#if:{{{ratingexterior|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Exterior
 
{{!}} 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>|}}
+
! 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>}}}|
 
{{#if:{{{ratingcockpit|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Cockpit
 
{{!}} 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>|}}
+
! 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>}}}|
 
{{#if:{{{ratingsounds|<noinclude>x</noinclude>}}}|
 
{{!}} colspan="2"  {{!}}  Sounds
 
{{!}} 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>|}}
+
! 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>|}}
 
|}
 
|}
  

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