Template:Infobox aircraft occurrence: Difference between revisions

preparing type/cause distinction
(added some headings to code)
(preparing type/cause distinction)
Line 7:
|title = {{{name|{{{Name|<includeonly>{{PAGENAME}}</includeonly>}}} }}}
 
<!---------- Image ---------->
|image = {{#if:{{{image|}}}{{{Crash image|}}}|[[Image:{{{image|{{{Crash image}}}}}}|{{{image_size|260}}}px|alt={{{alt|}}}]]}}
|image_size = {{#if:{{{image_size<includeonly>|</includeonly>}}}{{{size|260}}}}}
Line 13:
|caption = {{{caption|{{{Image caption|}}} }}}
 
<!---------- Styles ---------->
|headerstyle = background:#082567;color:white;
|labelstyle = line-height:1.3em;padding-right:1.0em;white-space:nowrap;
|datastyle = line-height:1.3em;
 
<!---------- Summary ---------->
|header1 = <includeonly>{{{occurrence_type|Occurrence}}} summary</includeonly>
|label2 = Date
|data2 = {{{Date|{{{date|}}} }}}
 
|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|}}} }}
|label6label4 = CrewType
|data6data4 = {{#if:{{{plane2_type|}}}|Type|{{{Crewtype|}}}{{{plane1_crew| }}}{{{crew|}}} }}
|label4label5 = Site
|label7 = {{#if:{{{plane2_type|}}}|Total injuries |Injuries}}
|class4class5 = flabel location
|data7 = {{#if:{{{plane2_type|}}}|{{{total_injuries|}}}|{{{Injuries|{{{plane1_injuries|{{{injuries|}}} }}} }}} }}
|data4data5 = {{{Site|{{{site|}}} }}}{{#if:{{{Coordinates|{{{coordinates|{{{coords|}}} }}} }}} |<br />{{nowrap|{{{Coordinates|{{{coordinates|{{{coords}}} }}} }}} }} }}
|label8 = {{#if:{{{plane2_type|}}}|Total fatalities |Fatalities}}
|label5label6 = Passengers
|data8 = {{#if:{{{plane2_type|}}}|{{{total_fatalities|}}}|{{{Fatalities|{{{plane1_fatalities|{{{fatalities|}}} }}} }}} }}
|label9data6 = {{#if:{{{plane2_type|}}}|Total survivors |Survivors{{{Passengers|}}}{{{plane1_passengers|}}}{{{passengers|}}} }}
|label7 = Crew
|data9 = {{#if:{{{plane2_type|}}}|{{{total_survivors|}}}|{{{Survivors|{{{plane1_survivors|{{{survivors|}}} }}} }}} }}
|data5data7 = {{#if:{{{plane2_type|}}}||{{{PassengersCrew|}}}{{{plane1_passengersplane1_crew|}}}{{{passengerscrew|}}} }}
|label7label8 = {{#if:{{{plane2_type|}}}|Total injuries |Injuries}}
|data7data8 = {{#if:{{{plane2_type|}}}|{{{total_injuries|}}}|{{{Injuries|{{{plane1_injuries|{{{injuries|}}} }}} }}} }}
|label8label9 = {{#if:{{{plane2_type|}}}|Total fatalities |Fatalities}}
|data8data9 = {{#if:{{{plane2_type|}}}|{{{total_fatalities|}}}|{{{Fatalities|{{{plane1_fatalities|{{{fatalities|}}} }}} }}} }}
|label10 = {{#if:{{{plane2_type|}}}|Total survivors |Survivors}}
|data9data10 = {{#if:{{{plane2_type|}}}|{{{total_survivors|}}}|{{{Survivors|{{{plane1_survivors|{{{survivors|}}} }}} }}} }}
 
<!----- First aircraft ----->
|header10header11 = {{#if:{{{plane2_type|}}}|First aircraft}}
|data11data12 = {{#if:{{{plane1_image|}}}|[[Image:{{{plane1_image}}}|180px|alt={{{plane1_alt|}}}]]{{#if:{{{plane1_caption|}}}|<br/>{{{plane1_caption}}} }} }}
|label12label13 = {{#if:{{{plane2_type|}}}|Type|Aircraft&nbsp;type}}
|data12data13 = {{{Aircraft Type|{{{aircraft_type|{{{plane1_type|}}}}}}}}}
|label13label14 = {{#if:{{{plane2_type|}}}|Name|Aircraft&nbsp;name}}
|data13data14 = {{{Ship name|{{{aircraft_name|{{{plane1_name|}}}}}}}}}
|label14label15 = Operator
|data14data15 = {{{Operator|{{{operator|{{{plane1_operator|}}}}}}}}}
|label15label16 = [[Aircraft registration|Tail number]]
|data15data16 = {{{Tail Number|{{{tail_number|{{{plane1_tailnum|}}}}}}}}}
|label16label17 = Flight origin
|data16data17 = {{{Origin|{{{origin|{{{plane1_origin|}}}}}}}}}
|label17label18 = Stopover
|data17data18 = {{{Stopover|{{{stopover|{{{plane1_stopover|}}}}}}}}}
|label18label19 = 1st stopover
|data18data19 = {{{Stopover0|{{{stopover0|{{{plane1_stopover0|}}}}}}}}}
|label19label20 = 2nd stopover
|data19data20 = {{{Stopover1|{{{stopover1|{{{plane1_stopover1|}}}}}}}}}
|label20label21 = 3rd stopover
|data20data21 = {{{Stopover2|{{{stopover2|{{{plane1_stopover2|}}}}}}}}}
|label21label22 = 4th stopover
|data21data22 = {{{Stopover3|{{{stopover3|{{{plane1_stopover3|}}}}}}}}}
|label22label23 = Last stopover
|data22data23 = {{{Last stopover|{{{last_stopover|{{{plane1_laststopover|}}}}}}}}}
|label23label24 = Destination
|data23data24 = {{{Destination|{{{destination|{{{plane1_destination|}}}}}}}}}
|label24label25 = Passengers
|data24data25 = {{#if:{{{plane2_type|}}}|{{{plane1_passengers|}}} }}
|label25label26 = Crew
|data25data26 = {{#if:{{{plane2_type|}}}|{{{plane1_crew|}}} }}
|label26label27 = Injuries
|data26data27 = {{#if:{{{plane2_type|}}}|{{{plane1_injuries|}}} }}
|label27label28 = Fatalities
|data27data28 = {{#if:{{{plane2_type|}}}|{{{plane1_fatalities|}}} }}
|label28label29 = Survivors
|data28data29 = {{#if:{{{plane2_type|}}}|{{{plane1_survivors|}}} }}
 
<!----- Second aircraft ----->
|header29header30 = {{#if:{{{plane2_type|}}}|Second aircraft}}
|data30data31 = {{#if:{{{plane2_image|}}}|[[Image:{{{plane2_image}}}|180px|alt={{{plane2_alt|}}}]]{{#if:{{{plane2_caption|}}}|<br/>{{{plane2_caption}}} }} }}
|label31label32 = Type
|data31data32 = {{{plane2_type|}}}
|label32label33 = Name
|data32data33 = {{{plane2_name|}}}
|label33label34 = Operator
|data33data34 = {{{plane2_operator|}}}
|label34label35 = [[Aircraft registration|Tail number]]
|data34data35 = {{{plane2_tailnum|}}}
|label35label36 = Flight origin
|data35data36 = {{{plane2_origin|}}}
|label36label37 = Stopover
|data36data37 = {{{plane2_stopover|}}}
|label37label38 = 1st stopover
|data37data38 = {{{plane2_stopover0|}}}
|label38label39 = 2nd stopover
|data38data39 = {{{plane2_stopover1|}}}
|label39label40 = 3rd stopover
|data39data40 = {{{plane2_stopover2|}}}
|label40label41 = 4th stopover
|data40data41 = {{{plane2_stopover3|}}}
|label41label42 = Last stopover
|data41data42 = {{{plane2_laststopover|}}}
|label42label43 = Destination
|data42data43 = {{{plane2_destination|}}}
|label43label44 = Passengers
|data43data44 = {{{plane2_passengers|}}}
|label44label45 = Crew
|data44data45 = {{{plane2_crew|}}}
|label45label46 = Injuries
|data45data46 = {{{plane2_injuries|}}}
|label46label47 = Fatalities
|data46data47 = {{{plane2_fatalities|}}}
|label47label48 = Survivors
|data47data48 = {{{plane2_survivors|}}}
 
<!----- Third aircraft ----->
|header48header49 = {{#if:{{{plane3_type|}}}|Third aircraft}}
|data49data50 = {{#if:{{{plane3_image|}}}|[[Image:{{{plane3_image}}}|180px|alt={{{plane3_alt|}}}]]{{#if:{{{plane3_caption|}}}|<br/>{{{plane3_caption}}} }} }}
|label50label51 = Type
|data50data51 = {{{plane3_type|}}}
|label51label52 = Name
|data51data52 = {{{plane3_name|}}}
|label52label53 = Operator
|data52data53 = {{{plane3_operator|}}}
|label53label54 = [[Aircraft registration|Tail number]]
|data53data54 = {{{plane3_tailnum|}}}
|label54label55 = Flight origin
|data54data55 = {{{plane3_origin|}}}
|label55label56 = Stopover
|data55data56 = {{{plane3_stopover|}}}
|label56label57 = 1st stopover
|data56data57 = {{{plane3_stopover0|}}}
|label57label58 = 2nd stopover
|data57data58 = {{{plane3_stopover1|}}}
|label58label59 = 3rd stopover
|data58data59 = {{{plane3_stopover2|}}}
|label59label60 = 4th stopover
|data59data60 = {{{plane3_stopover3|}}}
|label60label61 = Last stopover
|data60data61 = {{{plane3_laststopover|}}}
|label61label62 = Destination
|data61data62 = {{{plane3_destination|}}}
|label62label63 = Passengers
|data62data63 = {{{plane3_passengers|}}}
|label63label64 = Crew
|data63data64 = {{{plane3_crew|}}}
|label64label65 = Injuries
|data64data65 = {{{plane3_injuries|}}}
|label65label66 = Fatalities
|data65data66 = {{{plane3_fatalities|}}}
|label66label67 = Survivors
|data66data67 = {{{plane3_survivors|}}}
}}<noinclude>
 
{{Documentation}}
{{documentation}}
<!-- addAdd categories and interwikis to the /doc subpage, please, not here! -->
</noinclude>
Anonymous user