Template:Battle infobox: Difference between revisions
From Halopedia, the Halo wiki
m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to " {{Infobox|entry|title=$2|content=$1}}") Tag: Reverted |
m (Text replacement - "dummy edit" to "Category:Infobox templates") Tag: Manual revert |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox battle" style="background:{{{BG|#7995CA}}}; color:{{{color1|#000}}}; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}}" cellspacing="0" | {| class="infobox battle" style="background:{{{BG|#7995CA}}}; color:{{{color1|#000}}}; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}}" cellspacing="0" | ||
{{#if:{{{prev|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}} | |||
{{{prev-title|Previous}}}: | |||
! class="infoboxheading" colspan="2" style="background:{{{nameBG|#7995CA}}}; color:#fff; line-height:22px" | {{#if:{{{name|}}}|{{{name}}}|{{ | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{prev}}} | |||
}} | |||
|- | |||
{{#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}}}" {{!}} | |||
{{{conc}}} | |||
}} | |||
|- | |||
{{#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}}}" {{!}} | |||
{{{next}}} | |||
}} | |||
|- | |||
! class="infoboxheading" colspan="2" style="background:{{{nameBG|#7995CA}}}; color:#fff; line-height:22px" | {{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}} | |||
|- | |- | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
Line 9: | Line 27: | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{conflict|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{conflict-title|Conflict}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{conflict}}} | |||
}} | |||
|- | |||
{{#if:{{{date|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{date-title|Date}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{date}}} | |||
}} | |||
|- | |||
{{#if:{{{place|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{place-title|Location}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{place}}} | |||
}} | |||
|- | |||
{{#if:{{{result|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{result-title|Outcome}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{result}}} | |||
}} | |||
|- | |||
| colspan="2" style="padding:0 !important" | | | colspan="2" style="padding:0 !important" | | ||
{| class="details-table {{#if:{{{nocollapse|}}}||mw-collapsible mw-collapsed}}" style="color:{{{ | {| class="details-table {{#if:{{{nocollapse|}}}||mw-collapsible mw-collapsed}}" style="color:{{{color2|inherit}}}; width:100%; padding:0; margin:0" cellspacing="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}}| | ||
Line 95: | Line 137: | ||
|} | |} | ||
|- | |- | ||
| class="infoboxfooter" colspan="2" | | |||
{{ | |}<templatestyles src="Battle infobox.css"/><includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Conflict}}}}}</includeonly><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= | ||
Line 130: | Line 173: | ||
|civilian3= | |civilian3= | ||
|civilian4= | |civilian4= | ||
}}</pre> | }} | ||
</pre> | |||
[[Category:Infobox templates]]</noinclude> | [[Category:Infobox templates]]</noinclude> |
Latest revision as of 10:11, June 14, 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= |civilian1= |civilian2= |civilian3= |civilian4= }}