Template:InfoboxConflict: Difference between revisions

From Universe Wiki | Dawn of Victory 2289
Jump to navigation Jump to search
m (Templininstitute moved page Template:Conflict to Template:InfoboxConflict)
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:
```mediawiki
<noinclude><pre>
<noinclude><pre>
{{InfoboxConflict
{{InfoboxConflict
Line 29: Line 32:
{{!}}-
{{!}}-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
! style="background:{{{imageBG|#153229}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
! style="background:{{{imageBG|#153229}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}} {{{image|}}}
}}
}}
{{!}}-
{{!}}-
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}; text-align:center; font-size:120%;" colspan="{{#if:{{{side3|}}}|3|2}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{!}}-
{{!}}-
{{#if:{{{date|}}}|
{{#if:{{{date|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
'''{{{date-title|Date}}}''':
'''{{{date-title|Date}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
{{{date|}}}
{{{date|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{place|}}}|
{{#if:{{{place|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
'''{{{place-title|Place}}}''':
'''{{{place-title|Place}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
{{{place|}}}
{{{place|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{result|}}}|
{{#if:{{{result|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
'''{{{result-title|Result}}}''':
'''{{{result-title|Result}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
{{{result|}}}
{{{result|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{side1|}}}|
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{side1-title|Side 1}}}'''
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{side2-title|Side 2}}}'''
'''{{{side1-title|Side 1}}}''':
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{side3-title|Side 3}}}'''
{{{side1|}}}
}}
{{!}}-}}
{{!}}-
{{#if:{{{side1_leaders|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side1|}}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side2|}}}
'''{{{side1_leaders-title|Side 1 Leaders}}}''':
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side3|}}}
{{{side1_leaders|}}}
}}
{{!}}-}}
{{!}}-
{{#if:{{{side1_forces|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side1_leaders-title|Leaders}}}'''
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side2_leaders-title|Leaders}}}'''
'''{{{side1_forces-title|Side 1 Forces}}}''':
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side3_leaders-title|Leaders}}}'''
{{{side1_forces|}}}
}}
{{!}}-}}
{{!}}-
{{#if:{{{side2|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side1_leaders|}}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side2_leaders|}}}
'''{{{side2-title|Side 2}}}''':
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side3_leaders|}}}
{{{side2|}}}
}}
{{!}}-}}
{{!}}-
{{#if:{{{side2_leaders|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side1_forces-title|Forces}}}'''
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side2_forces-title|Forces}}}'''
'''{{{side2_leaders-title|Side 2 Leaders}}}''':
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side3_forces-title|Forces}}}'''
{{{side2_leaders|}}}
}}
{{!}}-}}
{{!}}-
{{#if:{{{side2_forces|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side1_forces|}}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side2_forces|}}}
'''{{{side2_forces-title|Side 2 Forces}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{{side2_forces|}}}
{{!}}-}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border
{{!}} class="infobox


-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
cell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side3_forces|}}}
'''{{{side3-title|Side 3}}}''':
}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}}-
{{{side3|}}}
{{!}}-}}
{{#if:{{{side3_leaders|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
'''{{{side3_leaders-title|Side 3 Leaders}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{{side3_leaders|}}}
{{!}}-}}
{{#if:{{{side3_forces|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
'''{{{side3_forces-title|Side 3 Forces}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{{side3_forces|}}}
{{!}}-}}
{{#if:{{{casualties1|}}}|
{{#if:{{{casualties1|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{casualties1-title|Casualties}}}'''
'''{{{casualties1-title|Casualties Side 1}}}''':
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{casualties2-title|Casualties}}}'''
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{#if:{{{side3|}}}|
{{{casualties1|}}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{casualties3-title|Casualties}}}'''
{{!}}-}}
}}
{{#if:{{{casualties2|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{casualties1|}}}
'''{{{casualties2-title|Casualties Side 2}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{casualties2|}}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{#if:{{{side3|}}}|
{{{casualties2|}}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{casualties3|}}}
{{!}}-}}
}}
{{#if:{{{casualties3|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
'''{{{casualties3-title|Casualties Side 3}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{{casualties3|}}}
{{!}}-}}
{{#if:{{{notes|}}}|
{{#if:{{{notes|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
'''{{{notes-title|Notes}}}''':
'''{{{notes-title|Notes}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
{{{notes|}}}
{{{notes|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{references|}}}|
{{#if:{{{references|}}}|
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px; width:100px;" {{!}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
'''{{{references-title|References}}}''':
'''{{{references-title|References}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan="{{#if:{{{side3|}}}|3|2}}" {{!}}
{{{references|}}}
{{{references|}}}
{{!}}-}}
{{!}}-}}
|}
|}
```
```

Revision as of 00:19, 5 August 2024

Here is the updated MediaWiki template with each side in its own column, and with side 3 disappearing if not used:

```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

```