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|}}}|[[File:{{{image}}}| | {{#if:{{{image|}}}|<div class="infobox-image-wrap">[[File:{{{image}}}|frameless|alt={{{image_alt|}}}|class=infobox-image]]</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> | ||
Revision as of 01:11, 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).