Template:Battle infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Text replacement - "vertical-align: *top; " to "")
m (Text replacement - "text-align:left; font-size:90%; padding:0 4px; " to "")
Line 55: Line 55:
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; text-align:center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Belligerents'''
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; text-align:center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Belligerents'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; 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="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{side2|}}}
{{{side2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{side3|}}}
{{{side3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{side4|}}}
{{{side4|}}}
|}}|}}
|}}|}}
Line 70: Line 70:
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; text-align:center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Commanders'''
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; text-align:center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Commanders'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; 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="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{commanders2|}}}
{{{commanders2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{commanders3|}}}
{{{commanders3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{commanders4|}}}
{{{commanders4|}}}
|}}|}}
|}}|}}
Line 85: Line 85:
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; text-align:center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Strength'''
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; text-align:center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Strength'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; 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="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{forces2|}}}
{{{forces2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{forces3|}}}
{{{forces3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{forces4|}}}
{{{forces4|}}}
|}}|}}
|}}|}}
Line 100: Line 100:
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; text-align:center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Casualties'''
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; text-align:center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Casualties'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; 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="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{casual2|}}}
{{{casual2|}}}
{{#if:{{{side3|}}}|
{{#if:{{{side3|}}}|
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{casual3|}}}
{{{casual3|}}}
{{#if:{{{side4|}}}|
{{#if:{{{side4|}}}|
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{!}} class="infoboxcell" style="border-left:1px solid #999999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{casual4|}}}
{{{casual4|}}}
|}}|}}
|}}|}}

Revision as of 23:33, September 14, 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=
|image=
|conflict=
|date=
|place=
|result=
|side1=
|side2=
|side3=
|side4=
|commanders1=
|commanders2=
|commanders3=
|commanders4=
|forces1=
|forces2=
|forces3=
|forces4=
|casual1=
|casual2=
|casual3=
|casual4=
|civilian=
}}