Template:Battle infobox: Difference between revisions
From Destinypedia, the Destiny wiki
m (Text replacement - "line-height:10px"" to "line-height:8px"") |
m (Text replacement - "font-size:90%; " 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=" | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Belligerents''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="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}}}" {{!}} | ||
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=" | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Commanders''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="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}}}" {{!}} | ||
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=" | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Strength''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="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}}}" {{!}} | ||
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=" | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Casualties''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="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}}}" {{!}} | ||
Line 113: | Line 113: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#if:{{{civilian|}}}| | {{#if:{{{civilian|}}}| | ||
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style=" | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="padding:0 4px; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''{{{civilian-title|Civilian casualties}}}''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style=" | {{!}} class="infoboxcell" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="padding:0 4px; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{civilian|}}} | {{{civilian|}}} | ||
{{!}}-|}} | {{!}}-|}} |
Revision as of 11:03, 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= |image= |conflict= |date= |place= |result= |side1= |side2= |side3= |side4= |commanders1= |commanders2= |commanders3= |commanders4= |forces1= |forces2= |forces3= |forces4= |casual1= |casual2= |casual3= |casual4= |civilian= }}