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 (Remove empty lines)
m (Use documentation template)
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; float: right;" cellpadding="3" border="1"
+
<includeonly>{| style="background: white; width: 260px; font-size: 90%; text-align: left; border: 1px silver solid; border-collapse: collapse; margin-left:1em; float: right;" cellpadding="3" border="1"
 
! colspan="2" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" | {{{name}}}
 
! colspan="2" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" | {{{name}}}
 
|-
 
|-
Line 61: Line 61:
 
{{#if:{{{development|}}}|
 
{{#if:{{{development|}}}|
 
{{!}} colspan="2" style="text-align: center;" {{!}} '''[{{{development}}} Development]'''  }}
 
{{!}} colspan="2" style="text-align: center;" {{!}} '''[{{{development}}} Development]'''  }}
|}<includeonly>{{#if: {{{status-fdm|}}} | [[Category:Aircraft status: {{#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 | }} }} }} }} }}]] | }}
+
|}{{#if: {{{status-fdm|}}} | [[Category:Aircraft status: {{#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 | }} }} }} }} }}]] | }}
{{#if: {{{image}}} | | [[Category:Image requested]]}}</includeonly><noinclude>
+
{{#if: {{{image}}} | | [[Category:Image requested]]}}</includeonly><noinclude>{{Informative template|1=
 +
== Goal ==
 +
This infobox is used to summarize an aircraft's key points.
 +
 
 +
== Usage ==
 
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.
 
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.
  
Line 89: Line 93:
 
|status-model =
 
|status-model =
 
</pre>
 
</pre>
 +
}}
  
 
[[fr:Template:Infobox Aircraft]]
 
[[fr:Template:Infobox Aircraft]]
  
 
[[Category:Infoboxes|Aircraft]]
 
[[Category:Infoboxes|Aircraft]]
 
 
</noinclude>
 
</noinclude>

Revision as of 10:51, 25 February 2012

The following template description is not displayed when the template is inserted in an article.

Goal

This infobox is used to summarize an aircraft's key points.

Usage

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

Instead of a custom "status" text, you can also use the available official status system. The overall status is auto-calculated and will be displayed. Remove the