Template:Battle infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Text replacement - "px;"" to "px"")
m (Text replacement - "}}};"" to "}}}"")
Line 1: Line 1:
{| class="infobox" cellspacing="0" style="background:{{{BG|#7995CA}}}; color:{{{color1|#000}}}; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}};"
{| class="infobox" cellspacing="0" style="background:{{{BG|#7995CA}}}; color:{{{color1|#000}}}; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}}"
{{#if:{{{prev|}}}|
{{#if:{{{prev|}}}|
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}; padding: 0 0 0 4px; width:70px !important;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}; padding: 0 0 0 4px; width:70px !important;" {{!}}
'''{{{prev-title|Previous}}}''':
'''{{{prev-title|Previous}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}" {{!}}
{{{prev|}}}
{{{prev|}}}
{{!}}-|}}
{{!}}-|}}
Line 9: Line 9:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
'''{{{conc-title|Concurrent}}}''':
'''{{{conc-title|Concurrent}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}" {{!}}
{{{conc|}}}
{{{conc|}}}
{{!}}-|}}
{{!}}-|}}
Line 15: Line 15:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
'''{{{next-title|Next}}}''':
'''{{{next-title|Next}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; font-size:90%; border-top:1px solid {{{lineBG|#999999}}}" {{!}}
{{{next|}}}
{{{next|}}}
{{!}}-|}}
{{!}}-|}}
Line 28: Line 28:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
'''{{{conflict-title|Conflict}}}''':
'''{{{conflict-title|Conflict}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{conflict|}}}
{{{conflict|}}}
{{!}}-}}
{{!}}-}}
Line 34: Line 34:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
'''{{{date-title|Date}}}''':
'''{{{date-title|Date}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{date|}}}
{{{date|}}}
{{!}}-}}
{{!}}-}}
Line 40: Line 40:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
'''{{{place-title|Fronts}}}''':
'''{{{place-title|Fronts}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{place|}}}
{{{place|}}}
{{!}}-}}
{{!}}-}}
Line 46: Line 46:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; padding: 0 0 0 4px" {{!}}
'''{{{result-title|Outcome}}}''':
'''{{{result-title|Outcome}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{result|}}}
{{{result|}}}
{{!}}-}}
{{!}}-}}
Line 53: Line 53:
|-
|-
{{#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="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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; vertical-align:top; 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; 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; vertical-align:top; width:25%; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{side4|}}}
{{{side4|}}}
|}}|}}
|}}|}}
{{!}}-|}}
{{!}}-|}}
{{#ifexpr:{{#if:{{{commanders1|}}}|1|0}} or {{#if:{{{commanders2|}}}|1|0}} or {{#if:{{{commanders3|}}}|1|0}} or {{#if:{{{commanders4|}}}|1|0}}|
{{#ifexpr:{{#if:{{{commanders1|}}}|1|0}} or {{#if:{{{commanders2|}}}|1|0}} or {{#if:{{{commanders3|}}}|1|0}} or {{#if:{{{commanders4|}}}|1|0}}|
{{!}} 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; vertical-align:top; 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; 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; vertical-align:top; width:25%; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{commanders4|}}}
{{{commanders4|}}}
|}}|}}
|}}|}}
{{!}}-|}}
{{!}}-|}}
{{#ifexpr:{{#if:{{{forces1|}}}|1|0}} or {{#if:{{{forces2|}}}|1|0}} or {{#if:{{{forces3|}}}|1|0}} or {{#if:{{{forces4|}}}|1|0}}|
{{#ifexpr:{{#if:{{{forces1|}}}|1|0}} or {{#if:{{{forces2|}}}|1|0}} or {{#if:{{{forces3|}}}|1|0}} or {{#if:{{{forces4|}}}|1|0}}|
{{!}} 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; vertical-align:top; 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; 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; vertical-align:top; width:25%; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{forces4|}}}
{{{forces4|}}}
|}}|}}
|}}|}}
{{!}}-|}}
{{!}}-|}}
{{#ifexpr:{{#if:{{{casual1|}}}|1|0}} or {{#if:{{{casual2|}}}|1|0}} or {{#if:{{{casual3|}}}|1|0}} or {{#if:{{{casual4|}}}|1|0}}|
{{#ifexpr:{{#if:{{{casual1|}}}|1|0}} or {{#if:{{{casual2|}}}|1|0}} or {{#if:{{{casual3|}}}|1|0}} or {{#if:{{{casual4|}}}|1|0}}|
{{!}} 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; vertical-align:top; 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; 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; vertical-align:top; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; 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; vertical-align:top; width:25%; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" style="text-align:left; font-size:90%; padding:0 4px; border-left:1px solid #999999; vertical-align:top; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{casual4|}}}
{{{casual4|}}}
|}}|}}
|}}|}}
{{!}}-|}}
{{!}}-|}}
{{#if:{{{civilian|}}}|
{{#if:{{{civilian|}}}|
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; padding:0 4px; text-align: center; background: {{{sectionBG|#B4C5E3}}};" {{!}} '''{{{civilian-title|Civilian casualties}}}'''
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; padding:0 4px; text-align: center; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''{{{civilian-title|Civilian casualties}}}'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; padding:0 4px; text-align: center; vertical-align:top; background:{{{fieldBG|#F0F8FF}}};" {{!}}
{{!}} class="infoboxcell" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; padding:0 4px; text-align: center; vertical-align:top; background:{{{fieldBG|#F0F8FF}}}" {{!}}
{{{civilian|}}}
{{{civilian|}}}
{{!}}-|}}
{{!}}-|}}

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