Template:Infobox battle: Difference between revisions
Appearance
Automated sync from wiki-stories repository |
Automated sync from wiki-stories repository |
||
| 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|}}}|<div class="infobox-image-wrap">[[File:{{{image}}}|frameless|alt={{{image_alt|}}}|class=infobox-image]]</div>}} | {{#if:{{{image|}}}|<div class="infobox-image-wrap">[[File:{{{image}}}|frameless|alt={{{image_alt|{{{image_caption|}}}}}|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/>}} | ||
Revision as of 01:49, 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).