Template:Infobox unit: Difference between revisions

no edit summary
(Created page with "{{Infobox | bodystyle = background:{{{bgcolor|}}}; | above = {{{name|{{SUBPAGENAME}}}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|...")
 
No edit summary
 
Line 1: Line 1:
{{Infobox
<includeonly>{{Infobox
| bodystyle = background:{{{bgcolor|}}};
| bodystyle     = {{WPMILHIST Infobox style|main_box_raw}}
| above = {{{name|{{SUBPAGENAME}}}}}
| abovestyle    = {{WPMILHIST Infobox style|header_raw}}
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|alt={{{alt|}}}}}
| subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}}
| caption = {{{caption|}}}
| above          = {{{unit_name|{{PAGENAMEBASE}}}}}
| headerclass =
| subheader      = {{{native_name|}}}


<!------------------- General information -------------------->
|  imagestyle  = {{WPMILHIST Infobox style|image_box_raw}}
| header1 = {{#if:{{{image|}}} |General information}}
|   image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| caption        = {{{caption|}}}


| label2  = [[System of measurement|Unit system]]
| headerstyle    = {{WPMILHIST Infobox style|header_raw}}
data2  = {{{standard|}}}
labelstyle    = padding-right: 1em;


| label3 = Unit&nbsp;of
| label1 = {{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|Active|Founded}}|Active}}
| data3 = {{{quantity|}}}
|   data1 = {{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}}–{{{end_date}}}|{{{start_date}}}}}|{{{dates|}}}}}


