Template:Infobox military unit: Difference between revisions

Jump to navigation Jump to search
old>Garimidia
No edit summary
 
No edit summary
Line 1: Line 1:
<includeonly>{| {{WPMILHIST Infobox style|main_box|vcard}}
<includeonly>{{Infobox
|-
| bodystyle      = {{WPMILHIST Infobox style|main_box_raw}}
! class="fn org" colspan="2" {{WPMILHIST Infobox style|header_bar}} | {{{unit_name|{{PAGENAME}}}}}
| abovestyle    = {{WPMILHIST Infobox style|header_raw}}
|-
| subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}}
{{#if:{{{image|}}} |
| above          = {{{unit_name|{{PAGENAMEBASE}}}}}
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image|}}}<br/>{{{caption|}}}
| subheader      = {{{native_name|}}}
}}
 
|-
|   imagestyle  = {{WPMILHIST Infobox style|image_box_raw}}
! style="padding-right: 1em;" | {{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|Active|Founded}}|Active}}
|  image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| {{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}}–{{{end_date}}}|{{{start_date}}}}}|{{{dates|}}}}}
| caption        = {{{caption|}}}
|- class="adr"
 
{{#if:{{{country|}}} |
| headerstyle    = {{WPMILHIST Infobox style|header_raw}}
! style="padding-right: 1em;" {{!}} Country
|  labelstyle    = padding-right: 1em;
{{!}} <span class="country-name">{{{country|}}}</span>
 
}}
| label1  = {{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|Active|Founded}}|Active}}
|-
|   data1  = {{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}}–{{{end_date}}}|{{{start_date}}}}}|{{{dates|}}}}}
{{#if:{{{allegiance|}}} |
 
! style="padding-right: 1em;" {{!}} Allegiance
| label2 = Disbanded
{{!}} {{{allegiance|}}}
|  data2 = {{{disbanded|}}}
}}
 
