Template:Infobox battle: Difference between revisions

From CinderCivs Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
<div class="infobox" style="width: 22em; border: 1px solid #aaa; padding: 0.2em;">
<div class="infobox" style="width: 22em; border: 1px solid #aaa; padding: 0.5em;">
     <div style="background: #ccddee; text-align: center; font-size: 110%; font-weight: bold;">{{{name|}}}</div>
     <div style="background: #ccddee; text-align: center; font-size: 110%; font-weight: bold;">{{{name|}}}</div>
     <div style="text-align: center;">
     <div style="text-align: center;">
Line 6: Line 6:
         <div>{{{image_caption|}}}</div>
         <div>{{{image_caption|}}}</div>
     </div>
     </div>
     <table style="width: 100%; border-collapse: collapse; border-spacing: 0; text-align: left;">
    <hr style="border: none; border-top: 1px dotted #aaa; margin: 0.5em 0;">
     <table style="width: 100%; border-collapse: collapse; border-spacing: 0; text-align: left; padding-left: 10px;">
         <tr><th>Date</th><td>{{{date|}}}</td></tr>
         <tr><th>Date</th><td>{{{date|}}}</td></tr>
         <tr><th>Location</th><td>{{{location|}}}</td></tr>
         <tr><th>Location</th><td>{{{location|}}}</td></tr>
         <tr><th>Result</th><td>{{{result|}}}</td></tr>
         <tr><th>Result</th><td>{{{result|}}}</td></tr>
         <tr><th colspan="2" style="background: #87CEEB; text-align: center;">Belligerents</th></tr>
         <tr><th colspan="2" style="background: #87CEEB; text-align: center;">Combatants</th></tr>
         <tr>
         <tr>
             <td style="border-right: 1px dotted #000;">{{{combatant1|}}}</td>
             <td style="border-right: 1px dotted #aaa; padding-right: 0.5em; text-align: right;">{{{combatant1|}}}</td>
             <td>{{{combatant2|}}}</td>
             <td style="padding-left: 0.5em;">{{{combatant2|}}}</td>
         </tr>
         </tr>
         <tr><th colspan="2" style="background: #87CEEB; text-align: center;">Commanders</th></tr>
         <tr><th colspan="2" style="background: #87CEEB; text-align: center;">Commanders</th></tr>
         <tr>
         <tr>
             <td style="border-right: 1px dotted #000; text-align: center;">{{{commander1|}}}</td>
             <td style="border-right: 1px dotted #aaa; padding-right: 0.5em; text-align: right;">{{{commander1|}}}</td>
             <td>{{{commander2|}}}</td>
             <td style="padding-left: 0.5em;">{{{commander2|}}}</td>
         </tr>
         </tr>
         <tr><th colspan="2" style="background: #87CEEB; text-align: center;">Strength</th></tr>
         <tr><th colspan="2" style="background: #87CEEB; text-align: center;">Strength</th></tr>
         <tr>
         <tr>
             <td style="border-right: 1px dotted #000;">{{{strength1|}}}</td>
             <td style="border-right: 1px dotted #aaa; padding-right: 0.5em; text-align: right;">{{{strength1|}}}</td>
             <td>{{{strength2|}}}</td>
             <td style="padding-left: 0.5em;">{{{strength2|}}}</td>
         </tr>
         </tr>
         <tr><th colspan="2" style="background: #87CEEB; text-align: center;">Casualties and losses</th></tr>
         <tr><th colspan="2" style="background: #87CEEB; text-align: center;">Casualties and losses</th></tr>
         <tr>
         <tr>
             <td style="border-right: 1px dotted #000;">{{{casualties1|}}}</td>
             <td style="border-right: 1px dotted #aaa; padding-right: 0.5em; text-align: right;">{{{casualties1|}}}</td>
             <td>{{{casualties2|}}}</td>
             <td style="padding-left: 0.5em;">{{{casualties2|}}}</td>
         </tr>
         </tr>
     </table>
     </table>

Revision as of 19:19, 29 May 2024

       [[File:|250px|alt=]]

Date
Location
Result
Combatants
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


Test battle
       ara flag
Flag of Aranna

Datesometime last night
LocationAranna
ResultAranna
Combatants
Aranna Aranna
Commanders
Aranna Aranna
Strength
5 5
Casualties and losses
5 5