Template:Battle infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 50: Line 50:
{{!}}-}}
{{!}}-}}
| colspan="2" style="padding:0 !important" |
| colspan="2" style="padding:0 !important" |
{| class="details-table {{#if:{{{nocollapse|}}}||mw-collapsible mw-collapsed}}" style="color:{{{color|inherit}}}; padding:0; width:100%; margin:0" cellspacing="0"
{| class="details-table {{#if:{{{nocollapse|}}}||mw-collapsible mw-collapsed}}" style="color:{{{color|inherit}}}; width:100%; padding:0; margin:0" cellspacing="0"
|-
|-
{{#ifexpr:{{#if:{{{side1|}}}|1|0}} or {{#if:{{{side2|}}}|1|0}} or {{#if:{{{side3|}}}|1|0}} or {{#if:{{{side4|}}}|1|0}}|
{{#ifexpr:{{#if:{{{side1|}}}|1|0}} or {{#if:{{{side2|}}}|1|0}} or {{#if:{{{side3|}}}|1|0}} or {{#if:{{{side4|}}}|1|0}}|
! colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Details
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Details
{{!}}-
{{!}}-
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Belligerents
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Belligerents

Revision as of 14:43, September 15, 2022

Battle infobox
 

Usage instructions

Compatible up to four sides. Paste the following code into the top of an article, filling all known fields:

{{Battle infobox
|prev=
|conc=
|next=
|name=
|image=
|conflict=
|date=
|place=
|result=
|side1=
|side2=
|side3=
|side4=
|commanders1=
|commanders2=
|commanders3=
|commanders4=
|forces1=
|forces2=
|forces3=
|forces4=
|casual1=
|casual2=
|casual3=
|casual4=
|civilian1=
|civilian2=
|civilian3=
|civilian4=
}}