Jump to content

Template:Infobox military unit and Template:Infobox military unit/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
add auto short description (displays only when short description is not provided by the article)
 
Add unit number
 
Line 1: Line 1:
<includeonly>{{Infobox
{{Infobox
| bodystyle = {{WPMILHIST Infobox style|main_box_raw}}
| bodystyle = {{WPMILHIST Infobox style|main_box_raw}}
| abovestyle = {{WPMILHIST Infobox style|header_raw}}
| abovestyle = {{WPMILHIST Infobox style|header_raw}}
Line 9: Line 9:
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| caption = {{{caption|}}}
| caption = {{{caption|}}}

| image2 = {{#if:{{{image_coat|}}}{{{image_symbol|}}}{{{image_flag|}}}{{{image_flag2|}}}
|{{infobox country/imagetable
|image1a = {{#invoke:InfoboxImage|InfoboxImage|suppressplaceholder={{main other||no}}|image={{{image_flag|}}}|sizedefault=125px|size={{{flag_width|{{{flag_size|}}}}}}|maxsize=250|border={{yesno |{{{flag_border|}}}|yes=yes|blank=yes}}|alt={{{alt_flag|{{{flag_alt|}}}}}}|title=Flag of {{{name|{{{name|{{{linking_name|{{PAGENAME}}}}}}}}}}}}}
|image1b = {{#invoke:InfoboxImage|InfoboxImage|suppressplaceholder={{main other||no}}|image={{{image_flag2|}}}|sizedefault=125px|size={{{flag_width|}}}|maxsize=250|border={{yesno |{{{flag2_border|}}}|yes=yes|blank=yes}}|alt={{{alt_flag2|{{{flag_alt2|}}}}}}}}
|caption1= {{#ifexist:{{if empty |{{{flag_type_article|}}} |{{{flag|}}} | {{if empty |{{{flag_type|}}} |Flag}} of {{if empty |{{{linking_name|}}} |{{{name|}}} |{{{name|}}} |{{PAGENAME}} }} }} |[[{{if empty |{{{flag_type_article|}}} |{{{flag|}}} |{{if empty |{{{flag_type|}}} |Flag}} of {{if empty |{{{linking_name|}}} |{{{name|}}} |{{{name|}}} |{{PAGENAME}} }} }}|{{if empty |{{{flag_caption|}}} |{{{flag_type|}}} |Flag}}]] |{{if empty |{{{flag_caption|}}} |{{{flag_type|}}} |Flag}} }}
|image2 = {{#invoke:InfoboxImage|InfoboxImage|suppressplaceholder={{main other||no}}|image={{if empty|{{{image_coat|}}}|{{{image_symbol|}}}}} |size={{{symbol_width|{{{coa_size|}}}}}}|sizedefault=85px|alt={{#if:{{{image_coat|}}}|{{{alt_coat|{{{coat_alt|}}}}}}|{{{alt_symbol|}}}}}|title={{{symbol_type|Coat of arms}}} of {{{name|{{{name|{{{linking_name|{{PAGENAME}}}}}}}}}}}}}
|caption2= {{#ifexist:{{if empty |{{{symbol_type_article|}}} |{{{symbol|}}} |{{if empty |{{{symbol_type|}}} |Coat of arms}} of {{if empty |{{{linking_name|}}} |{{{name|}}} |{{{name|}}} |{{PAGENAME}} }} }} |[[{{if empty |{{{symbol_type_article|}}} |{{{symbol|}}} |{{if empty |{{{symbol_type|}}} |Coat of arms}} of {{if empty |{{{linking_name|}}} |{{{name|}}} |{{{name|}}} |{{PAGENAME}} }} }} | {{if empty |{{{symbol_type|}}} |Coat of arms}}]] |{{if empty |{{{symbol_type|}}} |Coat of arms}} }}
}} }}


| headerstyle = {{WPMILHIST Infobox style|header_raw}}
| headerstyle = {{WPMILHIST Infobox style|header_raw}}
Line 16: Line 25:
| data1 = {{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}}–{{{end_date}}}|{{{start_date}}}}}|{{{dates|}}}}}
| data1 = {{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}}–{{{end_date}}}|{{{start_date}}}}}|{{{dates|}}}}}


| label2 = Disbanded
| label2 = {{#if:{{{country|}}}|Country|Countries}}
| data2 = {{{disbanded|}}}
| data2 = {{#if:{{{country|}}}|{{{country}}}|{{{countries|}}}}}


| label3 = {{#if:{{{country|}}}|Country|Countries}}
| label3 = Allegiance
| data3 = {{#if:{{{country|}}}|{{{country}}}|{{{countries|}}}}}
| data3 = {{{allegiance|}}}


| label4 = Allegiance
| label4 = Branch
| data4 = {{{allegiance|}}}
| data4 = {{{branch|}}}


| label5 = Branch
| label5 = Type
| data5 = {{{branch|}}}
| data5 = {{{type|}}}


| label6 = Type
| label6 = Role
| data6 = {{{type|}}}
| data6 = {{{role|}}}{{{specialization|}}}


| label7 = Role
| label7 = Size
| data7 = {{{role|}}}{{{specialization|}}}
| data7 = {{{size|}}}


| label8 = Size
| label8 = Part&nbsp;of
| data8 = {{{size|}}}
| data8 = {{{command_structure|}}}

| label9 = Part&nbsp;of
| data9 = {{{command_structure|}}}


| label10 = {{#if:{{{garrison_label|}}}|{{{garrison_label|}}}|Garrison/HQ}}
| label10 = {{#if:{{{garrison_label|}}}|{{{garrison_label|}}}|Garrison/HQ}}
Line 76: Line 82:
| data21 = {{{battle_honours|}}}
| data21 = {{{battle_honours|}}}


| label22 = Flying hours
| label22 = Disbanded
| data22 = {{{flying_hours|}}}
| data22 = {{{disbanded|}}}

| label23 = Flying hours
| data23 = {{{flying_hours|}}}

| label24 = Website
| data24 = {{{website|}}}


| header25 = {{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}}{{{current_commander|}}}{{{ceremonial_chief|}}}{{{colonel_of_the_regiment|}}}{{{notable_commanders|}}} | Commanders }}
| label23 = Website
| data23 = {{{website|}}}


| header24 = {{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}}{{{current_commander|}}}{{{ceremonial_chief|}}}{{{colonel_of_the_regiment|}}}{{{notable_commanders|}}} | Commanders }}
| label26 = {{#if:{{{commander1_label|}}}|{{{commander1_label|}}}|{{#if:{{{current_commander_label|}}}|{{{current_commander_label|}}}|Current<br>commander}}}}
| data26 = {{#if:{{{commander1|}}}|{{{commander1|}}}|{{{current_commander|}}}}}


| label25 = {{#if:{{{commander1_label|}}}|{{{commander1_label|}}}|{{#if:{{{current_commander_label|}}}|{{{current_commander_label|}}}|Current<br>commander}}}}
| label27 = {{#if:{{{commander2_label|}}}|{{{commander2_label|}}}|{{#if:{{{ceremonial_chief_label|}}}|{{{ceremonial_chief_label|}}}|Ceremonial&nbsp;chief}}}}
| data25 = {{#if:{{{commander1|}}}|{{{commander1|}}}|{{{current_commander|}}}}}
| data27 = {{#if:{{{commander2|}}}|{{{commander2|}}}|{{{ceremonial_chief|}}}}}


| label26 = {{#if:{{{commander2_label|}}}|{{{commander2_label|}}}|{{#if:{{{ceremonial_chief_label|}}}|{{{ceremonial_chief_label|}}}|Ceremonial&nbsp;chief}}}}
| label28 = {{#if:{{{commander3_label|}}}|{{{commander3_label|}}}|{{#if:{{{colonel_of_the_regiment_label|}}}|{{{colonel_of_the_regiment_label|}}}|Colonel&nbsp;of<br>the&nbsp;Regiment}}}}
| data26 = {{#if:{{{commander2|}}}|{{{commander2|}}}|{{{ceremonial_chief|}}}}}
| data28 = {{#if:{{{commander3|}}}|{{{commander3|}}}|{{{colonel_of_the_regiment|}}}}}


| label27 = {{#if:{{{commander3_label|}}}|{{{commander3_label|}}}|{{#if:{{{colonel_of_the_regiment_label|}}}|{{{colonel_of_the_regiment_label|}}}|Colonel&nbsp;of<br>the&nbsp;Regiment}}}}
| label29 = {{#if:{{{commander4_label|}}}|{{{commander4_label|}}}|{{#if:{{{command_sergeant_major_label|}}}|{{{command_sergeant_major_label|}}}|Command Sergeant Major}}}}
| data27 = {{#if:{{{commander3|}}}|{{{commander3|}}}|{{{colonel_of_the_regiment|}}}}}
| data29 = {{#if:{{{commander4|}}}|{{{commander4|}}}|{{{command_sergeant_major|}}}}}


| label30 = {{{commander5_label|Commander}}}
| label28 = {{#if:{{{commander4_label|}}}|{{{commander4_label|}}}|{{#if:{{{command_sergeant_major_label|}}}|{{{command_sergeant_major_label|}}}|Command Sergeant Major}}}}
| data30 = {{{commander5|}}}
| data28 = {{#if:{{{commander4|}}}|{{{commander4|}}}|{{{command_sergeant_major|}}}}}


| label29 = {{{commander5_label|Commander}}}
| label31 = {{{commander6_label|Commander}}}
| data29 = {{{commander5|}}}
| data31 = {{{commander6|}}}


| label30 = {{{commander6_label|Commander}}}
| label32 = {{{commander7_label|Commander}}}
| data30 = {{{commander6|}}}
| data32 = {{{commander7|}}}


| label31 = {{{commander7_label|Commander}}}
| label33 = {{{commander8_label|Commander}}}
| data31 = {{{commander7|}}}
| data33 = {{{commander8|}}}


| label32 = {{{commander8_label|Commander}}}
| label34 = {{{commander9_label|Commander}}}
| data32 = {{{commander8|}}}
| data34 = {{{commander9|}}}


| label45 = Notable<br>commanders
| label33 = {{{commander9_label|Commander}}}
| data33 = {{{commander9|}}}
| data45 = {{{notable_commanders|}}}


| header46 = {{#if:{{{identification_symbol|}}}{{{identification_symbol_2|}}} | Insignia }}
| label34 = Notable<br>commanders
| data34 = {{{notable_commanders|}}}


| header35 = {{#if:{{{identification_symbol|}}}{{{identification_symbol_2|}}} | Insignia }}
| header47 = {{#ifeq: {{{identification_symbol_label|}}} | none | {{{identification_symbol|}}} | }}
| label47 = {{#if:{{{identification_symbol_label|}}}|{{{identification_symbol_label|}}}|Identification<br>symbol}}
| data47 = {{#ifeq: {{{identification_symbol_label|}}} | none | | {{{identification_symbol|}}} }}


| header36 = {{#ifeq: {{{identification_symbol_label|}}} | none | {{{identification_symbol|}}} | }}
| label48 = {{#if:{{{identification_symbol_2_label|}}}|{{{identification_symbol_2_label|}}}|Identification<br>symbol}}
| data48 = {{{identification_symbol_2|}}}
| 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}}
| label49 = {{#if:{{{identification_symbol_3_label|}}}|{{{identification_symbol_3_label|}}}|Identification<br>symbol}}
| data37 = {{{identification_symbol_2|}}}
| data49 = {{{identification_symbol_3|}}}


| label38 = {{#if:{{{identification_symbol_3_label|}}}|{{{identification_symbol_3_label|}}}|Identification<br>symbol}}
| label50 = {{#if:{{{identification_symbol_4_label|}}}|{{{identification_symbol_4_label|}}}|Identification<br>symbol}}
| data38 = {{{identification_symbol_3|}}}
| data50 = {{{identification_symbol_4|}}}


| label39 = {{#if:{{{identification_symbol_4_label|}}}|{{{identification_symbol_4_label|}}}|Identification<br>symbol}}
| label51 = {{#if:{{{identification_symbol_5_label|}}}|{{{identification_symbol_5_label|}}}|Identification<br>symbol}}
| data39 = {{{identification_symbol_4|}}}
| data51 = {{{identification_symbol_5|}}}


| label40 = {{#if:{{{identification_symbol_5_label|}}}|{{{identification_symbol_5_label|}}}|Identification<br>symbol}}
| label52 = {{#if:{{{identification_symbol_6_label|}}}|{{{identification_symbol_6_label|}}}|Identification<br>symbol}}
| data40 = {{{identification_symbol_5|}}}
| data52 = {{{identification_symbol_6|}}}


| header53 = {{#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 }}
| label41 = {{#if:{{{identification_symbol_6_label|}}}|{{{identification_symbol_6_label|}}}|Identification<br>symbol}}
| data41 = {{{identification_symbol_6|}}}


| label54 = [[Attack aircraft|Attack]]
| 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 }}
| data54 = {{{aircraft_attack|}}}


| label43 = [[Attack aircraft|Attack]]
| label55 = [[Bomber]]
| data43 = {{{aircraft_attack|}}}
| data55 = {{{aircraft_bomber|}}}


| label56 = [[Electronic warfare|Electronic<br>warfare]]
| label44 = [[Bomber]]
| data44 = {{{aircraft_bomber|}}}
| data56 = {{{aircraft_electronic|}}}


| label45 = [[Electronic warfare|Electronic<br>warfare]]
| label57 = [[Fighter aircraft|Fighter]]
| data45 = {{{aircraft_electronic|}}}
| data57 = {{{aircraft_fighter|}}}


| label46 = [[Fighter aircraft|Fighter]]
| label58 = [[Helicopter]]
| data46 = {{{aircraft_fighter|}}}
| data58 = {{{aircraft_helicopter|}}}


| label47 = [[Helicopter]]
| label59 = [[Attack helicopter]]
| data47 = {{{aircraft_helicopter|}}}
| data59 = {{{aircraft_helicopter_attack|}}}


| label48 = [[Attack helicopter]]
| label60 = [[Cargo helicopter]]
| data48 = {{{aircraft_helicopter_attack|}}}
| data60 = {{{aircraft_helicopter_cargo|}}}


| label49 = [[Cargo helicopter]]
| label61 = [[Multirole helicopter]]
| data49 = {{{aircraft_helicopter_cargo|}}}
| data61 = {{{aircraft_helicopter_multirole|}}}


| label50 = [[Multirole helicopter]]
| label62 = [[Observation helicopter]]
| data50 = {{{aircraft_helicopter_multirole|}}}
| data62 = {{{aircraft_helicopter_observation|}}}


| label51 = [[Observation helicopter]]
| label63 = [[Trainer helicopter]]
| data51 = {{{aircraft_helicopter_observation|}}}
| data63 = {{{aircraft_helicopter_trainer|}}}


| label52 = [[Trainer helicopter]]
| label64 = [[Utility helicopter]]
| data52 = {{{aircraft_helicopter_trainer|}}}
| data64 = {{{aircraft_helicopter_utility|}}}


| label53 = [[Utility helicopter]]
| label65 = [[Interceptor aircraft|Interceptor]]
| data53 = {{{aircraft_helicopter_utility|}}}
| data65 = {{{aircraft_interceptor|}}}


| label54 = [[Interceptor aircraft|Interceptor]]
| label66 = [[Patrol aircraft|Patrol]]
| data54 = {{{aircraft_interceptor|}}}
| data66 = {{{aircraft_patrol|}}}


| label55 = [[Patrol aircraft|Patrol]]
| label67 = [[Surveillance aircraft|Reconnaissance]]
| data55 = {{{aircraft_patrol|}}}
| data67 = {{{aircraft_recon|}}}


| label56 = [[Surveillance aircraft|Reconnaissance]]
| label68 = [[Trainer (aircraft)|Trainer]]
| data56 = {{{aircraft_recon|}}}
| data68 = {{{aircraft_trainer|}}}


| label57 = [[Trainer (aircraft)|Trainer]]
| label69 = [[Cargo aircraft|Transport]]
| data57 = {{{aircraft_trainer|}}}
| data69 = {{{aircraft_transport|}}}


| label58 = [[Cargo aircraft|Transport]]
| label70 = [[Aerial refueling|Tanker]]
| data58 = {{{aircraft_transport|}}}
| data70 = {{{aircraft_tanker|}}}


| data71 = {{{aircraft_general|}}}
| label59 = [[Aerial refueling|Tanker]]
| data59 = {{{aircraft_tanker|}}}


| data60 = {{{aircraft_general|}}}
| data72 = {{{misc|{{{module|}}}}}}
| label73 = [[{{{unitnumber_label|Military unit number}}}]]
| data73 = {{{unitnumber|}}}
| below = {{align|left|{{#if: {{{prev|}}}|← {{auto link|{{{prev|}}} }} }}}}{{align|right|{{#if: {{{next|}}}|{{auto link|{{{next|}}}}} → }}}}


| belowclass = hlist noprint nowrap
| data61 = {{{misc|{{{module|}}}}}}
| belowstyle = border-top: 1px solid #aaa; padding-top: 3px;
}}</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 }}<includeonly>{{short description|Military unit|2=noreplace}}</includeonly><noinclude>
}}<noinclude>
{{Documentation}}
{{documentation}}
</noinclude>
</noinclude>