Template:Battle infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 57: Line 57:
! 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
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{side1|}}}
{{{side1|}}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{side2|}}}
{{{side2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxlabel" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{side3|}}}
{{{side3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|
Line 72: Line 72:
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Commanders
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Commanders
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{commanders1|}}}
{{{commanders1|}}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{commanders2|}}}
{{{commanders2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxlabel" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{commanders3|}}}
{{{commanders3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|
Line 87: Line 87:
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Strength
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Strength
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{forces1|}}}
{{{forces1|}}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{forces2|}}}
{{{forces2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxlabel" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{forces3|}}}
{{{forces3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|
{{!}} class="infoboxlabel" style="border-left:1px solid #999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{forces4|}}}
{{{forces4|}}}
|}}|}}
|}}|}}
Line 102: Line 102:
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Casualties
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Casualties
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{casual1|}}}
{{{casual1|}}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{casual2|}}}
{{{casual2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxlabel" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{casual3|}}}
{{{casual3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|
Line 117: Line 117:
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Civilian casualties
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Civilian casualties
{{!}}-
{{!}}-
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{civilian1|}}}
{{{civilian1|}}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{civilian2|}}}
{{{civilian2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxlabel" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{civilian3|}}}
{{{civilian3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|

Revision as of 15:16, 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=
}}