Template:InfoboxConflict: Difference between revisions

From Universe Wiki | Dawn of Victory 2289
Jump to navigation Jump to search
No edit summary
Tag: Reverted
(Undo revision 1375 by Templininstitute (talk))
Tag: Undo
Line 1: Line 1:
Here is the updated template with conditional display for "Military dead," "Civilian dead," and "Total dead" sections:
```html
{| class="infobox" cellspacing="0" cellpadding="10px" style="float:right; clear:right; width:375px; padding:10px; background:{{{BG|#153229}}};"
{| class="infobox" cellspacing="0" cellpadding="10px" style="float:right; clear:right; width:375px; padding:10px; background:{{{BG|#153229}}};"
{{!}}-
{{!}}-
Line 39: Line 36:
! 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
|-
|-
{{#if:{{{military_dead_allies|}}}{{{military_dead_axis|}}}|
| 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 10px 10px 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_axis|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Military dead:'''<br>{{{military_dead_axis|}}}
|-
|-
}}
{{#if:{{{civilian_dead_allies|}}}{{{civilian_dead_axis|}}}|
| 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 10px 10px 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_axis|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Civilian dead:'''<br>{{{civilian_dead_axis|}}}
|-
|-
}}
{{#if:{{{total_dead_allies|}}}{{{total_dead_axis|}}}|
| 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 10px 10px 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_axis|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Total dead:'''<br>{{{total_dead_axis|}}}
}}
|}
|}
```

Revision as of 05:38, 5 August 2024

InfoboxConflict
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: