Template:InfoboxConflict: Difference between revisions

From Universe Wiki | Dawn of Victory 2289
Jump to navigation Jump to search
No edit summary
Tag: Reverted
mNo edit summary
Tag: Manual revert
 
(84 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation}}
== Usage ==


==Usage Instructions==
To use this infobox template, copy and paste the code below into your article and fill in the fields:
This template is used to create an infobox for battles, displaying key information such as date, location, result, participants, leaders, and casualties. The fields for military dead, civilian dead, and total dead will only display if there is data entered for them.


===Parameters===
<pre>
* **image**: Add an image of the battle (optional).
{{InfoboxConflict
* **name**: The name of the battle.
| BG = #153229
* **caption**: A short caption for the image (optional).
* **date**: The date(s) of the battle.
* **location**: The location where the battle took place.
* **result**: The result of the battle.
* **allies**: The participants on the Allied side.
* **axis**: The participants on the Axis side.
* **allied_leaders**: The main leaders on the Allied side.
* **axis_leaders**: The main leaders on the Axis side.
* **military_dead_allies**: The number of military deaths on the Allied side (optional).
* **military_dead_axis**: The number of military deaths on the Axis side (optional).
* **civilian_dead_allies**: The number of civilian deaths on the Allied side (optional).
* **civilian_dead_axis**: The number of civilian deaths on the Axis side (optional).
* **total_dead_allies**: The total number of deaths on the Allied side (optional).
* **total_dead_axis**: The total number of deaths on the Axis side (optional).
 
===Example===
<code>
{{Battle infobox
| name = Battle of Example
| image = Example.jpg
| image = Example.jpg
| caption = A depiction of the Battle of Example.
| imageBG = #153229
| date = January 1, 1900
| nameBG = #153229
| color2 = #fff
| name = Example Conflict
| date = January 1, 2024
| location = Example Location
| location = Example Location
| result = Decisive Example Victory
| result = Example Result
| allies = Example Allies
| headerBG = #1B4236
| axis = Example Axis
| cellBG = #1B4236
| allied_leaders = Example Leader 1, Example Leader 2
| group1_header = Group 1
| axis_leaders = Example Axis Leader 1, Example Axis Leader 2
| group2_header = Group 2
| military_dead_allies = 100
| group1 = Example Group 1
| military_dead_axis = 200
| group2 = Example Group 2
| civilian_dead_allies = 50
| group1_leaders_header = Main leaders (Group 1)
| civilian_dead_axis = 75
| group2_leaders_header = Main leaders (Group 2)
| total_dead_allies = 150
| group1_leaders = Leader 1, Leader 2
| total_dead_axis = 275
| group2_leaders = Leader A, Leader B
| military_dead_group1 = 100
| military_dead_group2 = 200
| civilian_dead_group1 = 50
| civilian_dead_group2 = 75
| total_dead_group1 = 150
| total_dead_group2 = 275
| below_text = '''425 total dead'''
}}
}}
</code>
</pre>
 
===Notes===
* Ensure to fill out as many fields as possible for completeness.
* The "Military dead," "Civilian dead," and "Total dead" sections will only appear if there is data entered for those fields.
 
</noinclude>
</noinclude>
 
