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:
Here is the updated MediaWiki template with each side in its own column, and with side 3 disappearing if not used:
I see the issue. Let's correct the template to ensure it displays properly when `side3` is not provided.
 
Here is the revised template:


```mediawiki
```mediawiki
Line 55: Line 57:
{{{result|}}}
{{{result|}}}
{{!}}-}}
{{!}}-}}
{{!}}-
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{side1-title|Side 1}}}'''
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{side1-title|Side 1}}}'''
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{side2-title|Side 2}}}'''
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{side2-title|Side 2}}}'''
Line 87: Line 90:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side1_forces|}}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side1_forces|}}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side2_forces|}}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side2_forces|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}
{{!}} class="infobox


cell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side3_forces|}}}
|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side3_forces|}}}
}}
}}
{{!}}-
{{!}}-
Line 120: Line 123:
|}
|}
```
```
This should fix the issue by ensuring the table cells and columns align properly when `side3` is not provided.

Revision as of 00:23, 5 August 2024

I see the issue. Let's correct the template to ensure it displays properly when `side3` is not provided.

Here is the revised template:

```mediawiki

{{InfoboxConflict
| image = 
| imageBG = 
| name = 
| nameBG = 
| color2 = 
| date = 
| place = 
| result = 
| side1 = 
| side1_leaders = 
| side1_forces = 
| side2 = 
| side2_leaders = 
| side2_forces = 
| side3 = 
| side3_leaders = 
| side3_forces = 
| casualties1 = 
| casualties2 = 
| casualties3 = 
| notes = 
| references = 
}}
{{#if:|
InfoboxConflict
Side 1 Side 2
Leaders Leaders
Forces Forces
Casualties Casualties

```

This should fix the issue by ensuring the table cells and columns align properly when `side3` is not provided.