Jump to content

Template:Infobox battle: Difference between revisions

From The Aetherium Expanse Wiki
No edit summary
No edit summary
Line 1: Line 1:
<div class="infobox" style="width: 24em; border: 1px solid #a2a9b1; background: #f8f9fa; padding: 0; float: right; clear: right; margin: 0 0 1em 1em; font-size: 100%; line-height: 1.35em;">
<div class="infobox" style="width: 24em; border: 1px solid #a2a9b1; background: #f8f9fa; padding: 0; float: right; clear: right; margin: 0 0 1em 1em; font-size: 88%; line-height: 1.35em;">
<div style="font-weight: bold; text-align: center; font-size: 1.15em; padding: 0.4em; background: #ccc; border-bottom: 1px solid #a2a9b1;">{{{name|Battle}}}</div>
<div style="font-weight: bold; text-align: center; font-size: 1.15em; padding: 0.4em; background: #ccc; border-bottom: 1px solid #a2a9b1;">{{{name|Battle}}}</div>
{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright|alt={{{image_alt|}}}|class=infobox-image]]}}
<div style="padding: 0.5em;">
<div style="padding: 0.5em;">
{{#if:{{{conflict|}}}|'''Part of:''' {{{conflict}}}<br/>}}
{{#if:{{{conflict|}}}|'''Part of:''' {{{conflict}}}<br/>}}
Line 6: Line 7:
{{#if:{{{place|}}}|'''Place:''' {{{place}}}<br/>}}
{{#if:{{{place|}}}|'''Place:''' {{{place}}}<br/>}}
{{#if:{{{result|}}}|'''Result:''' {{{result}}}<br/>}}
{{#if:{{{result|}}}|'''Result:''' {{{result}}}<br/>}}
{{#if:{{{combatant1|}}}{{{combatant2|}}}|<table class="wikitable" style="width:100%; margin:0.4em 0; border-collapse:collapse; font-size:100%;">
{{#if:{{{combatant1|}}}{{{combatant2|}}}|<table class="wikitable" style="width:100%; margin:0.4em 0; border-collapse:collapse; font-size:95%;">
<tr>
<tr>
<th style="width:50%; background:#d0e4f7; text-align:center; padding:0.3em;">Belligerents</th>
<th style="width:50%; background:#d0e4f7; text-align:center; padding:0.3em;">Belligerents</th>
Line 12: Line 13:
</tr>
</tr>
<tr>
<tr>
<td style="vertical-align:top; padding:0.4em; border-left:3px solid #004488;">{{{combatant1|—}}}{{#if:{{{commander1|}}}|<br/><p>'''Commander:''' {{{commander1}}}</p>}}{{#if:{{{strength1|}}}|<br/><p>'''Strength:''' {{{strength1}}}</p>}}{{#if:{{{units1|}}}|<br/><p>'''Units:''' {{{units1}}}</p>}}{{#if:{{{casualties1|}}}|<br/><p>'''Casualties:''' {{{casualties1}}}</p>}}
<td style="vertical-align:top; padding:0.4em; border-left:3px solid #004488;">{{{combatant1|—}}}{{#if:{{{commander1|}}}|<br/><small>'''Commander:''' {{{commander1}}}</small>}}{{#if:{{{strength1|}}}|<br/><small>'''Strength:''' {{{strength1}}}</small>}}{{#if:{{{units1|}}}|<br/><small>'''Units:''' {{{units1}}}</small>}}{{#if:{{{casualties1|}}}|<br/><small>'''Casualties:''' {{{casualties1}}}</small>}}
</td>
</td>
<td style="vertical-align:top; padding:0.4em; border-right:3px solid #880000;">{{{combatant2|—}}}{{#if:{{{commander2|}}}|<br/><p>'''Commander:''' {{{commander2}}}</p>}}{{#if:{{{strength2|}}}|<br/><p>'''Strength:''' {{{strength2}}}</p>}}{{#if:{{{units2|}}}|<br/><p>'''Units:''' {{{units2}}}</p>}}{{#if:{{{casualties2|}}}|<br/><p>'''Casualties:''' {{{casualties2}}}</p>}}
<td style="vertical-align:top; padding:0.4em; border-right:3px solid #880000;">{{{combatant2|—}}}{{#if:{{{commander2|}}}|<br/><small>'''Commander:''' {{{commander2}}}</small>}}{{#if:{{{strength2|}}}|<br/><small>'''Strength:''' {{{strength2}}}</small>}}{{#if:{{{units2|}}}|<br/><small>'''Units:''' {{{units2}}}</small>}}{{#if:{{{casualties2|}}}|<br/><small>'''Casualties:''' {{{casualties2}}}</small>}}
</td>
</td>
</tr>
</tr>

Revision as of 00:54, 21 June 2026

Battle




Install as Template:Infobox battle. Requires ParserFunctions. Fields: name, date, place, result, conflict, combatant1, combatant2, commander1, commander2, strength1, strength2, units1, units2, casualties1, casualties2, combatants (legacy fallback).