Template:InfoboxConflict: Difference between revisions

From Universe Wiki | Dawn of Victory 2289
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" style="float:right; clear:right; width:350px; padding:10px 2px; background:{{{BG|#153229}}};"
Here's the revised template, with "Participants," "Commanders and leaders," and "Casualties and losses" having separate headers, while "Date," "Location," and "Result" have headers to the side:
 
```wiki
{| class="infobox" cellspacing="0" cellpadding="0" style="float:right; clear:right; width:350px; background:{{{BG|#153229}}};"
|-
{{#if:{{{image|}}}|
| colspan="2" style="background:{{{BG|#153229}}}; text-align:center; padding: 5px;" | [[File:{{{image}}}|frameless|upright=1.35]]
}}
|-
|-
! 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="background:{{{nameBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; font-size:120%; border-bottom:0px solid {{{lineBG|#999999}}};" | {{{name|{{PAGENAME}}}}}
Line 5: Line 12:
| colspan="2" style="text-align:center; font-size:90%; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | <small>From top to bottom, left to right:</small><br>{{{caption|}}}
| colspan="2" style="text-align:center; font-size:90%; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | <small>From top to bottom, left to right:</small><br>{{{caption|}}}
|-
|-
! colspan="2" style="background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" | Date
| style="background:{{{cellBG|#1B4236}}}; color:{{{color2|#fff}}}; padding: 10px 0 0 20px; line-height:14px; width:100px;" | '''Date'''
|-
| style="background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{date|}}}
| colspan="2" style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{date|}}}
|-
! colspan="2" style="background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" | Location
|-
| colspan="2" style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{location|}}}
|-
|-
! colspan="2" style="background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" | Result
| style="background:{{{cellBG|#1B4236}}}; color:{{{color2|#fff}}}; padding: 10px 0 0 20px; line-height:14px; width:100px;" | '''Location'''
| style="background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{location|}}}
|-
|-
| colspan="2" style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{result|}}}
| style="background:{{{cellBG|#1B4236}}}; color:{{{color2|#fff}}}; padding: 10px 0 0 20px; line-height:14px; width:100px;" | '''Result'''
| style="background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{result|}}}
|-
|-
! colspan="2" style="background:{{{headerBG|#153229}}}; color:{{{color2|#fff}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" | Participants
! 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 10px 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 10px 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 10px 20px; line-height:14px;" | {{{allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{axis|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 10px 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
! 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;" | '''Main Allied leaders:'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 10px 20px; line-height:14px;" | '''Main Allied leaders:'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''Main Axis leaders:'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 10px 20px; line-height:14px;" | '''Main Axis leaders:'''
|-
|-
| 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 10px 20px; line-height:14px;" | {{{allied_leaders|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{axis_leaders|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 10px 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
! 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 0 0 20px; line-height:14px;" | '''Military dead:'''<br>{{{military_dead_allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Military dead:'''<br>{{{military_dead_allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''Military dead:'''<br>{{{military_dead_axis|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Military dead:'''<br>{{{military_dead_axis|}}}
|-
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''Civilian dead:'''<br>{{{civilian_dead_allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Civilian dead:'''<br>{{{civilian_dead_allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''Civilian dead:'''<br>{{{civilian_dead_axis|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Civilian dead:'''<br>{{{civilian_dead_axis|}}}
|-
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''Total dead:'''<br>{{{total_dead_allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Total dead:'''<br>{{{total_dead_allies|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''Total dead:'''<br>{{{total_dead_axis|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Total dead:'''<br>{{{total_dead_axis|}}}
|-
|-
| colspan="2" style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | <small>{{{footnote|}}}</small>
| colspan="2" style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 10px 20px; line-height:14px;" | <small>{{{footnote|}}}</small>
|}
|}
```
This version places the headers for "Date," "Location," and "Result" to the side, while "Participants," "Commanders and leaders," and "Casualties and losses" have separate headers. The padding and line-height ensure proper spacing and readability.

Revision as of 00:55, 5 August 2024

Here's the revised template, with "Participants," "Commanders and leaders," and "Casualties and losses" having separate headers, while "Date," "Location," and "Result" have headers to the side:

```wiki

colspan="2" style="background:#153229; text-align:center; padding: 5px;"
InfoboxConflict
From top to bottom, left to right:
Date
Location
Result
Participants
Allies Axis
Commanders and leaders
Main Allied leaders: Main Axis leaders:
Casualties and losses
Military dead:
Military dead:
Civilian dead:
Civilian dead:
Total dead:
Total dead:

```

This version places the headers for "Date," "Location," and "Result" to the side, while "Participants," "Commanders and leaders," and "Casualties and losses" have separate headers. The padding and line-height ensure proper spacing and readability.