Template:Battle Infobox: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(transferred to Template:Infobox Wiki; visual and functional changes!)
(simple doc + templatedata)
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
{{Infobox row|type=subheader|align=center|text color=white|color=steelblue|Casualties and Losses}}
{{Infobox row|type=subheader|align=center|text color=white|color=steelblue|Casualties and Losses}}
{{Infobox row|type=alternating|{{{losses 1|<noinclude>{{{losses 1}}}</noinclude>}}}|{{{losses 2|<noinclude>{{{losses 2}}}</noinclude>}}}}}
{{Infobox row|type=alternating|{{{losses 1|<noinclude>{{{losses 1}}}</noinclude>}}}|{{{losses 2|<noinclude>{{{losses 2}}}</noinclude>}}}}}
|}
|}<noinclude>Infobox for conflicts, such as battles and wars.
 
<pre>{{Battle Infobox
|name=
|image=
|image size=
|image text=
|date=
|location=
|result=
|belligerent 1=
|belligerent 2=
|commanders 1=
|commanders 2=
|units 1=
|units 2=
|strength 1=
|strength 2=
|losses 1=
|losses 2=
}}</pre>
 
{{Navbox|title=TemplateData|<templatedata>
{
"params": {
"image": {
"label": "Image",
"description": "Adds image to the top of the infobox",
"type": "wiki-file-name"
},
"image size": {
"label": "Image size",
"description": "Size of the top image",
"type": "line",
"default": "210px"
},
"image text": {
"label": "Image text",
"description": "A short description of the top image in smaller font",
"type": "line"
},
"name": {
"label": "Name",
"description": "Name of the conflict",
"type": "line",
"suggested": true
},
"date": {
"label": "Date",
"description": "The period of time during which the conflict took place",
"type": "content"
},
"location": {
"label": "Location",
"description": "The area or place in which the conflict took place",
"type": "content"
},
"result": {
"label": "Result",
"description": "How the conflict ended",
"type": "content"
},
"belligerent 1": {
"label": "Belligerent 1",
"description": "Faction(s) or other power(s) on the side 1",
"type": "content"
},
"belligerent 2": {
"label": "Belligerent 2",
"description": "Faction(s) or other power(s) on the side 2",
"type": "content"
},
"commanders 1": {
"label": "Commanders and Leaders 1",
"description": "The key leaders on the side 1",
"type": "content"
},
"commanders 2": {
"label": "Commanders and Leaders 2",
"description": "The key leaders on the side 2",
"type": "content"
},
"units 1": {
"label": "Units 1",
"description": "Which units took part in the conflict on side 1",
"type": "content"
},
"units 2": {
"label": "Units 2",
"description": "Which units took part in the conflict on side 2",
"type": "content"
},
"strength 1": {
"label": "Strength 1",
"description": "How many personnel or ships participated on side 1",
"type": "content"
},
"strength 2": {
"label": "Strength 2",
"description": "How many personnel or ships participated on side 2",
"type": "content"
},
"losses 1": {
"label": "Losses 1",
"description": "How many casualties (dead, wounded, missing, captured etc) did side 1 suffer",
"type": "content"
},
"losses 2": {
"label": "Losses 2",
"description": "How many casualties (dead, wounded, missing, captured etc) did side 2 suffer",
"type": "content"
}
},
"description": "Infobox for battles, wars and other conflicts",
"format": "block"
}
</templatedata>}}
[[Category:Infobox templates]]</noinclude>

Latest revision as of 10:31, 28 May 2024

Battle Infobox
Date
{{{date}}}
Location
{{{location}}}
Result
{{{result}}}
Belligerents
{{{belligerent 1}}}
{{{belligerent 2}}}
Commanders and Leaders
{{{commanders 1}}}
{{{commanders 2}}}
Units Involved
{{{units 1}}}
{{{units 2}}}
Strength
{{{strength 1}}}
{{{strength 2}}}
Casualties and Losses
{{{losses 1}}}
{{{losses 2}}}

Infobox for conflicts, such as battles and wars.

{{Battle Infobox
|name=
|image=
|image size=
|image text=
|date=
|location=
|result=
|belligerent 1=
|belligerent 2=
|commanders 1=
|commanders 2=
|units 1=
|units 2=
|strength 1=
|strength 2=
|losses 1=
|losses 2=
}}
TemplateData

Infobox for battles, wars and other conflicts

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Imageimage

Adds image to the top of the infobox

Fileoptional
Image sizeimage size

Size of the top image

Default
210px
Lineoptional
Image textimage text

A short description of the top image in smaller font

Lineoptional
Namename

Name of the conflict

Linesuggested
Datedate

The period of time during which the conflict took place

Contentoptional
Locationlocation

The area or place in which the conflict took place

Contentoptional
Resultresult

How the conflict ended

Contentoptional
Belligerent 1belligerent 1

Faction(s) or other power(s) on the side 1

Contentoptional
Belligerent 2belligerent 2

Faction(s) or other power(s) on the side 2

Contentoptional
Commanders and Leaders 1commanders 1

The key leaders on the side 1

Contentoptional
Commanders and Leaders 2commanders 2

The key leaders on the side 2

Contentoptional
Units 1units 1

Which units took part in the conflict on side 1

Contentoptional
Units 2units 2

Which units took part in the conflict on side 2

Contentoptional
Strength 1strength 1

How many personnel or ships participated on side 1

Contentoptional
Strength 2strength 2

How many personnel or ships participated on side 2

Contentoptional
Losses 1losses 1

How many casualties (dead, wounded, missing, captured etc) did side 1 suffer

Contentoptional
Losses 2losses 2

How many casualties (dead, wounded, missing, captured etc) did side 2 suffer

Contentoptional