| label4 = Symbol
label2 = Disbanded
| data4  = {{#if:{{{symbol|}}}|{{{symbol}}}{{#if:{{{symbol3|}}}|,&ensp;{{{symbol2|}}}&ensp;or&ensp;{{{symbol3|}}}|{{#if:{{{symbol2|}}}|&ensp;or&ensp;{{{symbol2|}}}}}}}}}
|   data2 = {{{disbanded|}}}


| label5 = Named after
| label3 = {{#if:{{{country|}}}|Country|Countries}}
| data5 = {{{namedafter|}}}
|   data3 = {{#if:{{{country|}}}|{{{country}}}|{{{countries|}}}}}


| header6 = {{{extraheader|}}}
label4  = Allegiance
| label7 = {{{extralabel|}}}
data4 = {{{allegiance|}}}
data7 = {{{extradata|}}}
| header8 = {{{extraheader2|}}}
| label9 = {{{extralabel2|}}}
|  data9 = {{{extradata2|}}}


<!------------------- Conversions -------------------->
| label5  = Branch
| header10 =
|   data5  = {{{branch|}}}
   {{#ifexpr: ({{#if:{{{units1|}}}|1|0}} and {{#if:{{{inunits1|}}}|1|0}})
          or ({{#if:{{{units2|}}}|1|0}} and {{#if:{{{inunits2|}}}|1|0}})
          or ({{#if:{{{units3|}}}|1|0}} and {{#if:{{{inunits3|}}}|1|0}})
          or ({{#if:{{{units4|}}}|1|0}} and {{#if:{{{inunits4|}}}|1|0}})
          or ({{#if:{{{units5|}}}|1|0}} and {{#if:{{{inunits5|}}}|1|0}})
          or ({{#if:{{{units6|}}}|1|0}} and {{#if:{{{inunits6|}}}|1|0}})
  | Conversions
    <tr class="nowrap"><td>1 {{{symbol|{{lc:{{{name|{{SUBPAGENAME}}}}}}}}}} ''in ...''</td><td>''... is equal to ...''</td></tr>
  }}


| label12 = {{nbsp|3}}{{{units1|}}}
| label6  = Type
data12 = {{#ifexpr:({{#if:{{{units1|}}}|1|0}} and {{#if:{{{inunits1|}}}|1|0}}) |{{nbsp|3}}{{{inunits1|}}} }}
|   data6 = {{{type|}}}


| label13 = {{nbsp|3}}{{{units2|}}}
| label7  = Role
data13 = {{#ifexpr:({{#if:{{{units2|}}}|1|0}} and {{#if:{{{inunits2|}}}|1|0}}) |{{nbsp|3}}{{{inunits2|}}} }}
|   data7 = {{{role|}}}{{{specialization|}}}


| label14 = {{nbsp|3}}{{{units3|}}}
| label8  = Size
data14 = {{#ifexpr:({{#if:{{{units3|}}}|1|0}} and {{#if:{{{inunits3|}}}|1|0}}) |{{nbsp|3}}{{{inunits3|}}} }}
|   data8 = {{{size|}}}


| label15 = {{nbsp|3}}{{{units4|}}}
| label9  = Part&nbsp;of
data15 = {{#ifexpr:({{#if:{{{units4|}}}|1|0}} and {{#if:{{{inunits4|}}}|1|0}}) |{{nbsp|3}}{{{inunits4|}}} }}
|   data9 = {{{command_structure|}}}


| label16 = {{nbsp|3}}{{{units5|}}}
label10 = {{#if:{{{garrison_label|}}}|{{{garrison_label|}}}|Garrison/HQ}}
data16 = {{#ifexpr:({{#if:{{{units5|}}}|1|0}} and {{#if:{{{inunits5|}}}|1|0}}) |{{nbsp|3}}{{{inunits5|}}} }}
|   data10 = {{{garrison|}}}


| label17 = {{nbsp|3}}{{{units6|}}}
label11 = Nickname(s)
data17 = {{#ifexpr:({{#if:{{{units6|}}}|1|0}} and {{#if:{{{inunits6|}}}|1|0}}) |{{nbsp|3}}{{{inunits6|}}} }}
|   data11 = {{{nickname|}}}


<!------------- Conversions (imperial) --------------->
| label12 = Patron
| header20 =  
|   data12 = {{{patron|}}}
   {{#ifexpr: ({{#if:{{{units_imp1|}}}|1|0}} and {{#if:{{{inunits_imp1|}}}|1|0}})
          or ({{#if:{{{units_imp2|}}}|1|0}} and {{#if:{{{inunits_imp2|}}}|1|0}})
          or ({{#if:{{{units_imp3|}}}|1|0}} and {{#if:{{{inunits_imp3|}}}|1|0}})
          or ({{#if:{{{units_imp4|}}}|1|0}} and {{#if:{{{inunits_imp4|}}}|1|0}})
          or ({{#if:{{{units_imp5|}}}|1|0}} and {{#if:{{{inunits_imp5|}}}|1|0}})
          or ({{#if:{{{units_imp6|}}}|1|0}} and {{#if:{{{inunits_imp6|}}}|1|0}})
  | Conversions (imperial)
    <tr class="nowrap"><td>''1 imp {{{symbol|unit}}} in ...''</td><td>''... is equal to ...''</td></tr>
  }}


| label22 = {{nbsp|3}}{{{units_imp1|}}}
label13 = Motto(s)
data22 = {{#ifexpr:({{#if:{{{units_imp1|}}}|1|0}} and {{#if:{{{inunits_imp1|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp1|}}} }}
|   data13 = {{{motto|}}}


| label23 = {{nbsp|3}}{{{units_imp2|}}}
| label14 = {{if empty|{{{colors_label|}}}|{{{colours_label|}}}|{{#if:{{{colours|}}}|Colours|Colors}}}}
| data23 = {{#ifexpr:({{#if:{{{units_imp2|}}}|1|0}} and {{#if:{{{inunits_imp2|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp2|}}} }}
|  data14 = {{#if:{{{colours|}}}|{{{colours|}}}|{{{colors|}}}}}


| label24 = {{nbsp|3}}{{{units_imp3|}}}
| label15 = March
| data24 = {{#ifexpr:({{#if:{{{units_imp3|}}}|1|0}} and {{#if:{{{inunits_imp3|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp3|}}} }}
|   data15 = {{{march|}}}


| label25 = {{nbsp|3}}{{{units_imp4|}}}
label16 = Mascot(s)
data25 = {{#ifexpr:({{#if:{{{units_imp4|}}}|1|0}} and {{#if:{{{inunits_imp4|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp4|}}} }}
|   data16 = {{{mascot|}}}


| label26 = {{nbsp|3}}{{{units_imp5|}}}
| label17 = Anniversaries
| data26 = {{#ifexpr:({{#if:{{{units_imp5|}}}|1|0}} and {{#if:{{{inunits_imp5|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp5|}}} }}
|   data17 = {{{anniversaries|}}}


| label27 = {{nbsp|3}}{{{units_imp6|}}}
label18 = {{#if:{{{equipment_label|}}}|{{{equipment_label|}}}|Equipment}}
data27 = {{#ifexpr:({{#if:{{{units_imp6|}}}|1|0}} and {{#if:{{{inunits_imp6|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp6|}}} }}
|   data18 = {{{equipment|}}}


<!---------------- Conversions (US) ------------------>
| label19 = {{#if:{{{battles_label|}}}|{{{battles_label|}}}|Engagements}}
| header30 =  
|   data19 = {{{battles|}}}
  {{#ifexpr: ({{#if:{{{units_us1|}}}|1|0}} and {{#if:{{{inunits_us1|}}}|1|0}})
          or ({{#if:{{{units_us2|}}}|1|0}} and {{#if:{{{inunits_us2|}}}|1|0}})
          or ({{#if:{{{units_us3|}}}|1|0}} and {{#if:{{{inunits_us3|}}}|1|0}})
          or ({{#if:{{{units_us4|}}}|1|0}} and {{#if:{{{inunits_us4|}}}|1|0}})
          or ({{#if:{{{units_us5|}}}|1|0}} and {{#if:{{{inunits_us5|}}}|1|0}})
          or ({{#if:{{{units_us6|}}}|1|0}} and {{#if:{{{inunits_us6|}}}|1|0}})
  | Conversions (US)
    <tr class="nowrap"><td>''1 US {{{symbol|unit}}} in ...''</td><td>''... is equal to ...''</td></tr>
  }}


| label32 = {{nbsp|3}}{{{units_us1|}}}
| label20 = Decorations
| data32 = {{#ifexpr:({{#if:{{{units_us1|}}}|1|0}} and {{#if:{{{inunits_us1|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us1|}}} }}
|   data20 = {{{decorations|}}}


| label33 = {{nbsp|3}}{{{units_us2|}}}
label21 = {{#if:{{{battle_honours_label|}}}|{{{battle_honours_label|}}}|[[Battle honour|Battle&nbsp;honour]]s}}
data33 = {{#ifexpr:({{#if:{{{units_us2|}}}|1|0}} and {{#if:{{{inunits_us2|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us2|}}} }}
|   data21 = {{{battle_honours|}}}


| label34 = {{nbsp|3}}{{{units_us3|}}}
| label22 = Flying hours
| data34 = {{#ifexpr:({{#if:{{{units_us3|}}}|1|0}} and {{#if:{{{inunits_us3|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us3|}}} }}
|   data22 = {{{flying_hours|}}}


| label35 = {{nbsp|3}}{{{units_us4|}}}
| label23 = Website
| data35 = {{#ifexpr:({{#if:{{{units_us4|}}}|1|0}} and {{#if:{{{inunits_us4|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us4|}}} }}
|   data23 = {{{website|}}}


| label36 = {{nbsp|3}}{{{units_us5|}}}
| header24 = {{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}}{{{current_commander|}}}{{{ceremonial_chief|}}}{{{colonel_of_the_regiment|}}}{{{notable_commanders|}}} | Commanders }}
|  data36 = {{#ifexpr:({{#if:{{{units_us5|}}}|1|0}} and {{#if:{{{inunits_us5|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us5|}}} }}


| label37 = {{nbsp|3}}{{{units_us6|}}}
| label25 = {{#if:{{{commander1_label|}}}|{{{commander1_label|}}}|{{#if:{{{current_commander_label|}}}|{{{current_commander_label|}}}|Current<br>commander}}}}
| data37 = {{#ifexpr:({{#if:{{{units_us6|}}}|1|0}} and {{#if:{{{inunits_us6|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us6|}}} }}
|  data25 = {{#if:{{{commander1|}}}|{{{commander1|}}}|{{{current_commander|}}}}}


}}<!--
|  label26 = {{#if:{{{commander2_label|}}}|{{{commander2_label|}}}|{{#if:{{{ceremonial_chief_label|}}}|{{{ceremonial_chief_label|}}}|Ceremonial&nbsp;chief}}}}
|  data26 = {{#if:{{{commander2|}}}|{{{commander2|}}}|{{{ceremonial_chief|}}}}}


--><noinclude>{{documentation}}</noinclude>
|  label27 = {{#if:{{{commander3_label|}}}|{{{commander3_label|}}}|{{#if:{{{colonel_of_the_regiment_label|}}}|{{{colonel_of_the_regiment_label|}}}|Colonel&nbsp;of<br>the&nbsp;Regiment}}}}
|  data27 = {{#if:{{{commander3|}}}|{{{commander3|}}}|{{{colonel_of_the_regiment|}}}}}
 
|  label28 = {{#if:{{{commander4_label|}}}|{{{commander4_label|}}}|{{#if:{{{command_sergeant_major_label|}}}|{{{command_sergeant_major_label|}}}|Command Sergeant Major}}}}
|  data28 = {{#if:{{{commander4|}}}|{{{commander4|}}}|{{{command_sergeant_major|}}}}}
 
|  label29 = {{{commander5_label|Commander}}}
|  data29 = {{{commander5|}}}
 
|  label30 = {{{commander6_label|Commander}}}
|  data30 = {{{commander6|}}}
 
|  label31 = {{{commander7_label|Commander}}}
|  data31 = {{{commander7|}}}
 
|  label32 = {{{commander8_label|Commander}}}
|  data32 = {{{commander8|}}}
 
|  label33 = {{{commander9_label|Commander}}}
|  data33 = {{{commander9|}}}
 
|  label34 = Notable<br>commanders
|  data34 = {{{notable_commanders|}}}
 
| header35 = {{#if:{{{identification_symbol|}}}{{{identification_symbol_2|}}} | Insignia }}
 
| header36 = {{#ifeq: {{{identification_symbol_label|}}} | none | {{{identification_symbol|}}} | }}
|  label36 = {{#if:{{{identification_symbol_label|}}}|{{{identification_symbol_label|}}}|Identification<br>symbol}}
|  data36 = {{#ifeq: {{{identification_symbol_label|}}} | none | | {{{identification_symbol|}}} }}
 
|  label37 = {{#if:{{{identification_symbol_2_label|}}}|{{{identification_symbol_2_label|}}}|Identification<br>symbol}}
|  data37 = {{{identification_symbol_2|}}}
 
|  label38 = {{#if:{{{identification_symbol_3_label|}}}|{{{identification_symbol_3_label|}}}|Identification<br>symbol}}
|  data38 = {{{identification_symbol_3|}}}
 
|  label39 = {{#if:{{{identification_symbol_4_label|}}}|{{{identification_symbol_4_label|}}}|Identification<br>symbol}}
|  data39 = {{{identification_symbol_4|}}}
 
|  label40 = {{#if:{{{identification_symbol_5_label|}}}|{{{identification_symbol_5_label|}}}|Identification<br>symbol}}
|  data40 = {{{identification_symbol_5|}}}
 
|  label41 = {{#if:{{{identification_symbol_6_label|}}}|{{{identification_symbol_6_label|}}}|Identification<br>symbol}}
|  data41 = {{{identification_symbol_6|}}}
 
| header42 = {{#if:{{{aircraft_attack|}}}{{{aircraft_bomber|}}}{{{aircraft_electronic|}}}{{{aircraft_fighter|}}}{{{aircraft_interceptor|}}}{{{aircraft_patrol|}}}{{{aircraft_recon|}}}{{{aircraft_trainer|}}}{{{aircraft_transport|}}}{{{aircraft_tanker|}}}{{{aircraft_helicopter|}}}{{{aircraft_helicopter_attack|}}}{{{aircraft_helicopter_cargo|}}}{{{aircraft_helicopter_multirole|}}}{{{aircraft_helicopter_observation|}}}{{{aircraft_helicopter_trainer|}}}{{{aircraft_helicopter_utility|}}}{{{aircraft_general|}}} | Aircraft flown }}
 
|  label43 = [[Attack aircraft|Attack]]
|  data43 = {{{aircraft_attack|}}}
 
|  label44 = [[Bomber]]
|  data44 = {{{aircraft_bomber|}}}
 
|  label45 = [[Electronic warfare|Electronic<br>warfare]]
|  data45 = {{{aircraft_electronic|}}}
 
|  label46 = [[Fighter aircraft|Fighter]]
|  data46 = {{{aircraft_fighter|}}}
 
|  label47 = [[Helicopter]]
|  data47 = {{{aircraft_helicopter|}}}
 
|  label48 = [[Attack helicopter]]
|  data48 = {{{aircraft_helicopter_attack|}}}
 
|  label49 = [[Cargo helicopter]]
|  data49 = {{{aircraft_helicopter_cargo|}}}
 
|  label50 = [[Multirole helicopter]]
|  data50 = {{{aircraft_helicopter_multirole|}}}
 
|  label51 = [[Observation helicopter]]
|  data51 = {{{aircraft_helicopter_observation|}}}
 
|  label52 = [[Trainer helicopter]]
|  data52 = {{{aircraft_helicopter_trainer|}}}
 
|  label53 = [[Utility helicopter]]
|  data53 = {{{aircraft_helicopter_utility|}}}
 
|  label54 = [[Interceptor aircraft|Interceptor]]
|  data54 = {{{aircraft_interceptor|}}}
 
|  label55 = [[Patrol aircraft|Patrol]]
|  data55 = {{{aircraft_patrol|}}}
 
|  label56 = [[Surveillance aircraft|Reconnaissance]]
|  data56 = {{{aircraft_recon|}}}
 
|  label57 = [[Trainer (aircraft)|Trainer]]
|  data57 = {{{aircraft_trainer|}}}
 
|  label58 = [[Cargo aircraft|Transport]]
|  data58 = {{{aircraft_transport|}}}
 
|  label59 = [[Aerial refueling|Tanker]]
|  data59 = {{{aircraft_tanker|}}}
 
|  data60 = {{{aircraft_general|}}}
 
|  data61 = {{{misc|{{{module|}}}}}}
}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox military unit with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox military unit]] with unknown parameter "_VALUE_"|ignoreblank=y| aircraft_attack | aircraft_bomber | aircraft_electronic | aircraft_fighter | aircraft_general | aircraft_helicopter | aircraft_helicopter_attack | aircraft_helicopter_cargo | aircraft_helicopter_multirole | aircraft_helicopter_observation | aircraft_helicopter_trainer | aircraft_helicopter_utility | aircraft_interceptor | aircraft_patrol | aircraft_recon | aircraft_tanker | aircraft_trainer | aircraft_transport | allegiance | alt | anniversaries | battle_honours | battle_honours_label | battles | battles_label | branch | caption | ceremonial_chief | ceremonial_chief_label | colonel_of_the_regiment | colonel_of_the_regiment_label | colors | colors_label | colours | colours_label | command_sergeant_major | command_sergeant_major_label | command_structure | commander1 | commander1_label | commander2 | commander2_label | commander3 | commander3_label | commander4 | commander4_label | commander5 | commander5_label | commander6 | commander6_label | commander7 | commander7_label | commander8 | commander8_label | commander9 | commander9_label | countries | country | current_commander | current_commander_label | dates | decorations | disbanded | end_date | equipment | equipment_label | flying_hours | garrison | garrison_label | identification_symbol | identification_symbol_2 | identification_symbol_2_label | identification_symbol_3 | identification_symbol_3_label | identification_symbol_4 | identification_symbol_4_label | identification_symbol_5 | identification_symbol_5_label | identification_symbol_6 | identification_symbol_6_label | identification_symbol_label | image | image_size | march | mascot | misc | module | motto | native_name | nickname | notable_commanders | patron | role | size | specialization | start_date | type | unit_name | website }}<noinclude>
{{Documentation}}
</noinclude>