Template:Infobox aircraft: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (Switch livery link to thumbs)
m (Reverted edits by Gijs (talk) to last revision by Alexis)
Line 10: Line 10:
{{!}} {{!}} {{{type|}}} }}
{{!}} {{!}} {{{type|}}} }}
|-
|-
{{#if:{{{livery|}}}OR{{{liverydbid|}}}|
{{#if:{{{livery|}}}|
{{!}} {{!}}  Liveries
{{!}} {{!}}  Livery
{{!}} {{!}} {{{livery|}}} }}
{{!}} {{!}} {{{livery|}}} }}
{{#if:{{{liverydbid|}}}|
[http://liveries.flightgear.org/aircraft.php?id={{{liverydbid|}}} Livery database] }}
|-
|-
{{#if:{{{authors|}}}|
{{#if:{{{authors|}}}|
Line 34: Line 32:
{{!}} style="background-color: #0f7a71; color: white; font-size: larger;" {{!}} Status
{{!}} style="background-color: #0f7a71; color: white; font-size: larger;" {{!}} Status
{{#if:{{{status|}}}|
{{#if:{{{status|}}}|
{{!}} {{!}} {{{status}}} |
{{!}} {{!}} {{{status}}} <includeonly>|
{{!}} {{!}} {{#if: {{{status-fdm|}}} | {{#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 | }} }} }} }} }} | }} }}
{{!}} {{!}} {{#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|}}}|
{{!}} {{!}}  FDM
{{!}} {{!}}  FDM
{{!}} {{!}} [[File:stars-{{{status-fdm}}}.png]] }}
{{!}} {{!}} {{{status-fdm}}} }}
|-
|-
{{#if:{{{status-systems|}}}|
{{#if:{{{status-systems|}}}|
{{!}} {{!}}  Systems
{{!}} {{!}}  Systems
{{!}} {{!}} [[File:stars-{{{status-systems}}}.png]] }}
{{!}} {{!}} {{{status-systems}}} }}
|-
|-
{{#if:{{{status-cockpit|}}}|
{{#if:{{{status-cockpit|}}}|
{{!}} {{!}}  Cockpit
{{!}} {{!}}  Cockpit
{{!}} {{!}} [[File:stars-{{{status-cockpit}}}.png]] }}
{{!}} {{!}} {{{status-cockpit}}} }}
|-
|-
{{#if:{{{status-model|}}}|
{{#if:{{{status-model|}}}|
{{!}} {{!}}  Model
{{!}} {{!}}  Model
{{!}} {{!}} [[File:stars-{{{status-model}}}.png]] }}
{{!}} {{!}} {{{status-model}}} }}
|-
|-
{{!}} colspan="2" style="text-align: center;" {{!}} <w4g_ratingbar style="stars"/>
{{!}} colspan="2" style="text-align: center;" {{!}} <w4g_ratingbar style="stars"/>
Line 61: Line 59:
{{!}} 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: {{{image}}} | | [[Category:Image requested]]}}</includeonly>


<noinclude>
<noinclude>
Line 74: Line 70:
|type =
|type =
|livery =
|livery =
|liverydbid =
|authors =
|authors =
|status =
|status =
Line 91: Line 86:
|status-model =
|status-model =
</pre>
</pre>
</noinclude>


[[fr:Template:Infobox Aircraft]]
[[fr:Template:Infobox Aircraft]]
</noinclude>

Revision as of 10:17, 24 December 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 		=
}}

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 |status = line if you use the official system and add the following lines, each with a rating on a scale of 0 to 5. See Formalizing Aircraft Status for instructions on how to rate your aircraft.

|status-fdm		=
|status-systems		=
|status-cockpit		=
|status-model		=