Jump to content

Template:Infobox battle: Difference between revisions

From The Aetherium Expanse Wiki
Automated sync from wiki-stories repository
Automated sync from wiki-stories repository
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox infobox-battle" style="width: 26em; border: 1px solid #a2a9b1; background: #f8f9fa; padding: 0; float: right; clear: right; margin: 0 0 1em 1em; font-size: 0.95em; line-height: 1.45;">
<div class="infobox infobox-battle" style="width: 26em; border: 1px solid #a2a9b1; background: #f8f9fa; padding: 0; float: right; clear: right; margin: 0 0 1em 1em; font-size: 0.95em; line-height: 1.45;">
<div style="font-weight: bold; text-align: center; font-size: 1.1em; padding: 0.45em; background: #ccc; border-bottom: 1px solid #a2a9b1;">{{{name|Battle}}}</div>
<div style="font-weight: bold; text-align: center; font-size: 1.1em; padding: 0.45em; background: #ccc; border-bottom: 1px solid #a2a9b1;">{{{name|Battle}}}</div>
{{#if:{{{image|}}}|[[File:{{{image}}}|240px|alt={{{image_alt|}}}|class=infobox-image]]}}
{{#if:{{{image|}}}|<div class="infobox-image-wrap">[[File:{{{image}}}|frameless|{{#if:{{{image_alt|}}}|alt={{{image_alt|}}}|}}|class=infobox-image]]{{#if:{{{image_caption|}}}|<div class="infobox-image-caption">{{{image_caption}}}</div>}}</div>}}
<div style="padding: 0.55em;">
<div style="padding: 0.55em;">
{{#if:{{{conflict|}}}|'''Part of:''' {{{conflict}}}<br/>}}
{{#if:{{{conflict|}}}|'''Part of:''' {{{conflict}}}<br/>}}
Line 8: Line 8:
{{#if:{{{result|}}}|'''Result:''' {{{result}}}<br/>}}
{{#if:{{{result|}}}|'''Result:''' {{{result}}}<br/>}}
{{#if:{{{combatant1|}}}{{{combatant2|}}}|<table class="wikitable infobox-belligerents" style="width:100%; margin:0.5em 0; border-collapse:collapse;">
{{#if:{{{combatant1|}}}{{{combatant2|}}}|<table class="wikitable infobox-belligerents" style="width:100%; margin:0.5em 0; border-collapse:collapse;">
<tr>
<th colspan="2" style="text-align:center; background:#e8e8e8; padding:0.4em;">Belligerents</th>
</tr>
<tr>
<tr>
<th style="width:50%; background:#d0e4f7; text-align:center; padding:0.45em; vertical-align:bottom;">{{{combatant1|—}}}</th>
<th style="width:50%; background:#d0e4f7; text-align:center; padding:0.45em; vertical-align:bottom;">{{{combatant1|—}}}</th>

Latest revision as of 03:01, 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). Also install templates/mediawiki_common.css as MediaWiki:Common.css (synced automatically by the lore pipeline).