Template:Battle infobox: Difference between revisions
From Destinypedia, the Destiny wiki
m (Text replacement - "| " to "| ") |
m (Text replacement - "{{PAGENAME}}" to "{{PAGETITLE}}") |
||
(38 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox | {| class="infobox" 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=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px !important" {{!}} | ||
{{{prev-title|Previous}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{prev | {{{prev}}} | ||
}} | |||
|- | |||
{{#if:{{{conc|}}}| | {{#if:{{{conc|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{conc-title|Concurrent}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{conc}}} | |||
}} | |||
|- | |||
{{#if:{{{next|}}}| | {{#if:{{{next|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{next-title|Next}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{next}}} | |||
}} | |||
|- | |||
! class="infoboxheading" colspan="2" style="background:{{{nameBG|#7995CA}}}; color:#fff; line-height:22px" | {{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}} | |||
|- | |||
! class="infoboxheading" style="background:{{{nameBG|#7995CA}}} | |||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
! style="background:{{{imageBG|#BCD4E6}}} | {{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#BCD4E6}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}} | ||
}} | }} | ||
|- | |||
{{#if:{{{conflict|}}}| | {{#if:{{{conflict|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{conflict-title|Conflict}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{conflict | {{{conflict}}} | ||
}} | |||
|- | |||
{{#if:{{{date|}}}| | {{#if:{{{date|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{date-title|Date}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{date | {{{date}}} | ||
}} | |||
|- | |||
{{#if:{{{place|}}}| | {{#if:{{{place|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{place-title|Fronts}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{place | {{{place}}} | ||
}} | |||
|- | |||
{{#if:{{{result|}}}| | {{#if:{{{result|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{result-title|Outcome}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{result | {{{result}}} | ||
}} | |||
|- | |||
| colspan="2" | | | colspan="2" | | ||
{| cellspacing="0" style="color:{{{ | {| cellspacing="0" style="color:{{{color2|inherit}}}; padding:0; width:100%; margin: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}}| | ||
! class="infoboxsubheading" 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}}}" {{!}} | ||
{{{side1|}}} | {{{side1|}}} | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{side2|}}} | {{{side2|}}} | ||
{{#if:{{{side3|}}}| | {{#if:{{{side3|}}}| | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{side3|}}} | {{{side3|}}} | ||
{{#if:{{{side4|}}}| | {{#if:{{{side4|}}}| | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; 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}}| | ||
! class="infoboxsubheading" 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}}}" {{!}} | ||
{{{commanders1|}}} | {{{commanders1|}}} | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{commanders2|}}} | {{{commanders2|}}} | ||
{{#if:{{{side3|}}}| | {{#if:{{{side3|}}}| | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{commanders3|}}} | {{{commanders3|}}} | ||
{{#if:{{{side4|}}}| | {{#if:{{{side4|}}}| | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; 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}}| | ||
! class="infoboxsubheading" 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}}}" {{!}} | ||
{{{forces1|}}} | {{{forces1|}}} | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{forces2|}}} | {{{forces2|}}} | ||
{{#if:{{{side3|}}}| | {{#if:{{{side3|}}}| | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{forces3|}}} | {{{forces3|}}} | ||
{{#if:{{{side4|}}}| | {{#if:{{{side4|}}}| | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; 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}}| | ||
! class="infoboxsubheading" 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}}}" {{!}} | ||
{{{casual1|}}} | {{{casual1|}}} | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{casual2|}}} | {{{casual2|}}} | ||
{{#if:{{{side3|}}}| | {{#if:{{{side3|}}}| | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:{{#if:{{{side4|}}}|25%|}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{casual3|}}} | {{{casual3|}}} | ||
{{#if:{{{side4|}}}| | {{#if:{{{side4|}}}| | ||
{{!}} class="infoboxcell" style="border-left:1px solid # | {{!}} class="infoboxcell" style="border-left:1px solid #999; width:25%; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
{{{casual4|}}} | {{{casual4|}}} | ||
|}}|}} | |}}|}} | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#if:{{{civilian|}}}| | {{#if:{{{civilian|}}}| | ||
! class="infoboxsubheading" 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}}} | ||
}} | |||
|- | |||
|} | |} | ||
|- | |||
| | | class="infoboxfooter" colspan="2" | | ||
|}<noinclude> | |}<noinclude>{{clear}} | ||
{{ | ==Usage instructions== | ||
Compatible up to four sides. Paste the following code into the top of an article, filling all known fields: | Compatible up to four sides. Paste the following code into the top of an article, filling all known fields: | ||
<pre>{{Battle infobox | <pre> | ||
{{Battle infobox | |||
|prev= | |prev= | ||
|conc= | |conc= | ||
|next= | |next= | ||
|name= | |||
|image= | |image= | ||
|conflict= | |conflict= | ||
Line 152: | Line 160: | ||
|casual4= | |casual4= | ||
|civilian= | |civilian= | ||
}}</pre> | }} | ||
</pre> | |||
[[Category:Infobox templates]]</noinclude> | [[Category:Infobox templates]]</noinclude> |
Latest revision as of 10:44, July 9, 2024
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= |civilian= }}