Template:Battle infobox: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
No edit summary |
||
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="infoboxsubheading" 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="infoboxsubheading" 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}}| | ||
{{!}} class=" | {{!}} class="infoboxsubheading" 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}}| | ||
{{!}} class=" | {{!}} class="infoboxsubheading" 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}}};" {{!}} |
Revision as of 13:17, October 10, 2017
Battle infobox | |
---|---|
| |
Usage instructions
Compatible up to four sides. Paste the following code into the top of an article, filling all known fields:
{{Battle |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= }}