Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox military unit: Difference between revisions

Military unit
Content deleted Content added
add auto short description (displays only when short description is not provided by the article)
 
m Module has been renamed
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox
| child = {{if empty|{{{child|}}}|{{{embed|}}}}}

| 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}}
| subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}}
| subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}}
| above = {{{unit_name|{{PAGENAMEBASE}}}}}
| above = {{if empty|{{{unit_name|}}}|{{PAGENAMEBASE}}}}
| subheader = {{{native_name|}}}
| subheader = {{{native_name|}}}


| imagestyle = {{WPMILHIST Infobox style|image_box_raw}}
| imagestyle = {{WPMILHIST Infobox style|image_box_raw}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright=1|alt={{{alt|}}}}}
| caption = {{{caption|}}}
| caption = {{{caption|}}}


Line 20: Line 22:


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


| label4 = Allegiance
| label4 = Allegiance
Line 40: Line 42:
| data9 = {{{command_structure|}}}
| data9 = {{{command_structure|}}}


| label10 = {{#if:{{{garrison_label|}}}|{{{garrison_label|}}}|Garrison/HQ}}
| label10 = {{if empty|{{{garrison_label|}}}|Garrison/HQ}}
| data10 = {{{garrison|}}}
| data10 = {{{garrison|}}}


| label11 = Nickname(s)
| label11 = Nickname{{pluralize from text|{{{nickname|}}}|plural=s}}
| data11 = {{{nickname|}}}
| data11 = {{{nickname|}}}


Line 49: Line 51:
| data12 = {{{patron|}}}
| data12 = {{{patron|}}}


| label13 = Motto(s)
| label13 = Motto{{pluralize from text|{{{motto|}}}|plural=s}}
| data13 = {{{motto|}}}
| data13 = {{{motto|}}}


| label14 = {{if empty|{{{colors_label|}}}|{{{colours_label|}}}|{{#if:{{{colours|}}}|Colours|Colors}}}}
| label14 = {{if empty|{{{colors_label|}}}|{{{colours_label|}}}|{{#if:{{{colours|}}}|Colours|Colors}}}}
| data14 = {{#if:{{{colours|}}}|{{{colours|}}}|{{{colors|}}}}}
| data14 = {{if empty|{{{colours|}}}|{{{colors|}}}}}


| label15 = March
| label15 = March
| data15 = {{{march|}}}
| data15 = {{{march|}}}


| label16 = Mascot(s)
| label16 = Mascot{{pluralize from text|{{{mascot|}}}|plural=s}}
| data16 = {{{mascot|}}}
| data16 = {{{mascot|}}}


Line 64: Line 66:
| data17 = {{{anniversaries|}}}
| data17 = {{{anniversaries|}}}


| label18 = {{#if:{{{equipment_label|}}}|{{{equipment_label|}}}|Equipment}}
| label18 = {{if empty|{{{equipment_label|}}}|Equipment}}
| data18 = {{{equipment|}}}
| data18 = {{{equipment|}}}


| label19 = {{#if:{{{battles_label|}}}|{{{battles_label|}}}|Engagements}}
| label19 = {{if empty|{{{battles_label|}}}|Engagements}}
| data19 = {{{battles|}}}
| data19 = {{{battles|}}}


Line 84: Line 86:
| header24 = {{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}}{{{current_commander|}}}{{{ceremonial_chief|}}}{{{colonel_of_the_regiment|}}}{{{notable_commanders|}}} | Commanders }}
| 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}}}}
| label25 = {{#if:{{{commander1_label|}}}|{{{commander1_label|}}}|{{if empty|{{{current_commander_label|}}}|Current<br>commander}}}}
| data25 = {{#if:{{{commander1|}}}|{{{commander1|}}}|{{{current_commander|}}}}}
| data25 = {{if empty|{{{commander1|}}}|{{{current_commander|}}}}}


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


| label27 = {{#if:{{{commander3_label|}}}|{{{commander3_label|}}}|{{#if:{{{colonel_of_the_regiment_label|}}}|{{{colonel_of_the_regiment_label|}}}|Colonel&nbsp;of<br>the&nbsp;Regiment}}}}
| label27 = {{#if:{{{commander3_label|}}}|{{{commander3_label|}}}|{{if empty|{{{colonel_of_the_regiment_label|}}}|Colonel&nbsp;of<br>the&nbsp;Regiment}}}}
| data27 = {{#if:{{{commander3|}}}|{{{commander3|}}}|{{{colonel_of_the_regiment|}}}}}
| data27 = {{if empty|{{{commander3|}}}|{{{colonel_of_the_regiment|}}}}}


| label28 = {{#if:{{{commander4_label|}}}|{{{commander4_label|}}}|{{#if:{{{command_sergeant_major_label|}}}|{{{command_sergeant_major_label|}}}|Command Sergeant Major}}}}
| label28 = {{#if:{{{commander4_label|}}}|{{{commander4_label|}}}|{{if empty|{{{command_sergeant_major_label|}}}|Command Sergeant Major}}}}
| data28 = {{#if:{{{commander4|}}}|{{{commander4|}}}|{{{command_sergeant_major|}}}}}
| data28 = {{if empty|{{{commander4|}}}|{{{command_sergeant_major|}}}}}


| label29 = {{{commander5_label|Commander}}}
| label29 = {{if empty|{{{commander5_label|}}}|Commander}}
| data29 = {{{commander5|}}}
| data29 = {{{commander5|}}}


| label30 = {{{commander6_label|Commander}}}
| label30 = {{if empty|{{{commander6_label|}}}|Commander}}
| data30 = {{{commander6|}}}
| data30 = {{{commander6|}}}


| label31 = {{{commander7_label|Commander}}}
| label31 = {{if empty|{{{commander7_label|}}}|Commander}}
| data31 = {{{commander7|}}}
| data31 = {{{commander7|}}}


| label32 = {{{commander8_label|Commander}}}
| label32 = {{if empty|{{{commander8_label|}}}|Commander}}
| data32 = {{{commander8|}}}
| data32 = {{{commander8|}}}


| label33 = {{{commander9_label|Commander}}}
| label33 = {{if empty|{{{commander9_label|}}}|Commander}}
| data33 = {{{commander9|}}}
| data33 = {{{commander9|}}}


Line 117: Line 119:


| header36 = {{#ifeq: {{{identification_symbol_label|}}} | none | {{{identification_symbol|}}} | }}
| header36 = {{#ifeq: {{{identification_symbol_label|}}} | none | {{{identification_symbol|}}} | }}
| label36 = {{#if:{{{identification_symbol_label|}}}|{{{identification_symbol_label|}}}|Identification<br>symbol}}
| label36 = {{if empty|{{{identification_symbol_label|}}}|Identification<br>symbol}}
| data36 = {{#ifeq: {{{identification_symbol_label|}}} | none | | {{{identification_symbol|}}} }}
| data36 = {{#ifeq: {{{identification_symbol_label|}}} | none | | {{{identification_symbol|}}} }}


| label37 = {{#if:{{{identification_symbol_2_label|}}}|{{{identification_symbol_2_label|}}}|Identification<br>symbol}}
| label37 = {{if empty|{{{identification_symbol_2_label|}}}|Identification<br>symbol}}
| data37 = {{{identification_symbol_2|}}}
| data37 = {{{identification_symbol_2|}}}


| label38 = {{#if:{{{identification_symbol_3_label|}}}|{{{identification_symbol_3_label|}}}|Identification<br>symbol}}
| label38 = {{if empty|{{{identification_symbol_3_label|}}}|Identification<br>symbol}}
| data38 = {{{identification_symbol_3|}}}
| data38 = {{{identification_symbol_3|}}}


| label39 = {{#if:{{{identification_symbol_4_label|}}}|{{{identification_symbol_4_label|}}}|Identification<br>symbol}}
| label39 = {{if empty|{{{identification_symbol_4_label|}}}|Identification<br>symbol}}
| data39 = {{{identification_symbol_4|}}}
| data39 = {{{identification_symbol_4|}}}


| label40 = {{#if:{{{identification_symbol_5_label|}}}|{{{identification_symbol_5_label|}}}|Identification<br>symbol}}
| label40 = {{if empty|{{{identification_symbol_5_label|}}}|Identification<br>symbol}}
| data40 = {{{identification_symbol_5|}}}
| data40 = {{{identification_symbol_5|}}}


| label41 = {{#if:{{{identification_symbol_6_label|}}}|{{{identification_symbol_6_label|}}}|Identification<br>symbol}}
| label41 = {{if empty|{{{identification_symbol_6_label|}}}|Identification<br>symbol}}
| data41 = {{{identification_symbol_6|}}}
| data41 = {{{identification_symbol_6|}}}


Line 190: Line 192:
| data60 = {{{aircraft_general|}}}
| data60 = {{{aircraft_general|}}}


| data61 = {{{misc|{{{module|}}}}}}
| data61 = {{{misc|}}}
| data62 = {{{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 }}<includeonly>{{short description|Military unit|2=noreplace}}</includeonly><noinclude>
}}</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 | child | 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 | embed | 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>{{#invoke:Check for conflicting parameters|check
| template = [[Template:Infobox military unit]]
| cat = {{main other|Category:Pages using infobox military unit with conflicting parameters}}
| child; embed
| country; countries
| colours; colors
| commander1; current_commander
| commander2; ceremonial_chief
| commander3; colonel_of_the_regiment
| commander4; command_sergeant_major
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 23:44, 27 December 2025