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:
<noinclude>
Here is the updated template with customizable headers for "Group 1" and "Group 2" under participants:
==Usage==
To use this template, copy the following code and fill in the parameters:
 
<pre>
{{Infobox event
| image              =
| imageBG            =
| name                =
| nameBG              =
| color2              =
| caption            =
| cellBG              =
| date                =
| location            =
| result              =
| headerBG            =
| lineBG              =
| group1              =
| group2              =
| group1_leaders_header =
| group2_leaders_header =
| group1_leaders      =
| group2_leaders      =
| total_dead_group1  =
| total_dead_group2  =
}}
</pre>
</noinclude>


```mediawiki
{| 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 50: Line 23:
! 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%;" | '''Group 1'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px; width:50%;" | '''{{{group1_header|Group 1}}}'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px; width:50%;" | '''Group 2'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px; width:50%;" | '''{{{group2_header|Group 2}}}'''
|-
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{group1|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{group1|}}}
Line 58: Line 31:
! 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;" | '''{{{group1_leaders_header|Main leaders (Group 1):}}}'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''{{{group1_leaders_header|Main leaders ({{{group1_header|Group 1}}}):}}}'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''{{{group2_leaders_header|Main leaders (Group 2):}}}'''
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | '''{{{group2_leaders_header|Main leaders ({{{group2_header|Group 2}}}):}}}'''
|-
|-
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{group1_leaders|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 0 0 20px; line-height:14px;" | {{{group1_leaders|}}}
Line 69: Line 42:
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Total dead:'''<br>{{{total_dead_group2|}}}
| style="text-align:center; background:{{{cellBG|#1B4236}}}; padding: 10px 10px 10px 20px; line-height:14px;" | '''Total dead:'''<br>{{{total_dead_group2|}}}
|}
|}
```

Revision as of 05:57, 5 August 2024

Here is the updated template with customizable headers for "Group 1" and "Group 2" under participants:

```mediawiki

InfoboxConflict
Date
Location
Result
Participants
Group 1 Group 2
Commanders and leaders
Main leaders (Group 1): Main leaders (Group 2):
Casualties and losses
Total dead:
Total dead:

```