Template:Infobox aircraft: Difference between revisions
(Clarification: Images should not have Flie: or Image: prefix) |
Red Leader (talk | contribs) (Implement changes to fix Ready Icons) |
||
Line 29: | Line 29: | ||
|data11 = {{#if:{{{download|}}}|[{{{download}}} Download]}} | |data11 = {{#if:{{{download|}}}|[{{{download}}} Download]}} | ||
|data12 = {{#if:{{{liverydbid|}}}|[http://liveries.flightgear.org/aircraft.php?id={{{liverydbid|}}}&display=2 Livery database]}} | |data12 = {{#if:{{{liverydbid|}}}|[http://liveries.flightgear.org/aircraft.php?id={{{liverydbid|}}}&display=2 Livery database]}} | ||
}}{{#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><!-- | }}{{#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]]}} | ||
{{#if:{{{ready|}}}| | |||
{{Ready|{{#titleparts: /{{{ready|}}} | 1 }}}} | |||
{{Ready|{{#titleparts: /{{{ready|}}} | 1 | 2 }}}} | |||
{{Ready|{{#titleparts: /{{{ready|}}} | 1 | 3 }}}} | |||
{{Ready|{{#titleparts: /{{{ready|}}} | 1 | 4 }}}} | |||
{{Ready|{{#titleparts: /{{{ready|}}} | 1 | 5 }}}} | |||
}} | |||
</includeonly><!-- | |||
--><noinclude>{{Informative template|1= | --><noinclude>{{Informative template|1= | ||
Line 59: | Line 67: | ||
<nowiki>|</nowiki> ''development'' = | <nowiki>|</nowiki> ''development'' = | ||
<nowiki>|</nowiki> ''download'' = | <nowiki>|</nowiki> ''download'' = | ||
<nowiki>|</nowiki> ''ready'' = | |||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
Line 87: | Line 96: | ||
; download: Download link | ; download: Download link | ||
; ready: Adds icons to display certain capabilities of the aircraft | |||
=== Aircraft status === | === Aircraft status === | ||
Line 92: | Line 103: | ||
See [[Aircraft rating system]] for instructions on how to rate your aircraft. | See [[Aircraft rating system]] for instructions on how to rate your aircraft. | ||
=== Ready icons === | === Ready icons === | ||
Several icons are available to indicate certain capabilities of the aircraft. You can add up to five icons to one aircraft. Separate them with slashes. | Several icons are available to indicate certain capabilities of the aircraft. You can add up to five icons to one aircraft. Separate them with slashes. | ||
Using <tt>airrefuel</tt>, <tt>bombable</tt>, <tt>dualcontrol</tt>, <tt>rembrandt</tt>, <tt>spacetrip</tt> will add the page to the categories [[:Category:Air refueling ready|Air refueling ready]], [[:Category:Bombable aircraft|Bombable aircraft]], [[:Category:Dual control aircraft|Dual control aircraft]], [[:Category:Rembrandt aircraft|Rembrandt aircraft]] and [[:Category:Aerospace|Aerospace]] respectively. | Using <tt>airrefuel</tt>, <tt>bombable</tt>, <tt>dualcontrol</tt>, <tt>rembrandt</tt>, <tt>spacetrip</tt> will add the page to the categories [[:Category:Air refueling ready|Air refueling ready]], [[:Category:Bombable aircraft|Bombable aircraft]], [[:Category:Dual control aircraft|Dual control aircraft]], [[:Category:Rembrandt aircraft|Rembrandt aircraft]] and [[:Category:Aerospace|Aerospace]] respectively. | ||
{{caution|You can only add 4 ready icons. This will be changed in the future}} | |||
<pre> | <pre> | ||
|ready | |ready = aerotow/aircraftmonth/airrefuel/bombable/dualcontrol/rembrandt/spacetrip/thermal | ||
</pre> | </pre> | ||
}} | }} | ||
Revision as of 20:11, 26 October 2014
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 = | ready = }}
All parameters are optional.
Basic data
- name
- Name of the aircraft
- image
- Screenshot of the aircraft without a File: or Image: prefix
- alt
- Caption for the screenshot
- image2
- Additional screenshot without a File: or Image: prefix, 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
- ready
- Adds icons to display certain capabilities of the aircraft
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.
Ready icons
Several icons are available to indicate certain capabilities of the aircraft. You can add up to five icons to one aircraft. Separate them with slashes. Using airrefuel, bombable, dualcontrol, rembrandt, spacetrip will add the page to the categories Air refueling ready, Bombable aircraft, Dual control aircraft, Rembrandt aircraft and Aerospace respectively.
Caution You can only add 4 ready icons. This will be changed in the future |
|ready = aerotow/aircraftmonth/airrefuel/bombable/dualcontrol/rembrandt/spacetrip/thermal