Template

Difference between revisions of "Aircraft"

From CNAC

m
m
 
(32 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
|Crew=
 
|Crew=
 
|Crew Type=
 
|Crew Type=
 +
|Aircraft Main Image=
 
|Passenger Capacity=
 
|Passenger Capacity=
 
|Passenger Capacity Max=
 
|Passenger Capacity Max=
Line 21: Line 22:
 
|Service Ceiling=
 
|Service Ceiling=
 
|Summary=
 
|Summary=
|Aircraft Main Image=
 
 
|Additional Notes=
 
|Additional Notes=
 
|CNAC Infomation Placeholder=
 
|CNAC Infomation Placeholder=
Line 27: Line 27:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
+
</noinclude><includeonly>
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
+
<div class="row">
 +
<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;"
 +
{{#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]] }}
 
|-
 
|-
! Crew
+
| '''Crew Type:''' {{#arraymap:{{{Crew Type|}}}|,|x|[[Aircraft Crew Type::x]]}}
| {{#ifeq:{{{Crew|}}}|1|[[Aircraft Crew::{{{Crew|}}} crew member]]|[[Aircraft Crew::{{{Crew|}}} crew members]]
 
 
|-
 
|-
! Crew Type
+
{{#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]] }}
| {{#arraymap:{{{Crew Type|}}}|,|x|[[Aircraft Crew Type::x]]}}
 
 
 
 
|-
 
|-
! Passenger Capacity
+
{{#if:{{{Length|}}} | {{!}} '''Length:''' [[Aircraft Length::{{{Length|}}} ft]]
| [[Aircraft Capacity::{{{Passenger Capacity|}}} passengers]]
+
{{!}}-}}
|-
+
{{#if:{{{Wingspan|}}} | {{!}} '''Wingspan:''' [[Aircraft Wingspan::{{{Wingspan|}}} ft]]
! Passenger Capacity Max
+
{{!}}- }}
| [[Aircraft Capacity Max::{{{Passenger Capacity Max|}}} passengers]]
+
{{#if:{{{WingspanLower|}}} | {{!}} '''Lower Wingspan:''' [[Aircraft Lower Wingspan::{{{WingspanLower|}}} ft]]
|-
+
{{!}}- }}
! Length
+
{{#if:{{{Height|}}}| {{!}} '''Height:''' [[Aircraft Height::{{{Height|}}} ft]]
| [[Aircraft Length::{{{Length|}}} ft]]
+
{{!}}-}}
|-
+
{{#if:{{{Cargo Capactity|}}} | {{!}} '''Cargo Capactity''' [[Aircraft Cargo Capacity::{{{Cargo Capactity|}}} lbs]]
! Wingspan
+
{{!}}-}}
| [[Aircraft Wingspan::{{{Wingspan|}}} ft]]
+
{{#if:{{{Empty Weight|}}} | {{!}} '''Empty Weight:''' [[Aircraft Empty Weight::{{{Empty Weight|}}} lbs]]
|-
+
{{!}}-}}
! Height
+
{{#if:{{{Gross Weight|}}} | {{!}} '''Gross Weight:''' [[Aircraft Gross Weight::{{{Gross Weight|}}} lbs]]
| [[Aricraft Height::{{{Height|}}} ft]]
+
{{!}}-}}
|-
+
{{#if:{{{Powerplant|}}} | {{!}} '''Powerplant:''' [[Aircraft Powerplant::{{{Powerplant|}}}]]
! Cargo Capactity
+
{{!}}-}}
| [[Aircraft Cargo Capacity::{{{Cargo Capactity|}}} lbs]]
+
{{#if:{{{Propellers|}}} | {{!}} '''Propellers:''' [[Aircraft Propellers::{{{Propellers|}}}]]
|-
+
{{!}}-}}
! Empty Weight
+
{{#if:{{{Max Speed|}}} | {{!}} '''Max Speed:''' [[Aircraft Max Speed::{{{Max Speed|}}} mph]]
| [[Aircraft Empty Weight::{{{Empty Weight|}}} lbs]]
+
{{!}}-}}
|-
+
{{#if:{{{Cruise Speed|}}} | {{!}} '''Cruise Speed:''' [[Aircraft Cruise Speed::{{{Cruise Speed|}}} mph]]
! Gross Weight
+
{{!}}-}}
| [[Aircraft Gross Weight::{{{Gross Weight|}}} lbs]]
+
{{#if:{{{Range|}}} | {{!}} '''Range:''' [[Aircraft Range::{{{Range|}}} miles]]
|-
+
{{!}}-}}
! Powerplant
+
{{#if:{{{Service Ceiling|}}} | {{!}} '''Service Ceiling:''' [[Aircraft Service Ceiling::{{{Service Ceiling|}}} ft]]
| [[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]]
 
|-
 
! Summary
 
| [[Aircraft Summary::{{{Summary|}}}]]
 
|-
 
! Aircraft Main Image
 
| [[Aircraft Main Image::{{{Aircraft Main Image|}}}]]
 
|-
 
! Additional Notes
 
| [[Aircraft Notes::{{{Additional Notes|}}}]]
 
|-
 
! CNAC Infomation Placeholder
 
| [[CNAC Information::{{{CNAC Infomation Placeholder|}}}]]
 
 
|}
 
|}
 
+
</div>
 +
<div class="large-8 large-pull-4 columns">
 +
{{#if:{{{Summary|}}}|=== Summary ===
 +
{{#set:Aircraft Summary={{{Summary|}}}}}{{{Summary|}}}|}}
 +
{{#if:{{{Additional Notes|}}}|=== Additional Notes ===
 +
{{#set:Aircraft Notes={{{Additional Notes|}}}}}{{{Additional Notes|}}}|}}
 +
</div>
 +
</div>
 +
{{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.