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
m (Shuffle lines, special "status" subsection)
Line 18: Line 18:
 
{{!}} {{!}} {{{authors|}}} }}
 
{{!}} {{!}} {{{authors|}}} }}
 
|-
 
|-
{{!}} {{!}}  Status
+
{{#if:{{{version|}}}|
 +
{{!}} {{!}}  Version
 +
{{!}} {{!}} {{{version}}} }}
 +
|-
 +
{{#if:{{{fdm|}}}|
 +
{{!}} {{!}} [[FDM]]
 +
{{!}} {{!}} {{{fdm|}}} }}
 +
|-
 +
{{#if:{{{fgname|}}}|
 +
{{!}} {{!}}  --aircraft
 +
{{!}} style="font-family: 'Courier New'" {{!}}  {{{fgname}}} }}
 +
|-
 +
! colspan="6" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" {{!}} Status
 +
|-
 
{{#if:{{{status|}}}|
 
{{#if:{{{status|}}}|
{{!}} {{!}} {{{status}}} <includeonly>|
+
{{!}} colspan="2" style="text-align: center;" {{!}} {{{status}}} <includeonly>|
{{!}} {{!}} {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 17 | Advanced production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 15 | Production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 11 | Early production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 8 | Beta | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} < 9 | Alpha | }} }} }} }} }}</includeonly> }}
+
{{!}} colspan="2" style="text-align: center;" {{!}} {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 17 | Advanced production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 15 | Production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 11 | Early production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 8 | Beta | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} < 9 | Alpha | }} }} }} }} }}</includeonly> }}
 
|-
 
|-
 
{{#if:{{{status-fdm|}}}|
 
{{#if:{{{status-fdm|}}}|
Line 38: Line 51:
 
{{!}} {{!}}  Model
 
{{!}} {{!}}  Model
 
{{!}} {{!}} {{{status-model}}} }}
 
{{!}} {{!}} {{{status-model}}} }}
|-
 
{{#if:{{{version|}}}|
 
{{!}} {{!}}  Version
 
{{!}} {{!}} {{{version}}} }}
 
|-
 
{{#if:{{{fdm|}}}|
 
{{!}} {{!}} [[FDM]]
 
{{!}} {{!}} {{{fdm|}}} }}
 
|-
 
{{#if:{{{fgname|}}}|
 
{{!}} {{!}}  --aircraft
 
{{!}} style="font-family: 'Courier New'" {{!}}  {{{fgname}}} }}
 
 
|-
 
|-
 
{{!}} colspan="2" style="text-align: center;" {{!}} <w4g_ratingbar style="stars"/>
 
{{!}} colspan="2" style="text-align: center;" {{!}} <w4g_ratingbar style="stars"/>

Revision as of 06:46, 19 July 2011

{{{name}}}
Image requested
Status
<w4g_ratingbar style="stars"/>


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 			=
|alt 			=
|type 			=
|livery 		=
|authors 		=
|status 		=
|version 		=
|fdm 			=
|fgname 		=
|download 		=
|development 		=
}}