Template:Infobox aircraft: Difference between revisions

Implement changes to fix Ready Icons
(Clarification: Images should not have Flie: or Image: prefix)
(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 = aerotow/aircraftmonth/airrefuel/bombable/dualcontrol/rembrandt/spacetrip/thermal
|ready = aerotow/aircraftmonth/airrefuel/bombable/dualcontrol/rembrandt/spacetrip/thermal
</pre>
</pre>
-->
 
}}
}}