Template:Infobox battle: Difference between revisions

From CinderCivs Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float: right; clear: right; margin: 0 0 1em 1em; width: 300px; border: 1px solid #a2a9b1; background: #f8f9fa; padding: 5px; font-size: 90%;">
<onlyinclude>
 
<div class="infobox" style="background: #fff; width: 22em; border: 1px solid #aaa; padding: 0.5em; float: right;">
{| style="width: 100%; border-collapse: collapse; border-spacing: 0;"
    <div style="background: #d0e5f5; text-align: center; font-size: 110%; font-weight: bold;">{{{name|}}}</div>
|-
    <div style="text-align: center;">
| colspan="2" style="background: #ccddee; text-align: center; font-size: 110%; font-weight: bold;" | {{{name|}}}
        [[File:{{{image|}}}|thumb|center|alt={{{image_alt|}}}]]
|-
        <div>{{{image_caption|}}}</div>
| colspan="2" style="text-align: center;" | [[File:{{{image|}}}|250px|alt={{{image_alt|}}}]]
    </div>
|-
    <hr style="border: none; border-top: 1px dotted #aaa; margin: 0.5em 0;">
| colspan="2" style="text-align: center;" | {{{image_caption|}}}
    <table style="width: 100%; border-collapse: collapse; border-spacing: 0; text-align: left;">
|-
        <tr><th>Date</th><td style="text-align: left;">{{{date|}}}</td></tr>
! style="width: 30%; background: #eaecf0; text-align: left; padding: 2px 5px;" | Date
        <tr><th>Location</th><td style="text-align: left;">{{{location|}}}</td></tr>
| style="text-align: left; padding: 2px 5px;" | {{{date|}}}
        <tr><th>Result</th><td style="text-align: left;">{{{result|}}}</td></tr>
|-
        <tr><th colspan="2" style="background: #d0e5f5; text-align: center;">Belligerents</th></tr>
! style="background: #eaecf0; text-align: left; padding: 2px 5px;" | Location
        <tr>
| style="text-align: left; padding: 2px 5px;" | {{{location|}}}
            <td style="border-right: 1px dotted #aaa; text-align: left; padding-right: 0.5em;">{{{combatant1|}}}</td>
|-
            <td style="text-align: left; padding-left: 0.5em;">{{{combatant2|}}}</td>
! style="background: #eaecf0; text-align: left; padding: 2px 5px;" | Result
        </tr>
| style="text-align: left; padding: 2px 5px;" | {{{result|}}}
        <tr><th colspan="2" style="background: #d0e5f5; text-align: center;">Commanders</th></tr>
|-
        <tr>
! style="background: #eaecf0; text-align: left; padding: 2px 5px;" colspan="2" | Combatants
            <td style="border-right: 1px dotted #aaa; text-align: left; padding-right: 0.5em;">{{{commander1|}}}</td>
|-
            <td style="text-align: left; padding-left: 0.5em;">{{{commander2|}}}</td>
| style="background: #eaecf0; text-align: left; padding: 2px 5px;" | {{{combatant1|}}}
        </tr>
| style="background: #eaecf0; text-align: left; padding: 2px 5px;" | {{{combatant2|}}}
        <tr><th colspan="2" style="background: #d0e5f5; text-align: center;">Strength</th></tr>
|-
        <tr>
! style="background: #eaecf0; text-align: left; padding: 2px 5px;" colspan="2" | Commanders
            <td style="border-right: 1px dotted #aaa; text-align: left; padding-right: 0.5em;">{{{strength1|}}}</td>
|-
            <td style="text-align: left; padding-left: 0.5em;">{{{strength2|}}}</td>
| style="background: #eaecf0; text-align: left; padding: 2px 5px;" | {{{commander1|}}}
        </tr>
| style="background: #eaecf0; text-align: left; padding: 2px 5px;" | {{{commander2|}}}
        <tr><th colspan="2" style="background: #d0e5f5; text-align: center;">Casualties and losses</th></tr>
|-
        <tr>
! style="background: #eaecf0; text-align: left; padding: 2px 5px;" colspan="2" | Strength
            <td style="border-right: 1px dotted #aaa; text-align: left; padding-right: 0.5em; width: 10.5em;">{{{casualties1|}}}</td>
|-
            <td style="text-align: left; padding-left: 0.5em;">{{{casualties2|}}}</td>
| style="background: #eaecf0; text-align: left; padding: 2px 5px;" | {{{strength1|}}}
        </tr>
| style="background: #eaecf0; text-align: left; padding: 2px 5px;" | {{{strength2|}}}
    </table>
|-
! style="background: #eaecf0; text-align: left; padding: 2px 5px;" colspan="2" | Casualties and losses
|-
| style="background: #eaecf0; text-align: left; padding: 2px 5px;" | {{{casualties1|}}}
| style="background: #eaecf0; text-align: left; padding: 2px 5px;" | {{{casualties2|}}}
|}
</div>
</div>
</onlyinclude>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 137: Line 132:
}
}
</templatedata>
</templatedata>
{{Infobox battle
|name=Battle of Lavard
|image=lavard_battle_end.png
|location=City-state of Lavard{{Coordinates|y=-1200|x=-1250}}
|image_alt=(left to right) King Swonki,Mayor Chrassus
|image_caption=Leaders of Cauldra and Loire meeting after the battle.
|date=2023/09/23|
result=Total Lavardian victory, causing the Cauldran Constitutional Convention
|combatant1=[[File:OG Cauldra Flag.png|border|20px]] Cauldra
|combatant2=[[File:Lavard flag.png|border|20px]] Lavard
|commander1=[[File:OG Cauldra Flag.png|border|20px]] King Swonki
|commander2=[[File:Lavard flag.png|border|20px]] Chrassus
|strength1=3 soldiers
|strength2=1 soldier
|casualties1=3 WIA
|casualties2=None}}
<nowiki>
Source:
{{Infobox battle
|name=Battle of Lavard
|image=lavard_battle_end.png
|location=City-state of Lavard{{Coordinates|y=-1200|x=-1250}}
|image_alt=(left to right) King Swonki,Mayor Chrassus
|image_caption=Leaders of Cauldra and Loire meeting after the battle.
|date=2023/09/23|
result=Total Lavardian victory, causing the Cauldran Constitutional Convention
|combatant1=[[File:OG Cauldra Flag.png|border|20px]] Cauldra
|combatant2=[[File:Lavard flag.png|border|20px]] Lavard
|commander1=[[File:OG Cauldra Flag.png|border|20px]] King Swonki
|commander2=[[File:Lavard flag.png|border|20px]] Chrassus
|strength1=3 soldiers
|strength2=1 soldier
|casualties1=3 WIA
|casualties2=None}}
</nowiki>
</noinclude>
</noinclude>