|-
| label3  = {{#if:{{{country|}}}|Country|Countries}}
{{#if:{{{branch|}}} |
|  data3  = {{#if:{{{country|}}}|{{{country}}}|{{{countries|}}}}}
! style="padding-right: 1em;" {{!}} Branch
 
{{!}} {{{branch|}}}
| label4  = Allegiance
}}
|  data4  = {{{allegiance|}}}
|-
 
{{#if:{{{type|}}} |
|  label5  = Branch
! style="padding-right: 1em;" {{!}} Type
|  data5  = {{{branch|}}}
{{!}} {{{type|}}}
 
}}
|  label6  = Type
|-
|  data6  = {{{type|}}}
{{#if:{{{role|}}}{{{specialization|}}}|
 
! style="padding-right: 1em;" {{!}} Role
| label7  = Role
{{!}} {{{role|}}}{{{specialization|}}}
|  data7  = {{{role|}}}{{{specialization|}}}
}}
 
|-
| label8  = Size
{{#if:{{{size|}}} |
|  data8  = {{{size|}}}
! style="padding-right: 1em;" {{!}} Size
 
{{!}} {{{size|}}}
| label9  = Part&nbsp;of
}}
|  data9  = {{{command_structure|}}}
|-
 
{{#if:{{{command_structure|}}} |
| label10 = {{#if:{{{garrison_label|}}}|{{{garrison_label|}}}|Garrison/HQ}}
! style="padding-right: 1em;" {{!}} Part&nbsp;of
|  data10 = {{{garrison|}}}
{{!}} {{{command_structure|}}}
 
}}
|  label11 = Nickname(s)
|-
|  data11 = {{{nickname|}}}
{{#if:{{{garrison|}}} |
 
! style="padding-right: 1em;" {{!}} {{#if:{{{garrison_label|}}}|{{{garrison_label|}}}|Garrison/HQ}}
| label12 = Patron
{{!}} <span class="label">{{{garrison|}}}</span>
|  data12 = {{{patron|}}}
}}
 
|-
| label13 = Motto(s)
{{#if:{{{nickname|}}} |
|  data13 = {{{motto|}}}
! style="padding-right: 1em;" {{!}} Nickname
 
{{!}} <span class="nickname">{{{nickname|}}}</span>
|  label14 = {{ifempty|{{{colors_label|}}}|{{{colours_label|}}}|{{#if:{{{colours|}}}|Colours|Colors}}}}
}}
|  data14 = {{#if:{{{colours|}}}|{{{colours|}}}|{{{colors|}}}}}
|-
 
{{#if:{{{patron|}}} |
| label15 = March
! style="padding-right: 1em;" {{!}} Patron
|  data15 = {{{march|}}}
{{!}} {{{patron|}}}
 
}}
|  label16 = Mascot(s)
|-
|  data16 = {{{mascot|}}}
{{#if:{{{motto|}}} |
 
! style="padding-right: 1em;" {{!}} Motto
| label17 = Anniversaries
{{!}} {{{motto|}}}
|  data17 = {{{anniversaries|}}}
}}
 
|-
| label18 = {{#if:{{{equipment_label|}}}|{{{equipment_label|}}}|Equipment}}
{{#if:{{{colors|}}} |
|  data18 = {{{equipment|}}}
! style="padding-right: 1em;" {{!}} {{#if:{{{colors_label|}}}|{{{colors_label|}}}|Colors}}
 
{{!}} {{{colors|}}}
| label19 = {{#if:{{{battles_label|}}}|{{{battles_label|}}}|Engagements}}
}}
|  data19 = {{{battles|}}}
|-
 
{{#if:{{{march|}}} |
| label20 = Decorations
! style="padding-right: 1em;" {{!}} March
|  data20 = {{{decorations|}}}
{{!}} {{{march|}}}
 
}}
| label21 = {{#if:{{{battle_honours_label|}}}|{{{battle_honours_label|}}}|[[Battle honour|Battle&nbsp;honour]]s}}
|-
|  data21 = {{{battle_honours|}}}
{{#if:{{{mascot|}}} |
 
! style="padding-right: 1em;" {{!}} Mascot
| label22 = Flying hours
{{!}} {{{mascot|}}}
|  data22 = {{{flying_hours|}}}
}}
 
|-
|  label23 = Website
{{#if:{{{anniversaries|}}} |
|  data23 = {{{website|}}}
! style="padding-right: 1em;" {{!}} Anniversaries
 
{{!}} {{{anniversaries|}}}
| header24 = {{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}}{{{current_commander|}}}{{{ceremonial_chief|}}}{{{colonel_of_the_regiment|}}}{{{notable_commanders|}}} | Commanders }}
}}
 
|-
| label25 = {{#if:{{{commander1_label|}}}|{{{commander1_label|}}}|{{#if:{{{current_commander_label|}}}|{{{current_commander_label|}}}|Current<br>commander}}}}
{{#if:{{{equipment|}}} |
|  data25 = {{#if:{{{commander1|}}}|{{{commander1|}}}|{{{current_commander|}}}}}
! style="padding-right: 1em;" {{!}} {{#if:{{{equipment_label|}}}|{{{equipment_label|}}}|Equipment}}
 
{{!}} {{{equipment|}}}
| label26 = {{#if:{{{commander2_label|}}}|{{{commander2_label|}}}|{{#if:{{{ceremonial_chief_label|}}}|{{{ceremonial_chief_label|}}}|Ceremonial&nbsp;chief}}}}
}}
|  data26 = {{#if:{{{commander2|}}}|{{{commander2|}}}|{{{ceremonial_chief|}}}}}
|-
 
{{#if:{{{battles|}}} |
| label27 = {{#if:{{{commander3_label|}}}|{{{commander3_label|}}}|{{#if:{{{colonel_of_the_regiment_label|}}}|{{{colonel_of_the_regiment_label|}}}|Colonel&nbsp;of<br>the&nbsp;Regiment}}}}
! style="padding-right: 1em;" {{!}} {{#if:{{{battles_label|}}}|{{{battles_label|}}}|Engagements}}
|  data27 = {{#if:{{{commander3|}}}|{{{commander3|}}}|{{{colonel_of_the_regiment|}}}}}
{{!}} {{{battles|}}}
 
}}
|  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|}}}}}
{{#if:{{{decorations|}}} |
 
! style="padding-right: 1em;" {{!}} Decorations
|  label29 = {{{commander5_label|Commander}}}
{{!}} {{{decorations|}}}
|  data29 = {{{commander5|}}}
}}
 
|-
| label30 = {{{commander6_label|Commander}}}
{{#if:{{{battle_honours|}}} |
|   data30 = {{{commander6|}}}
! style="padding-right: 1em;" {{!}} {{#if:{{{battle_honours_label|}}}|{{{battle_honours_label|}}}|[[Battle honour|Battle&nbsp;honour]]s}}
 
{{!}} {{{battle_honours|}}}
|  label31 = {{{commander7_label|Commander}}}
}}
|  data31 = {{{commander7|}}}
|-
 
{{#if:{{{disbanded|}}}|
| label32 = {{{commander8_label|Commander}}}
! style="padding-right: 1em;" {{!}} Disbanded
|   data32 = {{{commander8|}}}
{{!}} {{{disbanded|}}}
 
}}
|  label33 = {{{commander9_label|Commander}}}
|-
|  data33 = {{{commander9|}}}
{{#if:{{{flying_hours|}}}|
 
! style="padding-right: 1em;" {{!}} Flying hours
| label34 = Notable<br>commanders
{{!}} {{{flying_hours|}}}
|  data34 = {{{notable_commanders|}}}
}}
 
|-
| header35 = {{#if:{{{identification_symbol|}}}{{{identification_symbol_2|}}} | Insignia }}
{{#if:{{{website|}}} |
 
! style="padding-right: 1em;" {{!}} Website
| header36 = {{#ifeq: {{{identification_symbol_label|}}} | none | {{{identification_symbol|}}} | }}
{{!}} {{{website|}}}
|  label36 = {{#if:{{{identification_symbol_label|}}}|{{{identification_symbol_label|}}}|Identification<br>symbol}}
}}
|  data36 = {{#ifeq: {{{identification_symbol_label|}}} | none | | {{{identification_symbol|}}} }}
|-
 
{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}}{{{current_commander|}}}{{{ceremonial_chief|}}}{{{colonel_of_the_regiment|}}}{{{notable_commanders|}}} |
| label37 = {{#if:{{{identification_symbol_2_label|}}}|{{{identification_symbol_2_label|}}}|Identification<br>symbol}}
! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Commanders
|   data37 = {{{identification_symbol_2|}}}
}}
 
|-
| label38 = {{#if:{{{identification_symbol_3_label|}}}|{{{identification_symbol_3_label|}}}|Identification<br>symbol}}
{{#if:{{{commander1|}}}{{{current_commander|}}} |
|  data38 = {{{identification_symbol_3|}}}
! style="padding-right: 1em;" {{!}} {{#if:{{{commander1_label|}}}|{{{commander1_label|}}}|{{#if:{{{current_commander_label|}}}|{{{current_commander_label|}}}|Current<br>commander}}}}
 
{{!}} {{#if:{{{commander1|}}}|{{{commander1|}}}|{{{current_commander|}}}}}
|  label39 = {{#if:{{{identification_symbol_4_label|}}}|{{{identification_symbol_4_label|}}}|Identification<br>symbol}}
}}
|  data39 = {{{identification_symbol_4|}}}
|-
 
{{#if:{{{commander2|}}}{{{ceremonial_chief|}}} |
| label40 = {{#if:{{{identification_symbol_5_label|}}}|{{{identification_symbol_5_label|}}}|Identification<br>symbol}}
! style="padding-right: 1em;" {{!}} {{#if:{{{commander2_label|}}}|{{{commander2_label|}}}|{{#if:{{{ceremonial_chief_label|}}}|{{{ceremonial_chief_label|}}}|Ceremonial&nbsp;chief}}}}
|  data40 = {{{identification_symbol_5|}}}
{{!}} {{#if:{{{commander2|}}}|{{{commander2|}}}|{{{ceremonial_chief|}}}}}
 
}}
|  label41 = {{#if:{{{identification_symbol_6_label|}}}|{{{identification_symbol_6_label|}}}|Identification<br>symbol}}
|-
|   data41 = {{{identification_symbol_6|}}}
{{#if:{{{commander3|}}}{{{colonel_of_the_regiment|}}} |
 
! style="padding-right: 1em;" {{!}} {{#if:{{{commander3_label|}}}|{{{commander3_label|}}}|{{#if:{{{colonel_of_the_regiment_label|}}}|{{{colonel_of_the_regiment_label|}}}|Colonel&nbsp;of<br>the&nbsp;Regiment}}}}
| 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 }}
{{!}} {{#if:{{{commander3|}}}|{{{commander3|}}}|{{{colonel_of_the_regiment|}}}}}
 
}}
| label43 = [[Attack aircraft|Attack]]
|-
|  data43 = {{{aircraft_attack|}}}
{{#if:{{{commander4|}}}{{{command_sergeant_major|}}} |
 
! style="padding-right: 1em;" {{!}} {{#if:{{{commander4_label|}}}|{{{commander4_label|}}}|{{#if:{{{command_sergeant_major_label|}}}|{{{command_sergeant_major_label|}}}|Command Sergeant Major}}}}
|  label44 = [[Bomber]]
{{!}} {{#if:{{{commander4|}}}|{{{commander4|}}}|{{{command_sergeant_major|}}}}}
|  data44 = {{{aircraft_bomber|}}}
}}
 
|-
| label45 = [[Electronic warfare|Electronic<br>warfare]]
{{#if:{{{notable_commanders|}}} |
|  data45 = {{{aircraft_electronic|}}}
! style="padding-right: 1em;" {{!}} Notable<br>commanders
 
{{!}} {{{notable_commanders|}}}
| label46 = [[Fighter aircraft|Fighter]]
}}
|  data46 = {{{aircraft_fighter|}}}
|-
 
{{#if:{{{identification_symbol|}}}{{{identification_symbol_2|}}} |
|  label47 = [[Helicopter]]
! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Insignia
|   data47 = {{{aircraft_helicopter|}}}
}}
 
|-
| label48 = [[Attack helicopter]]
{{#if:{{{identification_symbol|}}} |
|  data48 = {{{aircraft_helicopter_attack|}}}
{{#ifeq:{{{identification_symbol_label|}}}|none|
 
{{!}} colspan="2" style="text-align: center;" {{!}} {{{identification_symbol|}}} |
| label49 = [[Cargo helicopter]]
! style="padding-right: 1em;" {{!}} {{#if:{{{identification_symbol_label|}}}|{{{identification_symbol_label|}}}|Identification<br>symbol}}
|  data49 = {{{aircraft_helicopter_cargo|}}}
{{!}} {{{identification_symbol|}}}
 
}}
|  label50 = [[Multirole helicopter]]
}}
|  data50 = {{{aircraft_helicopter_multirole|}}}
|-
 
{{#if:{{{identification_symbol_2|}}} |
|  label51 = [[Observation helicopter]]
! style="padding-right: 1em;" {{!}} {{#if:{{{identification_symbol_2_label|}}}|{{{identification_symbol_2_label|}}}|Identification<br>symbol}}
|   data51 = {{{aircraft_helicopter_observation|}}}
{{!}} {{{identification_symbol_2|}}}
 
}}
| label52 = [[Trainer helicopter]]
|-
|  data52 = {{{aircraft_helicopter_trainer|}}}
{{#if:{{{identification_symbol_3|}}} |
 
! style="padding-right: 1em;" {{!}} {{#if:{{{identification_symbol_3_label|}}}|{{{identification_symbol_3_label|}}}|Identification<br>symbol}}
| label53 = [[Utility helicopter]]
{{!}} {{{identification_symbol_3|}}}
|  data53 = {{{aircraft_helicopter_utility|}}}
}}
 
|-
| label54 = [[Interceptor aircraft|Interceptor]]
{{#if:{{{identification_symbol_4|}}} |
|  data54 = {{{aircraft_interceptor|}}}
! style="padding-right: 1em;" {{!}} {{#if:{{{identification_symbol_4_label|}}}|{{{identification_symbol_4_label|}}}|Identification<br>symbol}}
 
{{!}} {{{identification_symbol_4|}}}
| label55 = [[Patrol aircraft|Patrol]]
}}
|  data55 = {{{aircraft_patrol|}}}
|-
 
{{#if:{{{aircraft_attack|}}}{{{aircraft_bomber|}}}{{{aircraft_electronic|}}}{{{aircraft_fighter|}}}{{{aircraft_interceptor|}}}{{{aircraft_patrol|}}}{{{aircraft_recon|}}}{{{aircraft_trainer|}}}{{{aircraft_transport|}}}{{{aircraft_helicopter|}}}{{{aircraft_helicopter_attack|}}}{{{aircraft_helicopter_cargo|}}}{{{aircraft_helicopter_multirole|}}}{{{aircraft_helicopter_observation|}}}{{{aircraft_helicopter_trainer|}}}{{{aircraft_helicopter_utility|}}} |
|  label56 = [[Surveillance aircraft|Reconnaissance]]
! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Aircraft flown
|  data56 = {{{aircraft_recon|}}}
}}
 
|-
|  label57 = [[Trainer (aircraft)|Trainer]]
{{#if:{{{aircraft_attack|}}} |
|   data57 = {{{aircraft_trainer|}}}
! style="padding-right: 1em;" {{!}} {{wpl|Attack aircraft|Attack}}
 
{{!}} {{{aircraft_attack|}}}
|  label58 = [[Cargo aircraft|Transport]]
}}
|  data58 = {{{aircraft_transport|}}}
|-
 
{{#if:{{{aircraft_bomber|}}} |
| label59 = [[Aerial refueling|Tanker]]
! style="padding-right: 1em;" {{!}} {{wpl|Bomber}}
|  data59 = {{{aircraft_tanker|}}}
{{!}} {{{aircraft_bomber|}}}
 
}}
|   data60 = {{{aircraft_general|}}}
|-
 
{{#if:{{{aircraft_electronic|}}} |
|   data61 = {{{misc|{{{module|}}}}}}
! style="padding-right: 1em;" {{!}} {{wpl|Electronic warfare|Electronic<br>warfare}}
}}</includeonly><noinclude>
{{!}} {{{aircraft_electronic|}}}
}}
|-
{{#if:{{{aircraft_fighter|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Fighter aircraft|Fighter}}
{{!}} {{{aircraft_fighter|}}}
}}
|-
{{#if:{{{aircraft_helicopter|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Helicopter}}
{{!}} {{{aircraft_helicopter|}}}
}}
|-
{{#if:{{{aircraft_helicopter_attack|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Attack helicopter}}
{{!}} {{{aircraft_helicopter_attack|}}}
}}
|-
{{#if:{{{aircraft_helicopter_cargo|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Cargo helicopter}}
{{!}} {{{aircraft_helicopter_cargo|}}}
}}
|-
{{#if:{{{aircraft_helicopter_multirole|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Multirole helicopter}}
{{!}} {{{aircraft_helicopter_multirole|}}}
}}
|-
{{#if:{{{aircraft_helicopter_observation|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Observation helicopter}}
{{!}} {{{aircraft_helicopter_observation|}}}
}}
|-
{{#if:{{{aircraft_helicopter_trainer|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Trainer helicopter}}
{{!}} {{{aircraft_helicopter_trainer|}}}
}}
|-
{{#if:{{{aircraft_helicopter_utility|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Utility helicopter}}
{{!}} {{{aircraft_helicopter_utility|}}}
}}
|-
{{#if:{{{aircraft_interceptor|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Interceptor aircraft|Interceptor}}
{{!}} {{{aircraft_interceptor|}}}
}}
|-
{{#if:{{{aircraft_patrol|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Patrol aircraft|Patrol}}
{{!}} {{{aircraft_patrol|}}}
}}
|-
{{#if:{{{aircraft_recon|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Surveillance aircraft|Reconnaissance}}
{{!}} {{{aircraft_recon|}}}
}}
|-
{{#if:{{{aircraft_trainer|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Trainer (aircraft)|Trainer}}
{{!}} {{{aircraft_trainer|}}}
}}
|-
{{#if:{{{aircraft_transport|}}} |
! style="padding-right: 1em;" {{!}} {{wpl|Cargo aircraft|Transport}}
{{!}} {{{aircraft_transport|}}}
}}
|}</includeonly><noinclude>
{{pp-template}}
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 05:35, 22 September 2017