{| class="infobox" cellspacing="0" style="border:solid 1px #E7CC75; float:right; clear:right; width:425px; background:{{{BG|#153229}}}; margin-left: 20px; margin-bottom: 20px"
 
{| class="infobox" cellspacing="0" cellpadding="10px" style="float:right; clear:right; width:375px; padding:10px; background:{{{BG|#153229}}};"
{{!}}-
{{!}}-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
! style="background:{{{imageBG|#153229}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
! style="background:{{{imageBG|#153229}}}; text-align:center; border-bottom:solid 1px #E7CC75;" colspan="4" {{!}} {{{image|}}}
}}
{{!}}-
{{#if:{{{image-caption|}}}|
{{!}} style="text-align:center; border-bottom:solid 1px #E7CC75; font-size:80%; padding:2.5px 5px 2.5px 5px" colspan="4" {{!}} ''{{{image-caption|}}}''
}}
{{!}}-
! colspan="2" style="padding:5px; background:{{{nameBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; font-size:120%; border-bottom:solid 1px #E7CC75" | {{{name|{{PAGENAME}}}}}
{{!}}-
{{!}} colspan="2" style="vertical-align:top" {{!}}
    {{{!}} class="infobox" cellspacing="0" style="width:100%; display:flex; justify-content:left; align-items:left"
        {{!}}-
        {{#if:{{{type|}}}|
        {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 10px 10px 5px 10px; line-height:14px; font-weight:bold; width:25%" {{!}} Type
        {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 10px 10px 5px 10px; line-height:14px;" {{!}} {{{type|}}}
        }}
        {{!}}-
        {{#if:{{{date|}}}|
        {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 5px 10px; line-height:14px; font-weight:bold; width:25%" {{!}} Date
        {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 5px 10px; line-height:14px;" {{!}} {{{date|}}}
        }}
        {{!}}-
        {{#if:{{{location|}}}|
        {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 5px 10px; line-height:14px; font-weight:bold; width:25%" {{!}} Location
        {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 5px 10px; line-height:14px;" {{!}} {{{location|}}}
        }}
        {{!}}-
        {{#if:{{{result|}}}|
        {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 10px 10px; line-height:14px; font-weight:bold; width:25%" {{!}} Result
        {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 10px 10px; line-height:14px;"{{!}}{{{result|}}}
        }}
        {{!}}-
    {{!}}}
{{!}}-
{{!}}-
! colspan="2" style="padding:5px; background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-top:solid 1px #E7CC75; border-bottom:solid 1px #E7CC75" {{!}} Participants
{{!}}-
{{#if:{{{group1_header|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 0px 10px; line-height:14px; border-right:solid 1px #E7CC75; width:50%" {{!}} '''{{{group1_header}}}'''
}}
{{#if:{{{group2_header|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 0px 10px; line-height:14px; width:50%" {{!}} '''{{{group2_header}}}'''
}}
{{!}}-
{{#if:{{{group1|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px; border-right:solid 1px #E7CC75; width:50%"{{!}}{{{group1}}}
}}
{{#if:{{{group2|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px; width:50%"{{!}}{{{group2}}}
}}
{{!}}-
{{#if:{{{commanders_and_leaders_header|}}}|
! colspan="2" style="padding:5px; background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-top:solid 1px #E7CC75; border-bottom:solid 1px #E7CC75" {{!}} {{{commanders_and_leaders_header|Commanders and leaders}}}
}}
{{!}}-
{{#if:{{{group1_leaders|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px; border-right:solid 1px #E7CC75" {{!}} {{{group1_leaders_header|}}}
}}
{{#if:{{{group2_leaders|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px;" {{!}} {{{group2_leaders_header|}}}
}}
{{!}}-
{{#if:{{{group1_leaders|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px; border-right:solid 1px #E7CC75" {{!}} {{{group1_leaders}}}
}}
{{#if:{{{group2_leaders|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px;" {{!}} {{{group2_leaders}}}
}}
{{!}}-
{{#if:{{{strength_header|}}}|
! colspan="2" style="padding:5px; background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-top:solid 1px #E7CC75; border-bottom:solid 1px #E7CC75" {{!}} {{{strength_header|Strength}}}
}}
{{!}}-
{{!}} colspan="1" style="width:50%; vertical-align:top; border-right:solid 1px #E7CC75" {{!}}
    {{{!}} class="infobox" cellspacing="0" style="vertical-align:top; display:flex; justify-content:left; align-items:left; padding: 10px 0px 10px 0px"
        {{!}}-
        {{#if:{{{strength_group1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} {{{strength_group1|}}}
        }}
        {{!}}-
    {{!}}}
{{!}} colspan="1" style="width:50%" {{!}}
    {{{!}} class="infobox" cellspacing="0" style="vertical-align:top; display:flex; justify-content:left; align-items:left; padding: 10px 0px 10px 0px"
        {{!}}-
        {{#if:{{{strength_group2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} {{{strength_group2|}}}
        }}
        {{!}}-
    {{!}}}
{{!}}-
{{#if:{{{casualties-and-losses|}}}| <!-- Set to " " if we have casualty/losses info -->
{{!}}-
! colspan="2" style="padding:5px; background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-top:solid 1px #E7CC75; border-bottom:solid 1px #E7CC75" {{!}} Casualties and losses
{{!}}-
{{!}} colspan="1" style="width:50%; vertical-align:top; border-right:solid 1px #E7CC75" {{!}}
    {{{!}} class="infobox" cellspacing="0" style="vertical-align:top; display:flex; justify-content:left; align-items:left; padding: 10px 0px 10px 0px"
        {{!}}-
        {{#if:{{{military_dead_group1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} '''Military:'''
        }}
        {{!}}-
        {{#if:{{{military_dead_group1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} {{{military_dead_group1|}}}
        }}
        {{!}}-
        {{#if:{{{civilian_dead_group1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} '''Civilian:'''
        }}
        {{!}}-
        {{#if:{{{civilian_dead_group1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} {{{civilian_dead_group1|}}}
        }}
        {{!}}-
        {{#if:{{{other_losses_group_1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} '''Other:'''
        }}
        {{!}}-
        {{#if:{{{other_losses_group_1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} {{{other_losses_group_1|}}}
        }}
        {{!}}-
        {{#if:{{{total_dead_group1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} '''Total dead:'''
        }}
        {{!}}-
        {{#if:{{{total_dead_group1|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} {{{total_dead_group1|}}}
        }}
    {{!}}}
{{!}} colspan="1" style="width:50%" {{!}}
    {{{!}} class="infobox" cellspacing="0" style="display:flex; justify-content:left; align-items:left; padding: 10px 0px 10px 0px"
        {{#if:{{{military_dead_group2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding: 5px 10px 0px 10px; line-height:14px" {{!}} '''Military:'''
        }}
        {{!}}-
        {{#if:{{{military_dead_group2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding: 5px 10px 0px 10px; line-height:14px" {{!}} {{{military_dead_group2|}}}
        }}
        {{!}}-
        {{#if:{{{civilian_dead_group2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding: 5px 10px 0px 10px; line-height:14px" {{!}} '''Civilian:'''
        }}
        {{!}}-
        {{#if:{{{civilian_dead_group2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding: 5px 10px 0px 10px; line-height:14px" {{!}} {{{civilian_dead_group2|}}}
        }}
        {{!}}-
        {{#if:{{{other_losses_group_2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} '''Other:'''
        }}
        {{!}}-
        {{#if:{{{other_losses_group_2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding:5px 10px 0px 10px; line-height:14px" {{!}} {{{other_losses_group_2|}}}
        }}
        {{!}}-
        {{#if:{{{total_dead_group2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding: 5px 10px 0px 10px; line-height:14px" {{!}} '''Total dead:'''
        }}
        {{!}}-
        {{#if:{{{total_dead_group2|}}}|
        {{!}} style="text-align:left; vertical-align:top; transparent; padding: 5px 10px 0px 10px; line-height:14px" {{!}} {{{total_dead_group2|}}}
        }}
    {{!}}}
{{!}}-
}}
{{!}}-
{{#if:{{{below_text|}}}|
{{!}} colspan="4" style="text-align:center; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px; border-top:solid 1px #E7CC75" {{!}} {{{below_text|}}}
}}
}}
|-
|-
! colspan="2" style="background:{{{nameBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; font-size:120%; border-bottom:0px solid {{{lineBG|#999999}}};" | {{{name|{{PAGENAME}}}}}
|-
| colspan="2" style="text-align:center; font-size:90%; background:{{{cellBG|#1B4236}}}; padding: 10px 0 20px 20px; line-height:14px;" | {{{caption|}}}
|-
| style="background:{{{headerBG|#1B4236}}}; color:{{{color2|#fff}}}; text-align:left; padding: 10px 0 10px 20px; line-height:14px; width:100px; font-weight:bold;" | Date
| style="text-align:left; background:{{{cellBG|#1B4236}}}; padding: 10px 0 10px 20px; line-height:14px;" | {{{date|}}}
|-
| style="background:{{{headerBG|#1B4236}}}; color:{{{color2|#fff}}}; text-align:left; padding: 10px 0 10px 20px; line-height:14px; width:100px; font-weight:bold;" | Location
| style="text-align:left; background:{{{cellBG|#1B4236}}}; padding: 10px 0 10px 20px; line-height:14px;" | {{{location|}}}
|-
| style="background:{{{headerBG|#1B4236}}}; color:{{{color2|#fff}}}; text-align:left; padding: 10px 0 10px 20px; line-height:14px; width:100px; font-weight:bold;" | Result
| style="text-align:left; background:{{{cellBG|#1B4236}}}; padding: 10px 0 10px 20px; line-height:14px;" | {{{result|}}}
|-
! colspan="2" style="background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" | Participants
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px; width:50%;" | '''Allies'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px; width:50%;" | '''Axis'''
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{axis|}}}
|-
! colspan="2" style="background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" | Commanders and leaders
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" |
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" |
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{allied_leaders|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{axis_leaders|}}}
|-
! colspan="2" style="background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" | Casualties and losses
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | <br>{{{total_dead_allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | <br>{{{total_dead_axis|}}}
|}
|}

Latest revision as of 21:48, 28 December 2025

Usage

To use this infobox template, copy and paste the code below into your article and fill in the fields:

{{InfoboxConflict
| BG = #153229
| image = Example.jpg
| imageBG = #153229
| nameBG = #153229
| color2 = #fff
| name = Example Conflict
| date = January 1, 2024
| location = Example Location
| result = Example Result
| headerBG = #1B4236
| cellBG = #1B4236
| group1_header = Group 1
| group2_header = Group 2
| group1 = Example Group 1
| group2 = Example Group 2
| group1_leaders_header = Main leaders (Group 1)
| group2_leaders_header = Main leaders (Group 2)
| group1_leaders = Leader 1, Leader 2
| group2_leaders = Leader A, Leader B
| military_dead_group1 = 100
| military_dead_group2 = 200
| civilian_dead_group1 = 50
| civilian_dead_group2 = 75
| total_dead_group1 = 150
| total_dead_group2 = 275
| below_text = '''425 total dead'''
}}
InfoboxConflict
Participants