Template

Difference between revisions of "Aircraft"

From CNAC

m
m
 
(14 intermediate revisions by the same user not shown)
Line 31: Line 31:
 
<div class="large-4 large-push-8 columns">
 
<div class="large-4 large-push-8 columns">
 
{|class="infobox-page" style="width: auto; font-size: 85%; background-color: #f9f9f9; color: black; margin:0 auto 1.5rem; text-align:center;min-width:250px;"
 
{|class="infobox-page" style="width: auto; font-size: 85%; background-color: #f9f9f9; color: black; margin:0 auto 1.5rem; text-align:center;min-width:250px;"
{{#if:{{{Aircraft Main Image|}}}| {{!}} style="text-align:center;"{{!}}{{#set:Aircraft Main Image={{{Aircraft Main Image|}}} }}[[Image:{{{Aircraft Main Image|}}}|link=]]
+
{{#if:{{{Aircraft Main Image|}}}| {{!}} style="text-align:center;"{{!}}{{#set:Aircraft Main Image=File:{{{Aircraft Main Image|}}}|Has image=File:{{{Aircraft Main Image|}}} }}[[Image:{{{Aircraft Main Image|}}}|link=]]
 
{{!}}-}}
 
{{!}}-}}
 
| {{#ifeq:{{{Crew|}}}|1|'''Crew:''' [[Aircraft Crew::{{{Crew|}}} crew member]] | '''Crew:''' [[Aircraft Crew::{{{Crew|}}} crew members]] }}
 
| {{#ifeq:{{{Crew|}}}|1|'''Crew:''' [[Aircraft Crew::{{{Crew|}}} crew member]] | '''Crew:''' [[Aircraft Crew::{{{Crew|}}} crew members]] }}
Line 39: Line 39:
 
{{#if: {{{Passenger Capacity Max|}}} | {{!}} ''' Passenger Capacity:''' {{#set:Aircraft Capacity={{{Passenger Capacity|}}} passengers}} {{{Passenger Capacity|}}} to  [[Aircraft Capacity Max::{{{Passenger Capacity Max|}}} passengers]] | {{!}}''' Passenger Capacity:''' [[Aircraft Capacity::{{{Passenger Capacity|}}} passengers]] }}
 
{{#if: {{{Passenger Capacity Max|}}} | {{!}} ''' Passenger Capacity:''' {{#set:Aircraft Capacity={{{Passenger Capacity|}}} passengers}} {{{Passenger Capacity|}}} to  [[Aircraft Capacity Max::{{{Passenger Capacity Max|}}} passengers]] | {{!}}''' Passenger Capacity:''' [[Aircraft Capacity::{{{Passenger Capacity|}}} passengers]] }}
 
|-
 
|-
| '''Length:''' [[Aircraft Length::{{{Length|}}} ft]]
+
{{#if:{{{Length|}}} | {{!}} '''Length:''' [[Aircraft Length::{{{Length|}}} ft]]
|-
+
{{!}}-}}
| '''Wingspan:''' [[Aircraft Wingspan::{{{Wingspan|}}} ft]]
+
{{#if:{{{Wingspan|}}} | {{!}} '''Wingspan:''' [[Aircraft Wingspan::{{{Wingspan|}}} ft]]
|-
+
{{!}}- }}
| '''Height:''' [[Aircraft Height::{{{Height|}}} ft]]
+
{{#if:{{{WingspanLower|}}} | {{!}} '''Lower Wingspan:''' [[Aircraft Lower Wingspan::{{{WingspanLower|}}} ft]]
|-
+
{{!}}- }}
{{#if:{{{Cargo Capactity|}}}| ! Cargo Capactity {{!}} [[Aircraft Cargo Capacity={{{Cargo Capactity|}}} lbs]]  
+
{{#if:{{{Height|}}}| {{!}} '''Height:''' [[Aircraft Height::{{{Height|}}} ft]]
 +
{{!}}-}}
 +
{{#if:{{{Cargo Capactity|}}} | {{!}} '''Cargo Capactity''' [[Aircraft Cargo Capacity::{{{Cargo Capactity|}}} lbs]]
 +
{{!}}-}}
 +
{{#if:{{{Empty Weight|}}} | {{!}} '''Empty Weight:''' [[Aircraft Empty Weight::{{{Empty Weight|}}} lbs]]
 +
{{!}}-}}
 +
{{#if:{{{Gross Weight|}}} | {{!}} '''Gross Weight:''' [[Aircraft Gross Weight::{{{Gross Weight|}}} lbs]]
 +
{{!}}-}}
 +
{{#if:{{{Powerplant|}}} | {{!}} '''Powerplant:''' [[Aircraft Powerplant::{{{Powerplant|}}}]]
 +
{{!}}-}}
 +
{{#if:{{{Propellers|}}} | {{!}} '''Propellers:''' [[Aircraft Propellers::{{{Propellers|}}}]]
 +
{{!}}-}}
 +
{{#if:{{{Max Speed|}}} | {{!}} '''Max Speed:''' [[Aircraft Max Speed::{{{Max Speed|}}} mph]]
 +
{{!}}-}}
 +
{{#if:{{{Cruise Speed|}}} | {{!}} '''Cruise Speed:''' [[Aircraft Cruise Speed::{{{Cruise Speed|}}} mph]]
 +
{{!}}-}}
 +
{{#if:{{{Range|}}} | {{!}} '''Range:''' [[Aircraft Range::{{{Range|}}} miles]]
 
{{!}}-}}
 
{{!}}-}}
| '''Empty Weight:''' [[Aircraft Empty Weight::{{{Empty Weight|}}} lbs]]
+
{{#if:{{{Service Ceiling|}}} | {{!}} '''Service Ceiling:''' [[Aircraft Service Ceiling::{{{Service Ceiling|}}} ft]]
|-
+
}}
| '''Gross Weight:''' [[Aircraft Gross Weight::{{{Gross Weight|}}} lbs]]
 
|-
 
| '''Powerplant:''' [[Aircraft Powerplant::{{{Powerplant|}}}]]
 
|-
 
| '''Propellers:''' [[Aircraft Propellers::{{{Propellers|}}}]]
 
|-
 
| '''Max Speed:''' [[Aircraft Max Speed::{{{Max Speed|}}} mph]]
 
|-
 
| '''Cruise Speed:''' [[Aircraft Cruise Speed::{{{Cruise Speed|}}} mph]]
 
|-
 
| '''Range:''' [[Aircraft Range::{{{Range|}}} miles]]
 
|-
 
| '''Service Ceiling:''' [[Aircraft Service Ceiling::{{{Service Ceiling|}}} ft]]
 
 
|}
 
|}
 
</div>
 
</div>
 
<div class="large-8 large-pull-4 columns">
 
<div class="large-8 large-pull-4 columns">
=== Summary ===
+
{{#if:{{{Summary|}}}|=== Summary ===
[[Aircraft Summary::{{{Summary|}}}]]
+
{{#set:Aircraft Summary={{{Summary|}}}}}{{{Summary|}}}|}}
=== Additional Notes ===
+
{{#if:{{{Additional Notes|}}}|=== Additional Notes ===
[[Aircraft Notes::{{{Additional Notes|}}}]]
+
{{#set:Aircraft Notes={{{Additional Notes|}}}}}{{{Additional Notes|}}}|}}
=== CNAC Infomation Placeholder ===
+
</div>
[[CNAC Information::{{{CNAC Infomation Placeholder|}}}]]
 
 
</div>
 
</div>
</div>__NOTOC__ __NOEDITSECTION__
+
{{Aircraft CNAC Data}}{{#if:{{ServiceStartYear}}|{{#set:Aircraft CNAC Start Year={{ServiceStartYear}}}}|}}{{#if:{{ServiceEndYear}}|{{#set:Aircraft CNAC End Year={{ServiceEndYear}}}}|}}
 +
__NOTOC__ __NOEDITSECTION__
 
[[Category:Aircraft]]
 
[[Category:Aircraft]]
 
</includeonly>
 
</includeonly>

Latest revision as of 12:01, 26 April 2020

This is the "Aircraft" template. It should be called in the following format:

{{Aircraft
|Crew=
|Crew Type=
|Aircraft Main Image=
|Passenger Capacity=
|Passenger Capacity Max=
|Length=
|Wingspan=
|Height=
|Cargo Capactity=
|Empty Weight=
|Gross Weight=
|Powerplant=
|Propellers=
|Max Speed=
|Cruise Speed=
|Range=
|Service Ceiling=
|Summary=
|Additional Notes=
|CNAC Infomation Placeholder=
}}

Edit the page to see the template text.