Template:Battle infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "colspan="2" style="text-align:center; line-height:8px"" to "class="infoboxfooter" colspan="2"")
No edit summary
Line 1: Line 1:
{| class="infobox battle" cellspacing="0" style="background:{{{BG|#7995CA}}}; color:{{{color1|#000}}}; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}}"
{| class="infobox battle" style="background:{{{BG|#7995CA}}}; color:{{{color1|#000}}}; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}}" cellspacing="0"
{{#if:{{{prev|}}}|
{{#if:{{{prev|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px !important" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px !important" {{!}}
Line 19: Line 19:
{{!}}-|}}
{{!}}-|}}
{{!}}-
{{!}}-
! class="infoboxheading" style="background:{{{nameBG|#7995CA}}}; color:#fff; line-height:22px" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|#7995CA}}}; color:#fff; line-height:22px" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{!}}-
{{!}}-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
! style="background:{{{imageBG|#BCD4E6}}}" colspan="2" class="infoboximage" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
! class="infoboximage" style="background:{{{imageBG|#BCD4E6}}}" colspan="2" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
}}
}}
{{!}}-
{{!}}-
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}}" cellspacing="0" style="color:{{{color|inherit}}}; padding:0; width:100%; margin:0"
{| class="details-table {{#if:{{{nocollapse|}}}||mw-collapsible mw-collapsed}}" style="color:{{{color|inherit}}}; padding:0; width:100%; 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
! colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} Details
{{!}}-
{{!}}-
! 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="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}}

Revision as of 14:34, 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=
}}