Template:BattleBox

{{#if:{{{campaignbox|}}} {{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} {{#if:{{{combatants_header|}}}|{{{combatants_header|}}}|Belligerents}} {{{combatant1|}}} {{#if:{{{combatant2|}}} }}{{#if:{{{combatant3|}}} }} }}{{#if:{{{combatant1a|}}}{{{combatant2a|}}}{{{combatant3a|}}} {{{combatant1a|}}} {{#if:{{{combatant2a|}}} }}{{#if:{{{combatant3a|}}} }} }}{{#if:{{{combatant1b|}}}{{{combatant2b|}}}{{{combatant3b|}}} {{{combatant1b|}}} {{#if:{{{combatant2b|}}} }}{{#if:{{{combatant3b|}}} }} }}{{#if:{{{combatant1c|}}}{{{combatant2c|}}}{{{combatant3c|}}} {{{combatant1c|}}} {{#if:{{{combatant2c|}}}| {{{combatant2c}}} }}{{#if:{{{combatant3c|}}} }} }}{{#if:{{{combatant1d|}}}{{{combatant2d|}}}{{{combatant3d|}}} {{{combatant1d|}}} {{#if:{{{combatant2d|}}} }}{{#if:{{{combatant3d|}}} }} }}{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} Commanders and leaders {{{commander1|}}} {{{commander2|}}} {{#if:{{{combatant3|}}} }} }}{{#if:{{{units1|}}}{{{units2|}}}{{{units3|}}} Units involved {{{units1|}}} {{{units2|}}} {{#if:{{{combatant3|}}} }} }}{{#if:{{{strength1|}}}{{{strength2|}}}{{{strength3|}}} Strength {{{strength1|}}} {{{strength2|}}} {{#if:{{{combatant3|}}} }} }}{{#if:{{{combatant3|}}} <td colspan="2" style="text-align:center; {{#if:{{{strength1|}}}{{{strength2|}}}|border-top:{{Military history infobox style|internal_border}}}}">{{{strength3}}} }}}}{{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}} <th colspan="{{#if:{{{combatant3|}}}|3|2}}" {{Military history infobox style|header_bar}}>Casualties and losses <td {{#if:{{{combatant3|}}}|style="width:33%; border-right:{{Military history infobox style|internal_border}}"|style="width:50%; border-right:{{Military history infobox style|internal_border}}"}}>{{{casualties1|}}} <td {{#if:{{{combatant3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}}>{{{casualties2|}}} {{#if:{{{combatant3|}}} }} }}{{#if:{{{combatant3|}}} <td colspan="2" style="text-align:center; {{#if:{{{casualties1|}}}{{{casualties2|}}}|border-top:{{Military history infobox style|internal_border}}}}">{{{casualties3}}} }}}}{{#if:{{{notes|}}} <td colspan="{{#if:{{{combatant3|}}}|3|2}}" style="font-size:90%; border-top:{{Military history infobox style|section_border}}">{{{notes}}} }}{{#if: {{{map_type|}}}| <td colspan="{{#if:{{{combatant3|}}}|3|2}}" style="border-top:{{Military history infobox style|internal_border}}"> {{Location map|{{{map_type}}}|relief={{{map_relief|}}}|lat={{{latitude}}}|long={{{longitude}}}|width={{{map_size|220}}}|float=center|border=none|marksize={{{map_marksize|8}}}|label={{{map_label|}}}|caption={{{map_caption|Location within {{{map_type}}}}}}}} }}{{#if:{{{campaignbox|}}} {{{campaignbox|}}} }} {{documentation}}
 * <td {{#if:{{{combatant3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}}>{{{combatant2}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}}">{{{combatant3}}}
 * <td {{#if:{{{combatant3a|}}}|style="width:33%; padding-left:0.25em; border-top:{{Military history infobox style|internal_border}}"|style="width:50%; padding-left:0.25em; border-top:{{Military history infobox style|internal_border}}"}}>{{{combatant2a}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}} border-top:{{Military history infobox style|internal_border}}">{{{combatant3a}}}
 * <td {{#if:{{{combatant3b|}}}|style="width:33%; padding-left:0.25em; border-top:{{Military history infobox style|internal_border}}"|style="width:50%; padding-left:0.25em; border-top:{{Military history infobox style|internal_border}}"}}>{{{combatant2b}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}} border-top:{{Military history infobox style|internal_border}}">{{{combatant3b}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}} border-top:{{Military history infobox style|internal_border}}">{{{combatant3c}}}
 * <td {{#if:{{{combatant3d|}}}|style="width:33%; padding-left:0.25em; border-top:{{Military history infobox style|internal_border}}"|style="width:50%; padding-left:0.25em; border-top:{{Military history infobox style|internal_border}}"}}>{{{combatant2d}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}} border-top:{{Military history infobox style|internal_border}}">{{{combatant3d}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}}">{{{commander3|}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}}">{{{units3|}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}}">{{{strength3|}}}
 * {{#if:{{{strength3|}}}
 * <td style="width:33%; padding-left:0.25em; border-left:{{Military history infobox style|internal_border}}">{{{casualties3|}}}
 * {{#if:{{{casualties3|}}}