Template:Infobox aircraft: Difference between revisions
Jump to navigation
Jump to search
(Doc style; Made it possible to use lists in some of the fields) |
(Add link to Aircraft rating system) |
||
Line 16: | Line 16: | ||
|data4 = | |data4 = | ||
{{#if:{{{fgname|}}}|<tt>{{{fgname|}}}</tt>}} | {{#if:{{{fgname|}}}|<tt>{{{fgname|}}}</tt>}} | ||
|label5 = Status | |label5 = [[Aircraft rating system|Status]] | ||
|data5 = {{#if:{{{status|}}}|{{{status}}} | {{#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 | }} }} }} }} }} | }} }} | |data5 = {{#if:{{{status|}}}|{{{status}}} | {{#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 | }} }} }} }} }} | }} }} | ||
|label6 = FDM | |label6 = FDM |
Revision as of 12:15, 22 June 2014
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
Add the following piece of code at the top of the article. Empty fields will not be shown. Check articles using this template to see how everything works and should look.
{{infobox aircraft | name = | image = | alt = | image2 = | alt2 = | type = | liverydbid = | authors = | fdm = | fgname = | status-fdm = | status-systems = | status-cockpit = | status-model = | status = | development = | download = }}
All parameters are optional.
Basic data
- name
- Name of the aircraft
- image
- Screenshot of the aircraft
- alt
- Caption for the screenshot
- image2
- Additional screenshot, preferably a cockpit screenshot
- alt2
- Caption for the second screenshot
- type
- Type of aircraft
- liverydbid
- Livery database id of the aircraft
- authors
- List of authors of the aircraft
- fdm
- FDM of the aircraft
- fgname
- The name of the aircraft to use when launching FlightGear from the command line
- development
- Link to development repository
- download
- Download link
Aircraft status
Instead of a custom "status" text, you can use the aircraft rating system. The overall status is auto-calculated and will be displayed. If you use the aircraft rating system, remove the |status = line.
See Aircraft rating system for instructions on how to rate your aircraft.