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

Template:Infobox military conflict: Difference between revisions

Template page
mNo edit summary
m (Removing template styles)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
<includeonly>{{#invoke:Infobox military conflict|main}}</includeonly><noinclude>
| bodyclass = vcard
Usage:
<nowiki>{{Infobox military conflict
background-color: var(--color-surface-2);
| conflict    =
| partof      =
| image      =
| image_size  =
| alt        =
| caption    =
| date        =
| place      =
| map_type    =
| map_relief  =
| map_size    =
| map_marksize =
| map_caption =
| map_label  =
| territory  =
| result      =
| status      =
| combatants_header =
| combatant1  =
| combatant2  =
| combatant3  =
| commander1  =
| commander2  =
| commander3  =
| units1      =  
| units2      =
| units3      =
| strength1  =
| strength2  =
| strength3  =
| casualties1 =
| casualties2 =
| casualties3 =
| notes      =
| campaignbox =
}}</nowiki>


| abovestyle = padding-top:0; padding-bottom:0;
The combatant and commander parameters can be expanded through letters a, b, c, etc. if necessary. Example:
| above = <div style="padding-top:0.3em; padding-bottom:0.3em; {{#if:{{{colorcode|}}}|border-top:2px solid {{{colorcode}}}; border-bottom:2px solid {{{colorcode}}};}} line-height: 1;">{{Br separated entries
<nowiki>{{Infobox military conflict
  | 1 = <div style="display:inline;" class="fn org">{{if empty|{{{name|}}}|{{PAGENAMEBASE}}}}</div>
| conflict    = Conflict name
  | 2 = {{#if:{{{native_name|}}} |<div style="display:inline;" class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}} style="font-size: 0.8em;">{{{native_name}}}</div>}}
| partof      = Larger war
  }}</div>
| image      = File:Algeria map.png
| image_size  =
| alt        =
| caption    = Map of Algeria as an example
| date        = Date
| place      = Place
| map_type    =
| map_relief =
| map_size    =
| map_marksize =
| map_caption =  
| map_label  =  
| territory  =  
| result      =
| status      =
| combatants_header =
| combatant1 = 1st combatant
| combatant1a = 1st combatant ally 1
| combatant1b = 1st combatant ally 2
| combatant1c = 1st combatant ally 3
| combatant2  = 2nd combatant
| combatant2a = 2nd combatant ally 1
| combatant2b = 2nd combatant ally 2
| commander1  = 1st commander
| commander1a = 1st commander ally
| commander2  =  
| commander3 =
| units1      =
| units2      =
| units3      =
| strength1  =
| strength2  =
| strength3  =
| casualties1 =
| casualties2 =
| casualties3 =
| notes      =
| campaignbox =
}}</nowiki>


| subheader = {{{_subheader|}}}
Produces:


| imageclass = image
| imagestyle = padding-top:.4em;padding-bottom:.3em;
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|upright={{{image_upright|0.8}}}|alt={{{image_alt|}}}|size={{{image_size|}}}}}
| caption = {{{caption|}}}
| headerstyle = line-height: 0.8em; padding-top:0.5em; padding-bottom:0;
| labelstyle = line-height:1.3em;
| datastyle = line-height:1.3em;
| label1  = {{{lang1}}} name
| class1  = nickname
|  data1  = {{{name_lang1|}}}
| label2  = {{{lang2}}} name
| class2  = nickname
|  data2  = {{{name_lang2|}}}
| label3  = {{{lang3}}} name
| class3  = nickname
|  data3  = {{{name_lang3|}}}
| label4  = {{{lang4}}} name
| class4  = nickname
|  data4  = {{{name_lang4|}}}
| label6  = Date
| class6  = agent
|  data6  = {{{date|}}}
| label7  = President
| class7  = agent
|  data7  = {{{president|}}}
| label8  = Chair{{#if:{{{chairperson|}}}|person|man}}
| class8  = agent
|  data8  = {{if empty|{{{chairperson|}}}|{{{chairman|}}}}}
| label9  = General Secretary
| class9  = agent
|  data9  = {{if empty|{{{general_secretary|}}}|{{{general_secretary|}}}}}
| label10 = First Secretary
| class10 = agent
|  data10 = {{if empty|{{{first_secretary|}}}|{{{first_secretary|}}}}}
| label11 = {{nowrap|Secretary-General}}
| class11 = agent
|  data11 = {{if empty|{{{secretary_general|}}}|{{{secretary_general|}}}}}
| label12 = Presidium
| class12 = agent
|  data12 = {{if empty|{{{presidium|}}}|{{{presidium|}}}}}
| label13 = Standing Committee
| class13 = agent
|  data13 = {{if empty|{{{standing_committee|}}}|{{{standing_committee|}}}}}
| label14 = Secretary
| class14 = agent
|  data14 = {{if empty|{{{secretary|}}}|{{{secretary|}}}}}
| label15 = Spokes{{#if:{{{spokesperson|}}}|person|man}}
| class15 = agent
|  data15 = {{if empty|{{{spokesperson|}}}|{{{spokesman|}}}}}
| label16 = {{{leader1_title|}}}
| class16 = agent
|  data16 = {{{leader1_name|}}}
| label17 = {{{leader2_title|}}}
| class17 = agent
|  data17 = {{{leader2_name|}}}
| label18 = {{{leader3_title|}}}
| class18 = agent
|  data18 = {{{leader3_name|}}}
| label19 = {{{leader4_title|}}}
| class19 = agent
|  data19 = {{{leader4_name|}}}
| label20 = {{{leader5_title|}}}
| class20 = agent
|  data20 = {{{leader5_name|}}}
| label21 = {{#if:{{{founders|}}} |Founders |Founder}}
| class21 = agent
|  data21 = {{if empty|{{{founders|}}}|{{{founder|}}}}}
| label22 = Founded
|  data22 = {{if empty|{{{founded|}}}|{{{foundation|}}}}}
| label23 = Registered
|  data23 = {{{registered|}}}
| label24 = Legali{{#if:{{{legalised|}}}|s|z}}ed
|  data24 = {{if empty|{{{legalised|}}}|{{{legalized|}}}}}
| label25 = {{#if:{{{banned|}}} |Banned |Dissolved}}
|  data25 = {{if empty|{{{banned|}}}|{{{dissolved|}}}|{{{dissolution|}}}}}
| label26 = Merger&nbsp;of
|  data26 = {{{merger|}}}
| label27 = Split&nbsp;from
|  data27 = {{{split|}}}
| label28 = Preceded&nbsp;by
|  data28 = {{{predecessor|}}}
| label29 = Merged&nbsp;into
|  data29 = {{{merged|}}}
| label30 = Succeeded&nbsp;by
|  data30 = {{{successor|}}}
| label31 = Headquarters
| class31 = label
|  data31 = {{{headquarters|}}}
| label32 = Newspaper
|  data32 = {{{newspaper|}}}
| label33 = Think tank
|  data33 = {{if empty|{{{think tank|}}}|{{{think_tank|}}}}}
| label34 = Student wing
|  data34 = {{{student_wing|}}}
| label35 = Youth wing
|  data35 = {{{youth_wing|}}}
| label36 = Women's wing
|  data36 = {{{womens_wing|}}}
| label37 = {{{wing1_title}}}
|  data37 = {{{wing1|}}}
| label38 = {{{wing2_title}}}
|  data38 = {{{wing2|}}}
| label39 = {{{wing3_title}}}
|  data39 = {{{wing3|}}}
| label40 = {{{wing4_title}}}
|  data40 = {{{wing4|}}}
| label41 = Membership{{#if:{{{membership_year|}}} |&nbsp;({{{membership_year}}})}}
|  data41 = {{{membership|}}}
| label42 = Political line
| class42 = category
|  data42 = {{{political_line|}}}
| label43 = [[Political spectrum|Political&nbsp;position]]
| class43 = category
|  data43 = {{{position|}}}
| label44 = Religion
| class44 = category
|  data44 = {{{religion|}}}
| label45 = National affiliation
| class45 = category
|  data45 = {{{national|}}}
| label46 = Regional affiliation
| class46 = category
|  data46 = {{if empty|{{{regional|}}}|{{{regional affiliation|}}}}}
| label47 = [[European political party|European affiliation]]
| class47 = category
|  data47 = {{{european|}}}
| label48 = Continental affiliation
| class48 = category
|  data48 = {{if empty|{{{continental|}}}|{{{continental affiliation|}}}}}
| label49 = International affiliation
| class49 = category
|  data49 = {{{international|}}}
| label50 = [[Political groups of the European Parliament|European Parliament group]]
| class50 = category
|  data50 = {{{europarl|}}}
| label51 = {{{affiliation1_title}}}
| class51 = category
|  data51 = {{#if:{{{affiliation1_title|}}}|{{{affiliation1|}}}}}
| label52 = {{{affiliation2_title}}}
| class52 = category
|  data52 = {{#if:{{{affiliation2_title|}}}|{{{affiliation2|}}}}}
| label53 = Colo{{#if:{{{colours|}}}|u|}}rs
|  data53 = {{{colo{{#if:{{{colours|}}}|u|}}rs|}}}
| label54 = Slogan
|  data54 = {{{slogan|}}}
| label55 = Anthem
|  data55 = {{{anthem|}}}
| label56 = {{{blank1_title|}}}
|  data56 = {{{blank1|}}}
| label57 = {{{blank2_title|}}}
|  data57 = {{{blank2|}}}
| label58 = {{{blank3_title|}}}
|  data58 = {{{blank3|}}}
| label59 = {{{blank4_title|}}}
|  data59 = {{{blank4|}}}
| label60 = {{{seats1_title|}}}
|  data60 = {{{seats1|}}}
| label61 = {{{seats2_title|}}}
|  data61 = {{{seats2|}}}
| label62 = {{{seats3_title|}}}
|  data62 = {{{seats3|}}}
| label63 = {{{seats4_title|}}}
|  data63 = {{{seats4|}}}
| label64 = {{{seats5_title|}}}
|  data64 = {{{seats5|}}}
| label65 = {{{seats6_title|}}}
|  data65 = {{{seats6|}}}
| label66 = {{{seats7_title|}}}
|  data66 = {{{seats7|}}}
| label67 = {{{seats8_title|}}}
|  data67 = {{{seats8|}}}
| label68 = {{{seats9_title|}}}
|  data68 = {{{seats9|}}}
| label69 = {{{seats10_title|}}}
|  data69 = {{{seats10|}}}
| label70 = {{{seats11_title|}}}
|  data70 = {{{seats11|}}}
| header71 = {{#if:{{{symbol|}}} |Election symbol}}
| rowstyle72 = font-size: 150%
|  data72 = {{{symbol|}}}
| header73 = {{#if:{{{flag|}}} |{{{flag_title|Party flag}}}}}
|  data74 = {{#invoke:InfoboxImage|InfoboxImage|image={{{flag|}}}|upright=0.6|alt={{if empty|{{{flag_alt|}}}|{{{flag_title|}}}}}}}
| header75 = {{#if:{{{website|}}} |Website}}
|  data76 = {{{website|}}}
| belowstyle = padding-top:0;
| below = {{#if:{{{state|}}}{{{country|}}}
    | {{Unbulleted list |style=line-height:1.3em; padding-top:0.3em; border-top:{{#if:{{{colorcode|}}}|2|1}}px solid {{{colorcode|#aaa}}};
          | {{#if:{{{country_dab1|}}}
            | {{#ifexist: {{{country_dab1|}}} | [[{{{country_dab1}}}|Politics of {{if empty|{{{state|}}}|{{{country}}}}}]] }}
            | {{#ifexist: Politics of {{if empty|{{{state|}}}|{{{country}}}}} | [[Politics of {{if empty|{{{state|}}}|{{{country}}}}}]] }}
            }}
          | {{#if:{{{parties_dab1|}}}
            | {{#ifexist: {{{parties_dab1|}}} | [[{{{parties_dab1}}}|Political parties]] }}
            | {{#ifexist: List of political parties in {{if empty|{{{state|}}}|{{{country}}}}} | [[List of political parties in {{if empty|{{{state|}}}|{{{country}}}}}|Political parties]] }}
            }}
          | {{#if:{{{elections_dab1|}}}
            | {{#ifexist: {{{elections_dab1}}} | [[{{{elections_dab1}}}|Elections]] }}
            | {{#ifexist: Elections in {{if empty|{{{state|}}}|{{{country}}}}} | [[Elections in {{if empty|{{{state|}}}|{{{country}}}}}|Elections]]}}
            }}
      }}<!--
        -->{{#if:{{{country2|}}}
    | {{Unbulleted list |style=line-height:1.3em; margin-top:0.2em; padding-top:0.2em; border-top: 1px solid #aaa;
          | {{#if:{{{country_dab2|}}}
            | {{#ifexist: {{{country_dab2|}}} | [[{{{country_dab2}}}|Politics of {{{country2}}}]] }}
            | {{#ifexist: Politics of {{{country2}}} | [[Politics of {{{country2}}}]] }}
            }}
          | {{#if:{{{parties_dab1|}}}
            | {{#ifexist: {{{parties_dab2|}}} | [[{{{parties_dab2}}}|Political parties]] }}
            | {{#ifexist: List of political parties in {{{country2}}} | [[List of political parties in {{{country2}}}|Political parties]] }}
            }}
          | {{#if:{{{elections_dab1|}}}
            | {{#ifexist: {{{elections_dab2}}} | [[{{{elections_dab2}}}|Elections]] }}
            | {{#ifexist: Elections in {{{country2}}} | [[Elections in {{{country2}}}|Elections]]}}
            }}
      }}  }}  }}<!--
      -->{{#if:{{{footnotes|}}} |<hr/>{{{footnotes}}} }}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox political party with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox political party]] with unknown parameter "_VALUE_"|ignoreblank=y| _subheader | abbr | abbreviation | affiliation1 | affiliation1_title | affiliation2 | affiliation2_title | anthem | banned | blank1 | blank1_title | blank2 | blank2_title | blank3 | blank3_title | blank4 | blank4_title | caption | chairman | chairperson | colorcode | colors | colours | continental | continental affiliation | country | country_dab1 | country_dab2 | country2 | dissolution | dissolved | elections_dab1 | elections_dab2 | europarl | european | first_secretary | flag | flag_alt | flag_title | footnotes | foundation | founded | founder | founders | general_secretary | headquarters | political_line | international | lang1 | lang2 | lang3 | lang4 | date | leader1_name | leader1_title | leader2_name | leader2_title | leader3_name | leader3_title | leader4_name | leader4_title | leader5_name | leader5_title | legalised | legalized | image | image_alt | image_size | image_upright | membership | membership_year | merged | merger | name | name_lang1 | name_lang2 | name_lang3 | name_lang4 | national | native_name | native_name_lang | newspaper | parties_dab1 | parties_dab2 | position | predecessor | president | presidium | regional | regional affiliation | registered | religion | seats1 | seats1_title | seats10 | seats10_title | seats11 | seats11_title | seats2 | seats2_title | seats3 | seats3_title | seats4 | seats4_title | seats5 | seats5_title | seats6 | seats6_title | seats7 | seats7_title | seats8 | seats8_title | seats9 | seats9_title | secretary | secretary_general | slogan | split | spokesman | spokesperson | standing_committee | state | student_wing | successor | symbol | think tank | think_tank | website | wing1 | wing1_title | wing2 | wing2_title | wing3 | wing3_title | wing4 | wing4_title | womens_wing | youth_wing
}}
<noinclude>
How to use this template:
<nowiki>
{{Infobox military conflict
{{Infobox military conflict
| name =
| conflict    = Conflict name
| native_name =
| partof      = Larger war
| native_name_lang =
| image       = File:Algeria map.png
| abbreviation =
| image_size =
| name_lang4 =  
| alt        =
| image =
| caption     = Map of Algeria as an example
| image_size =
| date       = Date
| image_upright =
| place       = Place
| image_alt =
| map_type    =  
| caption =
| map_relief  =  
| colorcode =        <!-- HTML color code (e.g. "red", "#FF0000" or Party metadata color template) otherwise "transparent" -->
| map_size    =  
| abbreviation =      <!-- official abbreviation or | abbr = -->
| map_marksize =  
| leader =
| map_caption =  
| president =
| map_label  =  
| chairperson =      <!-- or | chairman = -->
| territory  =  
| general_secretary =
| result      =  
| first_secretary =
| status      =  
| secretary_general =
| combatants_header =  
| presidium =
| combatant1  = Country
| standing_committee =
| combatant1a = First combatant ally 1
| secretary =
| combatant1b = First combatant ally 2
| spokesperson =      <!-- or | spokesman = -->
| combatant1c = First combatant ally 3
| leader1_title =
| combatant2  = Rival country
| leader1_name =
| combatant2a = Second combatant ally 1
| leader2_title =
| combatant2b = Second combatant ally 2
| leader2_name =
| commander1  = First commander
| leader3_title =
| commander1a = First commander ally
| leader3_name =
| commander2  =  
| leader4_title =
| commander3  =  
| leader4_name =
| units1      =  
| leader5_title =
| units2      =  
| leader5_name =
| units3     =  
| founder =          <!-- or | founders = -->
| strength1  =  
| founded =          <!-- or | foundation = use {{start date|YYYY|MM|DD}} -->
| strength2  =  
| registered =
| strength3  =  
| legalised =        <!-- or | legalized = -->
| casualties1 =  
| dissolved =        <!-- or | banned = or | dissolution = use {{end date|YYYY|MM|DD}} -->
| casualties2 =  
| merger =  
| casualties3 =  
| split =
| notes      =  
| predecessor =
| campaignbox =  
| merged =
| successor =
| headquarters =
| newspaper =
| think_tank =
| student_wing =
| youth_wing =
| womens_wing =
| wing1_title =
| wing1 =
| wing2_title =
| wing2 =
| wing3_title =
| wing3 =
| wing4_title =
| wing4 =
| membership_year =
| membership =
| political_line =
| position =
| religion =
| national =
| regional =          <!-- or | regional affiliation = -->
| european =
| continental =       <!-- or | continental affiliation = -->
| international =  
| europarl =  
| affiliation1_title =  
| affiliation1 =  
| affiliation2_title =
| affiliation2 =
| colors =            <!-- or | colours = -->
| slogan =  
| anthem =  
| blank1_title =  
| blank1 =  
| blank2_title =  
| blank2 =  
| blank3_title =  
| blank3 =  
| blank4_title =  
| blank4 =  
| seats1_title =  
| seats1 =            <!-- {{Infobox political party/seats|50|100|hex=#ff0000}} -->
| seats2_title =  
| seats2 =  
| seats3_title =  
| seats3 =  
| seats4_title =     <!-- up to | seats11_title = -->
| seats4 =            <!-- up to | seats11 = -->
| symbol =  
| flag =  
| flag_title =
| flag_alt =
| website =  
| state =            <!-- or | country = -->
| country =          <!-- or | state = -->
| country_dab1 =
| parties_dab1 =
| elections_dab1 =
| country2 =
| country_dab2 =
| parties_dab2 =
| elections_dab2 =  
| footnotes =  
}}
}}
</nowiki>
{{Infobox military conflict
| name = Name
| native_name = Native name
| image = File:French and British colonialism cartoon.jpg
}}</noinclude>

Latest revision as of 12:12, 11 September 2024

Usage:

{{Infobox military conflict
 background-color: var(--color-surface-2);
| conflict    = 
| partof      = 
| image       = 
| image_size  =
| alt         =
| caption     = 
| date        = 
| place       = 
| map_type    = 
| map_relief  = 
| map_size    = 
| map_marksize = 
| map_caption = 
| map_label   = 
| territory   = 
| result      = 
| status      = 
| combatants_header = 
| combatant1  = 
| combatant2  = 
| combatant3  = 
| commander1  = 
| commander2  = 
| commander3  = 
| units1      = 
| units2      = 
| units3      = 
| strength1   = 
| strength2   = 
| strength3   = 
| casualties1 = 
| casualties2 = 
| casualties3 = 
| notes       = 
| campaignbox = 
}}

The combatant and commander parameters can be expanded through letters a, b, c, etc. if necessary. Example:

{{Infobox military conflict
| conflict    = Conflict name
| partof      = Larger war
| image       = File:Algeria map.png
| image_size  =
| alt         =
| caption     = Map of Algeria as an example
| date        = Date
| place       = Place
| map_type    = 
| map_relief  = 
| map_size    = 
| map_marksize = 
| map_caption = 
| map_label   = 
| territory   = 
| result      = 
| status      = 
| combatants_header = 
| combatant1  = 1st combatant
| combatant1a = 1st combatant ally 1
| combatant1b = 1st combatant ally 2
| combatant1c = 1st combatant ally 3
| combatant2  = 2nd combatant
| combatant2a = 2nd combatant ally 1
| combatant2b = 2nd combatant ally 2
| commander1  = 1st commander
| commander1a = 1st commander ally
| commander2  = 
| commander3  = 
| units1      = 
| units2      = 
| units3      = 
| strength1   = 
| strength2   = 
| strength3   = 
| casualties1 = 
| casualties2 = 
| casualties3 = 
| notes       = 
| campaignbox = 
}}

Produces:

Conflict name
Part of Larger war

Map of Algeria as an example
DateDate
Location
Place
Belligerents
Country Rival country
First combatant ally 1 Second combatant ally 1
First combatant ally 2 Second combatant ally 2
First combatant ally 3
Commanders and leaders
First commander
First commander ally