Template:Battle infobox: Difference between revisions
From Halopedia, the Halo wiki
m (Text replacement - "<div style="clear:both">{{{caption}}}</div>" to "<div>{{{caption}}}</div>") |
m (Text replacement - "text-align: *center; " to "") |
||
Line 19: | Line 19: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{!}}- | {{!}}- | ||
! style="background:{{{nameBG|#7995CA}}} | ! style="background:{{{nameBG|#7995CA}}}; font-size:120%; color:#ffffff; line-height:22px" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ||
{{!}}- | {{!}}- | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
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% | ! colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; background: {{{sectionBG|#B4C5E3}}}" {{!}} Details | ||
{{!}}- | {{!}}- | ||
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90% | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Belligerents''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | {{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
Line 70: | Line 70: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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% | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Commanders''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | {{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
Line 85: | Line 85: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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% | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Strength''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | {{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
Line 100: | Line 100: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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% | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Casualties''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | {{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
Line 115: | Line 115: | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#ifexpr:{{#if:{{{civilian1|}}}|1|0}} or {{#if:{{{civilian2|}}}|1|0}} or {{#if:{{{civilian3|}}}|1|0}} or {{#if:{{{civilian4|}}}|1|0}}| | {{#ifexpr:{{#if:{{{civilian1|}}}|1|0}} or {{#if:{{{civilian2|}}}|1|0}} or {{#if:{{{civilian3|}}}|1|0}} or {{#if:{{{civilian4|}}}|1|0}}| | ||
{{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90% | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="font-size:90%; background: {{{sectionBG|#B4C5E3}}}" {{!}} '''Civilian casualties''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | {{!}} class="infoboxlabel" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; background:{{{fieldBG|#F0F8FF}}}" {{!}} | ||
Line 131: | Line 131: | ||
|} | |} | ||
{{!}}- | {{!}}- | ||
| colspan="2" style=" | | colspan="2" style="background:transparent; padding:0; font-size:1px; line-height:10px" | | ||
|}<templatestyles src="Battle infobox.css"/><includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Conflict {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude> | |}<templatestyles src="Battle infobox.css"/><includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Conflict {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude> | ||
{{Clear}} | {{Clear}} |
Revision as of 09:50, 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= |name= |image= |conflict= |date= |place= |result= |side1= |side2= |side3= |side4= |commanders1= |commanders2= |commanders3= |commanders4= |forces1= |forces2= |forces3= |forces4= |casual1= |casual2= |casual3= |casual4= |civilian1= |civilian2= |civilian3= |civilian4= }}