Template:InfoboxConflict: Difference between revisions

From Universe Wiki | Dawn of Victory 2289
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 51: Line 51:
     {{{!}} class="infobox" cellspacing="0" style="width:100%; display:flex; justify-content:left; align-items:left"
     {{{!}} class="infobox" cellspacing="0" style="width:100%; display:flex; justify-content:left; align-items:left"
         {{!}}-
         {{!}}-
         {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 10px 10px 5px 10px; line-height:14px; font-weight:bold; width:25%" {{!}} Date
        {{#if:{{{type|}}}|
         {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 10px 10px 5px 10px; line-height:14px; width:75%" {{!}} {{{date|}}}
         {{!}} 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; font-weight:bold; width:25%" {{!}} Location
         {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 5px 10px; line-height:14px; width:75%" {{!}} {{{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; font-weight:bold; width:25%" {{!}} Result
         {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 10px 10px; line-height:14px; width:75%" {{!}} {{{result|}}}
         {{!}} colspan="1" style="text-align:left; vertical-align:top; padding: 5px 10px 10px 10px; line-height:14px;"{{!}}{{{result|}}}
        }}
         {{!}}-
         {{!}}-
     {{!}}}
     {{!}}}
Line 65: Line 76:
! 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
! 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|}}}|
{{#if:{{{group1_header|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 5px 10px; line-height:14px; border-right:solid 1px #E7CC75; width:50%" {{!}} '''{{{group1_header|Group 1}}}'''
{{!}} 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|}}}|
{{#if:{{{group2_header|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 5px 10px; line-height:14px; width:50%" {{!}} '''{{{group2_header|Group 2}}}'''
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 0px 10px; line-height:14px; width:50%" {{!}} '''{{{group2_header}}}'''
}}
}}
{{!}}-
{{!}}-
{{#if:{{{group1|}}}|
{{#if:{{{group1|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 5px 10px 10px 10px; line-height:14px; border-right:solid 1px #E7CC75; width:50%" {{!}} {{{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|}}}|
{{#if:{{{group2|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 5px 10px 10px 10px; line-height:14px; width:50%" {{!}} {{{group2}}}
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px; width:50%"{{!}}{{{group2}}}
}}
}}
{{!}}-
{{!}}-
Line 88: Line 99:
}}
}}
{{!}}-
{{!}}-
{{#if:{{{group1|}}}|
{{#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}}}
{{!}} 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|}}}|
{{#if:{{{group2_leaders|}}}|
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px;" {{!}} {{{group2_leaders}}}
{{!}} style="text-align:left; vertical-align:top; transparent; padding: 10px 10px 10px 10px; line-height:14px;" {{!}} {{{group2_leaders}}}
}}
}}

Latest revision as of 06:36, 4 June 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
Commanders and leaders
Casualties and losses