Template:Battle infobox: Difference between revisions
From Destinypedia, the Destiny wiki
m (Text replacement - " line-height: *14px;" to "") |
m (Text replacement - "class="infoboxsubheading" " to "") |
||
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''' | ||
{{!}}- | {{!}}- | ||
{{!}} 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}}};" {{!}} | ||
Line 68: | Line 68: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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''' | ||
{{!}}- | {{!}}- | ||
{{!}} 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}}};" {{!}} | ||
Line 83: | Line 83: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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''' | ||
{{!}}- | {{!}}- | ||
{{!}} 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}}};" {{!}} | ||
Line 98: | Line 98: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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''' | ||
{{!}}- | {{!}}- | ||
{{!}} 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}}};" {{!}} | ||
Line 113: | Line 113: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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}}}''' | ||
{{!}}- | {{!}}- | ||
{{!}} 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}}};" {{!}} |
Revision as of 22:48, 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= }}