Template:Infobox Battle: Difference between revisions

From Knightspire Wiki
Jump to navigationJump to search
Content deleted Content added
No edit summary
 
(5 intermediate revisions by the same user not shown)
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|}}} |
{{#if: {{{image|}}} |
<div style="text-align:center; margin:0.5em 0;">
|-
| colspan="2" style="text-align:center;" |
[[File:{{{image}}}|250px]]
[[File:{{{image}}}|250px]]
<div style="font-size:90%; color:#555;">

{{#if: {{{caption|}}} |
{{{caption|}}}
</div>
<div style="font-size:90%; color:#54595d;">
{{{caption}}}
</div>
</div>
}}
}}
<table style="width:100%; border-collapse:collapse; text-align:left; table-layout:fixed;">
{{#if: {{{date|}}} |
<tr><th>Date (IRL)</th><td>{{{date}}}</td></tr>
}}
}}


{{#if: {{{part_of|}}} |
{{#if: {{{date|}}} |
<tr><th>Date (LORE)</th><td>{{#invoke:KnightspireDate|loreYear|{{{date|}}}}}</td></tr>
|-
! Part of
| {{{part_of}}}
}}
}}


{{#if: {{{date|}}} |
{{#if: {{{part_of|}}} |
<tr><th>Part of</th><td>{{{part_of}}}</td></tr>
|-
! Date
| {{{date}}}
}}
}}


{{#if: {{{location|}}} |
{{#if: {{{location|}}} |
<tr><th>Location</th><td>{{{location}}}</td></tr>
|-
! Location
| {{{location}}}
}}
}}


{{#if: {{{outcome|}}} |
{{#if: {{{outcome|}}} |
<tr><th>Result</th><td>{{{outcome}}}</td></tr>
|-
! Outcome
| {{{outcome}}}
}}
}}


<tr><th colspan="2" style="background:#dde8f2; text-align:center;">Belligerents</th></tr>
|-
<tr class="center-section">
! Combatants
|
{{{combatant1|}}}
<br>vs<br>
{{{combatant2|}}}


<td>
{{#if: {{{commander1|}}} |
{{#if: {{{combatant1_flag|}}} |
|-
[[File:{{{combatant1_flag}}}|20px|link=]]
! Commanders
| {{{commander1}}}
<br>vs<br>
{{{commander2}}}
}}
}}
{{{combatant1|}}}
</td>


<td>
{{#if: {{{strength1|}}} |
{{#if: {{{combatant2_flag|}}} |
|-
[[File:{{{combatant2_flag}}}|20px|link=]]
! Strength
| {{{strength1}}}
<br>vs<br>
{{{strength2}}}
}}
}}
{{{combatant2|}}}
</td>

</tr>

<tr><th colspan="2" style="background:#dde8f2; text-align:center;">Commanders</th></tr>
<tr class="center-section">


<td>
{{#if: {{{casualties1|}}} |
{{#if: {{{commander1_flag|}}} |
|-
[[File:{{{commander1_flag}}}|20px|link=]]
! Casualties
| {{{casualties1}}}
<br>vs<br>
{{{casualties2}}}
}}
}}
{{{commander1|}}}
</td>


<td>
{{#if: {{{result|}}} |
{{#if: {{{commander2_flag|}}} |
|-
[[File:{{{commander2_flag}}}|20px|link=]]
! Result
| {{{result}}}
}}
}}
{{{commander2|}}}
</td>

</tr>

<tr><th colspan="2" style="background:#dde8f2; text-align:center;">Strength</th></tr>
<tr class="center-section">
<td>{{{strength1|}}}</td>
<td>{{{strength2|}}}</td>
</tr>

<tr><th colspan="2" style="background:#dde8f2; text-align:center;">Casualties</th></tr>
<tr class="center-section">
<td>{{{casualties1|}}}</td>
<td>{{{casualties2|}}}</td>
</tr>


</table>
</table>


</div>
</includeonly>
</includeonly>


Line 89: Line 96:
<pre>
<pre>
{{Infobox Battle
{{Infobox Battle
| battle = Battle of Volkdorf Pass
| battle = Battle of Placename
| image = volkdorf_pass_battle.png
| image = Battle_example.jpg
| caption = Battle depiction
| caption = Arannese forces holding the northern ridge during the engagement
| part_of = Furstenmark Succession Conflict
| part_of = First Countryname Wars
| date = 2026-06-14
| date = 2027-06-14
| location = Volkdorf Pass, Volkdorf Plains
| location = Placename, Countryname
| outcome = Arannese victory
| outcome = Countryname Victory

| combatant1 = Arannese Kaiserstaat
| combatant1 = Countryname
| combatant2 = Free Companies of the Westmarch
| combatant1_flag = Green_flag.png
| commander1 = Kaiser Scarlet Nonvolatile

| commander2 = Captain Roderic Vale
| combatant2 = Evilnation
| combatant2_flag = Red_flag.png

| commander1 = Lord Country
| commander1_flag = Green_flag.png

| commander2 = King Evil
| commander2_flag = Red_flag.png

| strength1 = ~1,200 troops
| strength1 = ~1,200 troops
| strength2 = ~1,800 mercenaries
| strength2 = ~1,800 mercenaries
| casualties1 = ~300 killed or wounded
| casualties1 = ~300 killed or wounded
| casualties2 = ~900 killed or wounded
| casualties2 = ~900 killed or wounded
| result = Arannese forces secure strategic mountain pass, cutting enemy supply routes
}}
}}
</pre>
</pre>


{{Infobox Battle
{{Infobox Battle
| battle = Battle of Volkdorf Pass
| battle = Battle of Placename
| image = volkdorf_pass_battle.png
| image = Battle_example.jpg
| caption = Battle depiction
| caption = Arannese forces holding the northern ridge during the engagement
| part_of = Furstenmark Succession Conflict
| part_of = First Countryname Wars
| date = 2026-06-14
| date = 2027-06-14
| location = Volkdorf Pass, Volkdorf Plains
| location = Placename, Countryname
| outcome = Arannese victory
| outcome = Countryname Victory

| combatant1 = Arannese Kaiserstaat
| combatant1 = Countryname
| combatant2 = Free Companies of the Westmarch
| combatant1_flag = Green_flag.png
| commander1 = Kaiser Scarlet Nonvolatile

| commander2 = Captain Roderic Vale
| combatant2 = Evilnation
| combatant2_flag = Red_flag.png

| commander1 = Lord Country
| commander1_flag = Green_flag.png

| commander2 = King Evil
| commander2_flag = Red_flag.png

| strength1 = ~1,200 troops
| strength1 = ~1,200 troops
| strength2 = ~1,800 mercenaries
| strength2 = ~1,800 mercenaries
| casualties1 = ~300 killed or wounded
| casualties1 = ~300 killed or wounded
| casualties2 = ~900 killed or wounded
| casualties2 = ~900 killed or wounded
| result = Arannese forces secure strategic mountain pass, cutting enemy supply routes
}}
}}


Line 192: Line 215:
"casualties2": {
"casualties2": {
"label": "Casualties 2",
"label": "Casualties 2",
"type": "string"
},
"result": {
"label": "Result Summary",
"type": "string"
"type": "string"
}
}

Latest revision as of 07:17, 9 May 2026



Usage

{{Infobox Battle
| battle = Battle of Placename
| image = Battle_example.jpg
| caption = Battle depiction
| part_of = First Countryname Wars
| date = 2027-06-14
| location = Placename, Countryname
| outcome = Countryname Victory

| combatant1 = Countryname
| combatant1_flag = Green_flag.png

| combatant2 = Evilnation
| combatant2_flag = Red_flag.png

| commander1 = Lord Country
| commander1_flag = Green_flag.png

| commander2 = King Evil
| commander2_flag = Red_flag.png

| strength1 = ~1,200 troops
| strength2 = ~1,800 mercenaries
| casualties1 = ~300 killed or wounded
| casualties2 = ~900 killed or wounded
}}


Battle of Placename

Battle depiction

Date (IRL)2027-06-14
Date (LORE)Year 59
Part ofFirst Countryname Wars
LocationPlacename, Countryname
ResultCountryname 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



TemplateData

Infobox for battles and military engagements.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Battle Namebattle

no description

Stringrequired
Imageimage

no description

Fileoptional
Image Captioncaption

no description

Stringoptional
Part of Campaignpart_of

no description

Stringoptional
Datedate

no description

Stringoptional
Locationlocation

no description

Stringoptional
Outcomeoutcome

no description

Stringoptional
Combatant 1combatant1

no description

Stringoptional
Combatant 2combatant2

no description

Stringoptional
Commander 1commander1

no description

Stringoptional
Commander 2commander2

no description

Stringoptional
Strength 1strength1

no description

Stringoptional
Strength 2strength2

no description

Stringoptional
Casualties 1casualties1

no description

Stringoptional
Casualties 2casualties2

no description

Stringoptional