Template:Infobox Battle: Difference between revisions
From Knightspire Wiki
Jump to navigationJump to search
Content deleted Content added
Created page with "<includeonly> {| class="infobox-battle" |- ! colspan="2" class="header" | {{{battle|{{PAGENAME}}}}} {{#if: {{{image|}}} | |- | colspan="2" style="text-align:center;" | [[File:{{{image}}}|250px]] {{#if: {{{caption|}}} | <div style="font-size:90%; color:#54595d;"> {{{caption}}} </div> }} }} {{#if: {{{part_of|}}} | |- ! Part of | {{{part_of}}} }} {{#if: {{{date|}}} | |- ! Date | {{{date}}} }} {{#if: {{{location|}}} | |- ! Location | {{{location}}} }} {{#if: {{{outcom..." |
No edit summary |
||
| (6 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;"> |
|||
{{{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: {{{ |
{{#if: {{{date|}}} | |
||
<tr><th>Date (LORE)</th><td>{{#invoke:KnightspireDate|loreYear|{{{date|}}}}}</td></tr> |
|||
|- |
|||
! Part of |
|||
| {{{part_of}}} |
|||
}} |
}} |
||
{{#if: {{{ |
{{#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 |
| battle = Battle of Placename |
||
| image = |
| image = Battle_example.jpg |
||
| caption = Battle depiction |
|||
| caption = Arannese forces holding the northern ridge during the engagement |
|||
| part_of = |
| part_of = First Countryname Wars |
||
| date = |
| date = 2027-06-14 |
||
| location = |
| location = Placename, Countryname |
||
| outcome = |
| 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 |
| battle = Battle of Placename |
||
| image = |
| image = Battle_example.jpg |
||
| caption = Battle depiction |
|||
| caption = Arannese forces holding the northern ridge during the engagement |
|||
| part_of = |
| part_of = First Countryname Wars |
||
| date = |
| date = 2027-06-14 |
||
| location = |
| location = Placename, Countryname |
||
| outcome = |
| 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
| Date (IRL) | 2027-06-14 |
|---|---|
| Date (LORE) | Year 59 |
| Part of | First Countryname Wars |
| Location | Placename, Countryname |
| Result | Countryname Victory |
| Belligerents | |
|
|
|
| Commanders | |
|
|
|
| Strength | |
| ~1,200 troops | ~1,800 mercenaries |
| Casualties | |
| ~300 killed or wounded | ~900 killed or wounded |
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 |