Latest revision as of 00:46, 29 June 2024

       [[File:|thumb|center|alt=]]

Date
Location
Result
Belligerents
Commanders
Strength
Casualties and losses


Infobox for battles

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

The name of the battle

Stringrequired
Imageimage

An image representing the battle

Stringoptional
Image alt textimage_alt

Alt text for the image

Stringoptional
Image captionimage_caption

Caption for the image

Stringoptional
Datedate

The date of the battle

Stringoptional
Locationlocation

The location of the battle

Stringoptional
Resultresult

The result of the battle

Stringoptional
Combatant 1combatant1

The first combatant

Stringoptional
Combatant 2combatant2

The second combatant

Stringoptional
Commander 1commander1

Commander of the first combatant

Stringoptional
Commander 2commander2

Commander of the second combatant

Stringoptional
Strength 1strength1

Strength of the first combatant

Stringoptional
Strength 2strength2

Strength of the second combatant

Stringoptional
Casualties 1casualties1

Casualties and losses of the first combatant

Stringoptional
Casualties 2casualties2

Casualties and losses of the second combatant

Stringoptional


Battle of Lavard
(left to right) King Swonki,Mayor Chrassus
Leaders of Cauldra and Loire meeting after the battle.

Date2023/09/23
LocationCity-state of Lavard
-1250 -1200
ResultTotal Lavardian victory, causing the Cauldran Constitutional Convention
Belligerents
Cauldra Lavard
Commanders
King Swonki Chrassus
Strength
3 soldiers 1 soldier
Casualties and losses
3 WIA None


Source: {{Infobox battle |name=Battle of Lavard |image=lavard_battle_end.png |location=City-state of Lavard{{Coordinates|y=-1200|x=-1250}} |image_alt=(left to right) King Swonki,Mayor Chrassus |image_caption=Leaders of Cauldra and Loire meeting after the battle. |date=2023/09/23| result=Total Lavardian victory, causing the Cauldran Constitutional Convention |combatant1=[[File:OG Cauldra Flag.png|border|20px]] Cauldra |combatant2=[[File:Lavard flag.png|border|20px]] Lavard |commander1=[[File:OG Cauldra Flag.png|border|20px]] King Swonki |commander2=[[File:Lavard flag.png|border|20px]] Chrassus |strength1=3 soldiers |strength2=1 soldier |casualties1=3 WIA |casualties2=None}}