Template:Infobox aircraft occurrence: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(added some headings to code)
(preparing type/cause distinction)
Line 7: Line 7:
|title = {{{name|{{{Name|<includeonly>{{PAGENAME}}</includeonly>}}} }}}
|title = {{{name|{{{Name|<includeonly>{{PAGENAME}}</includeonly>}}} }}}


<!----- Image ----->
<!---------- Image ---------->
|image = {{#if:{{{image|}}}{{{Crash image|}}}|[[Image:{{{image|{{{Crash image}}}}}}|{{{image_size|260}}}px|alt={{{alt|}}}]]}}
|image = {{#if:{{{image|}}}{{{Crash image|}}}|[[Image:{{{image|{{{Crash image}}}}}}|{{{image_size|260}}}px|alt={{{alt|}}}]]}}
|image_size = {{#if:{{{image_size<includeonly>|</includeonly>}}}{{{size|260}}}}}
|image_size = {{#if:{{{image_size<includeonly>|</includeonly>}}}{{{size|260}}}}}
Line 13: Line 13:
|caption = {{{caption|{{{Image caption|}}} }}}
|caption = {{{caption|{{{Image caption|}}} }}}


<!----- Styles ----->
<!---------- Styles ---------->
|headerstyle = background:#082567;color:white;
|headerstyle = background:#082567;color:white;
|labelstyle = line-height:1.3em;padding-right:1.0em;white-space:nowrap;
|labelstyle = line-height:1.3em;padding-right:1.0em;white-space:nowrap;
|datastyle = line-height:1.3em;
|datastyle = line-height:1.3em;


<!----- Summary ----->
<!---------- Summary ---------->
|header1 = <includeonly>{{{occurrence_type|Occurrence}}} summary</includeonly>
|header1 = <includeonly>{{{occurrence_type|Occurrence}}} summary</includeonly>
|label2 = Date
|label2 = Date
|data2 = {{{Date|{{{date|}}} }}}
|data2 = {{{Date|{{{date|}}} }}}

|label3 = Type
|label3 = Type
<!----Type# is limited to 1=Structural, 2=Mechanical, 3=Maintenance, 4=Weather, 5=Piloting, 6=Terrorism (bombing) 7=Hijacking, 8=Undetermined:---->
|data3 = {{{Type|{{{type|}}} }}}
|data3 = {{#switch:{{{type#|}}} |1=[[Structural failure#Aircraft|Structural failure]] |2=Mechanical failure |3=Improper maintenance |4=Weather |5=[[Pilot error|Piloting error]] |6=Terrorism |7=[[Aircraft hijacking|Hijacking]] |8=Undetermined}}
|label4 = Site
<!--|label4 = Cause
|class4 = flabel location
|data4 = {{{cause|}}}
|data4 = {{{Site|{{{site|}}} }}}{{#if:{{{Coordinates|{{{coordinates|{{{coords|}}} }}} }}} |<br />{{nowrap|{{{Coordinates|{{{coordinates|{{{coords}}} }}} }}} }} }}
-->
|label5 = Passengers

|data5 = {{#if:{{{plane2_type|}}}||{{{Passengers|}}}{{{plane1_passengers|}}}{{{passengers|}}} }}
|label6 = Crew
|label4 = Type
|data6 = {{#if:{{{plane2_type|}}}||{{{Crew|}}}{{{plane1_crew|}}}{{{crew|}}} }}
|data4 = {{{Type|{{{type|}}} }}}
|label5 = Site
|label7 = {{#if:{{{plane2_type|}}}|Total injuries |Injuries}}
|class5 = flabel location
|data7 = {{#if:{{{plane2_type|}}}|{{{total_injuries|}}}|{{{Injuries|{{{plane1_injuries|{{{injuries|}}} }}} }}} }}
|data5 = {{{Site|{{{site|}}} }}}{{#if:{{{Coordinates|{{{coordinates|{{{coords|}}} }}} }}} |<br />{{nowrap|{{{Coordinates|{{{coordinates|{{{coords}}} }}} }}} }} }}
|label8 = {{#if:{{{plane2_type|}}}|Total fatalities |Fatalities}}
|label6 = Passengers
|data8 = {{#if:{{{plane2_type|}}}|{{{total_fatalities|}}}|{{{Fatalities|{{{plane1_fatalities|{{{fatalities|}}} }}} }}} }}
|label9 = {{#if:{{{plane2_type|}}}|Total survivors |Survivors}}
|data6 = {{#if:{{{plane2_type|}}}||{{{Passengers|}}}{{{plane1_passengers|}}}{{{passengers|}}} }}
|label7 = Crew
|data9 = {{#if:{{{plane2_type|}}}|{{{total_survivors|}}}|{{{Survivors|{{{plane1_survivors|{{{survivors|}}} }}} }}} }}
|data7 = {{#if:{{{plane2_type|}}}||{{{Crew|}}}{{{plane1_crew|}}}{{{crew|}}} }}
|label8 = {{#if:{{{plane2_type|}}}|Total injuries |Injuries}}
|data8 = {{#if:{{{plane2_type|}}}|{{{total_injuries|}}}|{{{Injuries|{{{plane1_injuries|{{{injuries|}}} }}} }}} }}
|label9 = {{#if:{{{plane2_type|}}}|Total fatalities |Fatalities}}
|data9 = {{#if:{{{plane2_type|}}}|{{{total_fatalities|}}}|{{{Fatalities|{{{plane1_fatalities|{{{fatalities|}}} }}} }}} }}
|label10 = {{#if:{{{plane2_type|}}}|Total survivors |Survivors}}
|data10 = {{#if:{{{plane2_type|}}}|{{{total_survivors|}}}|{{{Survivors|{{{plane1_survivors|{{{survivors|}}} }}} }}} }}


<!----- First aircraft ----->
<!----- First aircraft ----->
|header10 = {{#if:{{{plane2_type|}}}|First aircraft}}
|header11 = {{#if:{{{plane2_type|}}}|First aircraft}}
|data11 = {{#if:{{{plane1_image|}}}|[[Image:{{{plane1_image}}}|180px|alt={{{plane1_alt|}}}]]{{#if:{{{plane1_caption|}}}|<br/>{{{plane1_caption}}} }} }}
|data12 = {{#if:{{{plane1_image|}}}|[[Image:{{{plane1_image}}}|180px|alt={{{plane1_alt|}}}]]{{#if:{{{plane1_caption|}}}|<br/>{{{plane1_caption}}} }} }}
|label12 = {{#if:{{{plane2_type|}}}|Type|Aircraft&nbsp;type}}
|label13 = {{#if:{{{plane2_type|}}}|Type|Aircraft&nbsp;type}}
|data12 = {{{Aircraft Type|{{{aircraft_type|{{{plane1_type|}}}}}}}}}
|data13 = {{{Aircraft Type|{{{aircraft_type|{{{plane1_type|}}}}}}}}}
|label13 = {{#if:{{{plane2_type|}}}|Name|Aircraft&nbsp;name}}
|label14 = {{#if:{{{plane2_type|}}}|Name|Aircraft&nbsp;name}}
|data13 = {{{Ship name|{{{aircraft_name|{{{plane1_name|}}}}}}}}}
|data14 = {{{Ship name|{{{aircraft_name|{{{plane1_name|}}}}}}}}}
|label14 = Operator
|label15 = Operator
|data14 = {{{Operator|{{{operator|{{{plane1_operator|}}}}}}}}}
|data15 = {{{Operator|{{{operator|{{{plane1_operator|}}}}}}}}}
|label15 = [[Aircraft registration|Tail number]]
|label16 = [[Aircraft registration|Tail number]]
|data15 = {{{Tail Number|{{{tail_number|{{{plane1_tailnum|}}}}}}}}}
|data16 = {{{Tail Number|{{{tail_number|{{{plane1_tailnum|}}}}}}}}}
|label16 = Flight origin
|label17 = Flight origin
|data16 = {{{Origin|{{{origin|{{{plane1_origin|}}}}}}}}}
|data17 = {{{Origin|{{{origin|{{{plane1_origin|}}}}}}}}}
|label17 = Stopover
|label18 = Stopover
|data17 = {{{Stopover|{{{stopover|{{{plane1_stopover|}}}}}}}}}
|data18 = {{{Stopover|{{{stopover|{{{plane1_stopover|}}}}}}}}}
|label18 = 1st stopover
|label19 = 1st stopover
|data18 = {{{Stopover0|{{{stopover0|{{{plane1_stopover0|}}}}}}}}}
|data19 = {{{Stopover0|{{{stopover0|{{{plane1_stopover0|}}}}}}}}}
|label19 = 2nd stopover
|label20 = 2nd stopover
|data19 = {{{Stopover1|{{{stopover1|{{{plane1_stopover1|}}}}}}}}}
|data20 = {{{Stopover1|{{{stopover1|{{{plane1_stopover1|}}}}}}}}}
|label20 = 3rd stopover
|label21 = 3rd stopover
|data20 = {{{Stopover2|{{{stopover2|{{{plane1_stopover2|}}}}}}}}}
|data21 = {{{Stopover2|{{{stopover2|{{{plane1_stopover2|}}}}}}}}}
|label21 = 4th stopover
|label22 = 4th stopover
|data21 = {{{Stopover3|{{{stopover3|{{{plane1_stopover3|}}}}}}}}}
|data22 = {{{Stopover3|{{{stopover3|{{{plane1_stopover3|}}}}}}}}}
|label22 = Last stopover
|label23 = Last stopover
|data22 = {{{Last stopover|{{{last_stopover|{{{plane1_laststopover|}}}}}}}}}
|data23 = {{{Last stopover|{{{last_stopover|{{{plane1_laststopover|}}}}}}}}}
|label23 = Destination
|label24 = Destination
|data23 = {{{Destination|{{{destination|{{{plane1_destination|}}}}}}}}}
|data24 = {{{Destination|{{{destination|{{{plane1_destination|}}}}}}}}}
|label24 = Passengers
|label25 = Passengers
|data24 = {{#if:{{{plane2_type|}}}|{{{plane1_passengers|}}} }}
|data25 = {{#if:{{{plane2_type|}}}|{{{plane1_passengers|}}} }}
|label25 = Crew
|label26 = Crew
|data25 = {{#if:{{{plane2_type|}}}|{{{plane1_crew|}}} }}
|data26 = {{#if:{{{plane2_type|}}}|{{{plane1_crew|}}} }}
|label26 = Injuries
|label27 = Injuries
|data26 = {{#if:{{{plane2_type|}}}|{{{plane1_injuries|}}} }}
|data27 = {{#if:{{{plane2_type|}}}|{{{plane1_injuries|}}} }}
|label27 = Fatalities
|label28 = Fatalities
|data27 = {{#if:{{{plane2_type|}}}|{{{plane1_fatalities|}}} }}
|data28 = {{#if:{{{plane2_type|}}}|{{{plane1_fatalities|}}} }}
|label28 = Survivors
|label29 = Survivors
|data28 = {{#if:{{{plane2_type|}}}|{{{plane1_survivors|}}} }}
|data29 = {{#if:{{{plane2_type|}}}|{{{plane1_survivors|}}} }}


<!----- Second aircraft ----->
<!----- Second aircraft ----->
|header29 = {{#if:{{{plane2_type|}}}|Second aircraft}}
|header30 = {{#if:{{{plane2_type|}}}|Second aircraft}}
|data30 = {{#if:{{{plane2_image|}}}|[[Image:{{{plane2_image}}}|180px|alt={{{plane2_alt|}}}]]{{#if:{{{plane2_caption|}}}|<br/>{{{plane2_caption}}} }} }}
|data31 = {{#if:{{{plane2_image|}}}|[[Image:{{{plane2_image}}}|180px|alt={{{plane2_alt|}}}]]{{#if:{{{plane2_caption|}}}|<br/>{{{plane2_caption}}} }} }}
|label31 = Type
|label32 = Type
|data31 = {{{plane2_type|}}}
|data32 = {{{plane2_type|}}}
|label32 = Name
|label33 = Name
|data32 = {{{plane2_name|}}}
|data33 = {{{plane2_name|}}}
|label33 = Operator
|label34 = Operator
|data33 = {{{plane2_operator|}}}
|data34 = {{{plane2_operator|}}}
|label34 = [[Aircraft registration|Tail number]]
|label35 = [[Aircraft registration|Tail number]]
|data34 = {{{plane2_tailnum|}}}
|data35 = {{{plane2_tailnum|}}}
|label35 = Flight origin
|label36 = Flight origin
|data35 = {{{plane2_origin|}}}
|data36 = {{{plane2_origin|}}}
|label36 = Stopover
|label37 = Stopover
|data36 = {{{plane2_stopover|}}}
|data37 = {{{plane2_stopover|}}}
|label37 = 1st stopover
|label38 = 1st stopover
|data37 = {{{plane2_stopover0|}}}
|data38 = {{{plane2_stopover0|}}}
|label38 = 2nd stopover
|label39 = 2nd stopover
|data38 = {{{plane2_stopover1|}}}
|data39 = {{{plane2_stopover1|}}}
|label39 = 3rd stopover
|label40 = 3rd stopover
|data39 = {{{plane2_stopover2|}}}
|data40 = {{{plane2_stopover2|}}}
|label40 = 4th stopover
|label41 = 4th stopover
|data40 = {{{plane2_stopover3|}}}
|data41 = {{{plane2_stopover3|}}}
|label41 = Last stopover
|label42 = Last stopover
|data41 = {{{plane2_laststopover|}}}
|data42 = {{{plane2_laststopover|}}}
|label42 = Destination
|label43 = Destination
|data42 = {{{plane2_destination|}}}
|data43 = {{{plane2_destination|}}}
|label43 = Passengers
|label44 = Passengers
|data43 = {{{plane2_passengers|}}}
|data44 = {{{plane2_passengers|}}}
|label44 = Crew
|label45 = Crew
|data44 = {{{plane2_crew|}}}
|data45 = {{{plane2_crew|}}}
|label45 = Injuries
|label46 = Injuries
|data45 = {{{plane2_injuries|}}}
|data46 = {{{plane2_injuries|}}}
|label46 = Fatalities
|label47 = Fatalities
|data46 = {{{plane2_fatalities|}}}
|data47 = {{{plane2_fatalities|}}}
|label47 = Survivors
|label48 = Survivors
|data47 = {{{plane2_survivors|}}}
|data48 = {{{plane2_survivors|}}}


<!----- Third aircraft ----->
<!----- Third aircraft ----->
|header48 = {{#if:{{{plane3_type|}}}|Third aircraft}}
|header49 = {{#if:{{{plane3_type|}}}|Third aircraft}}
|data49 = {{#if:{{{plane3_image|}}}|[[Image:{{{plane3_image}}}|180px|alt={{{plane3_alt|}}}]]{{#if:{{{plane3_caption|}}}|<br/>{{{plane3_caption}}} }} }}
|data50 = {{#if:{{{plane3_image|}}}|[[Image:{{{plane3_image}}}|180px|alt={{{plane3_alt|}}}]]{{#if:{{{plane3_caption|}}}|<br/>{{{plane3_caption}}} }} }}
|label50 = Type
|label51 = Type
|data50 = {{{plane3_type|}}}
|data51 = {{{plane3_type|}}}
|label51 = Name
|label52 = Name
|data51 = {{{plane3_name|}}}
|data52 = {{{plane3_name|}}}
|label52 = Operator
|label53 = Operator
|data52 = {{{plane3_operator|}}}
|data53 = {{{plane3_operator|}}}
|label53 = [[Aircraft registration|Tail number]]
|label54 = [[Aircraft registration|Tail number]]
|data53 = {{{plane3_tailnum|}}}
|data54 = {{{plane3_tailnum|}}}
|label54 = Flight origin
|label55 = Flight origin
|data54 = {{{plane3_origin|}}}
|data55 = {{{plane3_origin|}}}
|label55 = Stopover
|label56 = Stopover
|data55 = {{{plane3_stopover|}}}
|data56 = {{{plane3_stopover|}}}
|label56 = 1st stopover
|label57 = 1st stopover
|data56 = {{{plane3_stopover0|}}}
|data57 = {{{plane3_stopover0|}}}
|label57 = 2nd stopover
|label58 = 2nd stopover
|data57 = {{{plane3_stopover1|}}}
|data58 = {{{plane3_stopover1|}}}
|label58 = 3rd stopover
|label59 = 3rd stopover
|data58 = {{{plane3_stopover2|}}}
|data59 = {{{plane3_stopover2|}}}
|label59 = 4th stopover
|label60 = 4th stopover
|data59 = {{{plane3_stopover3|}}}
|data60 = {{{plane3_stopover3|}}}
|label60 = Last stopover
|label61 = Last stopover
|data60 = {{{plane3_laststopover|}}}
|data61 = {{{plane3_laststopover|}}}
|label61 = Destination
|label62 = Destination
|data61 = {{{plane3_destination|}}}
|data62 = {{{plane3_destination|}}}
|label62 = Passengers
|label63 = Passengers
|data62 = {{{plane3_passengers|}}}
|data63 = {{{plane3_passengers|}}}
|label63 = Crew
|label64 = Crew
|data63 = {{{plane3_crew|}}}
|data64 = {{{plane3_crew|}}}
|label64 = Injuries
|label65 = Injuries
|data64 = {{{plane3_injuries|}}}
|data65 = {{{plane3_injuries|}}}
|label65 = Fatalities
|label66 = Fatalities
|data65 = {{{plane3_fatalities|}}}
|data66 = {{{plane3_fatalities|}}}
|label66 = Survivors
|label67 = Survivors
|data66 = {{{plane3_survivors|}}}
|data67 = {{{plane3_survivors|}}}
}}<noinclude>
}}<noinclude>

{{Documentation}}
{{documentation}}
<!-- add categories and interwikis to the /doc subpage, please, not here -->
<!-- Add categories and interwikis to the /doc subpage, please, not here! -->
</noinclude>
</noinclude>

Revision as of 14:07, 23 July 2011