Template:InfoboxConflict: Difference between revisions
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; | {{!}} 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; | {{!}} 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; | {{!}} 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|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{# | ! 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}}}''' | |||
'''{{{ | {{#if:{{{side3|}}}| | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; | ! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{side3-title|Side 3}}}''' | ||
{{{ | }} | ||
{{!}}- | |||
{{#if:{{{ | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side1|}}} | ||
{{!}} class=" | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side2|}}} | ||
'''{{{side1_leaders-title| | {{#if:{{{side3|}}}| | ||
{{!}} class=" | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side3|}}} | ||
{{{ | }} | ||
{{!}}- | |||
{{#if:{{{ | {{!}} 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 | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side2_leaders-title|Leaders}}}''' | ||
'''{{{ | {{#if:{{{side3|}}}| | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236 | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side3_leaders-title|Leaders}}}''' | ||
{{{ | }} | ||
{{!}}- | |||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side1_leaders|}}} | |||
{{!}} class=" | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side2_leaders|}}} | ||
{{#if:{{{side3|}}}| | |||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236 | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side3_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 | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side2_forces-title|Forces}}}''' | ||
'''{{{ | {{#if:{{{side3|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{side3_forces-title|Forces}}}''' | ||
{{{ | }} | ||
{{!}}- | |||
{{#if:{{{ | {{!}} 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 | {{!}} 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}}}; | |||
{{{side2_forces|} | |||
{{#if:{{{side3|}}}| | {{#if:{{{side3|}}}| | ||
{{!}} class=" | {{!}} class="infobox | ||
cell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{side3_forces|}}} | |||
}} | |||
{{!}}- | |||
{{!}}- | |||
{{#if:{{{casualties1|}}}| | {{#if:{{{casualties1|}}}| | ||
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236 | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{casualties1-title|Casualties}}}''' | ||
'''{{{casualties1-title|Casualties | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{casualties2-title|Casualties}}}''' | ||
{{!}} class=" | {{#if:{{{side3|}}}| | ||
{{{ | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} '''{{{casualties3-title|Casualties}}}''' | ||
}} | |||
{{#if:{{{ | {{!}}- | ||
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236 | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{casualties1|}}} | ||
'''{{{ | {{!}} 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 | {{#if:{{{side3|}}}| | ||
{{{ | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{casualties3|}}} | ||
}} | |||
{{!}}- | |||
{{!}} class=" | |||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236 | |||
{{{casualties3|}}} | |||
{{!}}- | |||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236 | {{!}} 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 | {{!}} 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 | {{!}} 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 | {{!}} 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 |
```