Template:Infobox Battle: Difference between revisions
From Knightspire Wiki
Jump to navigationJump to search
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> |
<includeonly> |
||
<div class="infobox" style="background:#fff; width:22em; border:1px solid #aaa; padding:0.5em; float:right;"> |
|||
{| class="infobox-battle" |
|||
<div style="background:#d0e5f5; text-align:center; font-size:110%; font-weight:bold;"> |
|||
|- |
|||
! colspan="2" class="header" | |
|||
{{{battle|{{PAGENAME}}}}} |
{{{battle|{{PAGENAME}}}}} |
||
</div> |
|||
{{#if: {{{image|}}} | |
|||
<div style="text-align:center; margin:0.5em 0;"> |
|||
[[File:{{{image}}}|250px]] |
[[File:{{{image}}}|250px]] |
||
| ⚫ | |||
{{{caption|}}} |
|||
</div> |
|||
| ⚫ | |||
{{{caption}}} |
|||
</div> |
</div> |
||
}} |
}} |
||
<table style="width:100%; border-collapse:collapse; text-align:left;"> |
|||
|- {{#if: {{{part_of|}}} | | style="display:none;" }} |
|||
! Part of |
|||
| {{{part_of}}} |
|||
{{#if: {{{part_of|}}} | |
|||
<tr><th>Date</th><td>{{{date|}}}</td></tr> |
|||
! Date |
|||
<tr><th>Part of</th><td>{{{part_of}}}</td></tr> |
|||
| {{{date}}} |
|||
| ⚫ | |||
{{#if: {{{location|}}} | |
|||
<tr><th>Location</th><td>{{{location}}}</td></tr> |
|||
! Location |
|||
}} |
|||
| {{{location}}} |
|||
{{#if: {{{outcome|}}} | |
|||
<tr><th>Result</th><td>{{{outcome}}}</td></tr> |
|||
! Outcome |
|||
}} |
|||
| {{{outcome}}} |
|||
<tr><th colspan="2" style="background:#d0e5f5; text-align:center;">Belligerents</th></tr> |
|||
|- {{#if: {{{combatant1|}}} | | style="display:none;" }} |
|||
<tr class="center-section"> |
|||
! Combatants |
|||
<td>{{{combatant1|}}}</td> |
|||
| ⚫ | |||
<br>vs<br> |
|||
</tr> |
|||
| ⚫ | |||
<tr><th colspan="2" style="background:#d0e5f5; text-align:center;">Commanders</th></tr> |
|||
|- {{#if: {{{commander1|}}} | | style="display:none;" }} |
|||
<tr class="center-section"> |
|||
! Commanders |
|||
<td>{{{commander1|}}}</td> |
|||
| ⚫ | |||
<br>vs<br> |
|||
</tr> |
|||
| ⚫ | |||
<tr><th colspan="2" style="background:#d0e5f5; text-align:center;">Strength</th></tr> |
|||
|- {{#if: {{{strength1|}}} | | style="display:none;" }} |
|||
<tr class="center-section"> |
|||
! Strength |
|||
<td>{{{strength1|}}}</td> |
|||
| ⚫ | |||
<br>vs<br> |
|||
</tr> |
|||
| ⚫ | |||
|- {{#if: {{{casualties1|}}} | | style="display:none;" }} |
|||
! Casualties |
|||
| {{{casualties1}}} |
|||
<br>vs<br> |
|||
| ⚫ | |||
<tr><th colspan="2" style="background:#d0e5f5; text-align:center;">Casualties</th></tr> |
|||
| ⚫ | |||
<tr class="center-section"> |
|||
! Result |
|||
<td>{{{casualties1|}}}</td> |
|||
| ⚫ | |||
</tr> |
|||
| ⚫ | |||
| ⚫ | |||
<tr><th>Summary</th><td>{{{result}}}</td></tr> |
|||
}} |
|||
</table> |
|||
</div> |
|||
</includeonly> |
</includeonly> |
||
Revision as of 06:57, 9 May 2026
Usage
{{Infobox Battle
| battle = Battle of Placename
| image = placename_battle.png
| caption = image_of_the_battle_of_placename.png
| part_of = First Countryname Wars
| date = 2027-06-14
| location = Placename, Countryname
| outcome = Countryname Victory
| combatant1 = Countryname
| combatant2 = Evilnation
| commander1 = Lord Country
| commander2 = King Evil
| strength1 = ~1,200 troops
| strength2 = ~1,800 mercenaries
| casualties1 = ~300 killed or wounded
| casualties2 = ~900 killed or wounded
| result = Countryname forces are victorius, Evilnation retreats
}}
Battle of Placename
image_of_the_battle_of_placename.png
| Date | 2027-06-14 |
|---|---|
| Part of | First Countryname Wars |
| Location | Placename, Countryname |
| Result | Countryname Victory |
| Belligerents | |
| Countryname | Evilnation |
| Commanders | |
| Lord Country | King Evil |
| Strength | |
| ~1,200 troops | ~1,800 mercenaries |
| Casualties | |
| ~300 killed or wounded | ~900 killed or wounded |
| Summary | Countryname forces are victorius, Evilnation retreats |
TemplateData
Infobox for battles and military engagements.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Battle Name | battle | no description | String | required |
| Image | image | no description | File | optional |
| Image Caption | caption | no description | String | optional |
| Part of Campaign | part_of | no description | String | optional |
| Date | date | no description | String | optional |
| Location | location | no description | String | optional |
| Outcome | outcome | no description | String | optional |
| Combatant 1 | combatant1 | no description | String | optional |
| Combatant 2 | combatant2 | no description | String | optional |
| Commander 1 | commander1 | no description | String | optional |
| Commander 2 | commander2 | no description | String | optional |
| Strength 1 | strength1 | no description | String | optional |
| Strength 2 | strength2 | no description | String | optional |
| Casualties 1 | casualties1 | no description | String | optional |
| Casualties 2 | casualties2 | no description | String | optional |
| Result Summary | result | no description | String | optional |