Template:Battle Infobox: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
(simple doc + templatedata)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="margin: 0 0 1em 1em;" width=300 align="right"
{{Infobox Wiki
!colspan=100% style="background:{{Color|{{{COLOR|Blue}}}}}" class="whitelinks"|<font color="white">{{{BATTLE|Name of Battle}}}
|width=25em|image={{#if:{{{image|}}}|[[File:{{{image|}}}|{{{image size|210px}}}]]}}|image text={{{image text|}}}|header color=steelblue|header text color=white|name={{{name|{{PAGENAME}}}}}}}
|-
{{Infobox row|type=full rows|weight=bold|title=Date|{{{date|<noinclude>{{{date}}}</noinclude>}}}}}
| colspan=100% style="font-size: 90%" |
{{Infobox row|type=full rows|weight=bold|title=Location|{{{location|<noinclude>{{{location}}}</noinclude>}}}}}
|- style="vertical-align:top; background:#f0f0f0;"
{{Infobox row|type=full rows|weight=bold|title=Result|{{{result|<noinclude>{{{result}}}</noinclude>}}}}}
!colspan=2|Date
{{Infobox row|type=subheader|align=center|text color=white|color=steelblue|Belligerents}}
|-
{{Infobox row|type=alternating|{{{belligerent 1|<noinclude>{{{belligerent 1}}}</noinclude>}}}|{{{belligerent 2|<noinclude>{{{belligerent 2}}}</noinclude>}}}}}
|colspan=2 style="text-align:center"|{{{DATE|Unspecified}}}
{{Infobox row|type=subheader|align=center|text color=white|color=steelblue|Commanders and Leaders}}
|- style="vertical-align:top; background:#f0f0f0;"
{{Infobox row|type=alternating|{{{commanders 1|<noinclude>{{{commanders 1}}}</noinclude>}}}|{{{commanders 2|<noinclude>{{{commanders 2}}}</noinclude>}}}}}
!colspan=2|Location
{{Infobox row|type=subheader|align=center|text color=white|color=steelblue|Units Involved}}
|-
{{Infobox row|type=alternating|{{{units 1|<noinclude>{{{units 1}}}</noinclude>}}}|{{{units 2|<noinclude>{{{units 2}}}</noinclude>}}}}}
|colspan=2 style="text-align:center"|{{{LOCATION|Unspecified}}}
{{Infobox row|type=subheader|align=center|text color=white|color=steelblue|Strength}}
|- style="vertical-align:top; background:#f0f0f0;"
{{Infobox row|type=alternating|{{{strength 1|<noinclude>{{{strength 1}}}</noinclude>}}}|{{{strength 2|<noinclude>{{{strength 2}}}</noinclude>}}}}}
!colspan=2|Result
{{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>}}}}}
|colspan=2 style="text-align:center"|{{{RESULT|Unspecified}}}
|}<noinclude>Infobox for conflicts, such as battles and wars.
|- style="vertical-align:top; background:{{Color|{{{COLOR|Blue}}}}};"
 
!colspan=2|<font color="white">Belligerents
<pre>{{Battle Infobox
|- style="vertical-align:top;"
|name=
|width=50% style="font-size:x-small"|{{{BELLIGERENT 1|Unspecified}}}
|image=
|style="font-size:x-small; background:#f0f0f0;"|{{{BELLIGERENT 2|Unspecified}}}
|image size=
|- style="vertical-align:top; background:{{Color|{{{COLOR|Blue}}}}};"
|image text=
!colspan=2|<font color="white">Commanders and Leaders
|date=
|- style="vertical-align:top;"
|location=
|style="font-size:x-small" width=50%|{{{COMMANDERS 1|Unspecified}}}
|result=
|style="font-size:x-small; background:#f0f0f0;"|{{{COMMANDERS 2|Unspecified}}}
|belligerent 1=
|- style="vertical-align:top; background:{{Color|{{{COLOR|Blue}}}}};"
|belligerent 2=
!colspan=2|<font color="white">Units Involved
|commanders 1=
|- style="vertical-align:top;"
|commanders 2=
|style="font-size:x-small" width=50%|{{{UNITS 1|Unspecified}}}
|units 1=
|style="font-size:x-small; background:#f0f0f0;"|{{{UNITS 2|Unspecified}}}
|units 2=
|- style="vertical-align:top; background:{{Color|{{{COLOR|Blue}}}}};"
|strength 1=
!colspan=2|<font color="white">Strength
|strength 2=
|- style="vertical-align:top;"
|losses 1=
|style="font-size:x-small" width=50%|{{{STRENGTH 1|Unspecified}}}
|losses 2=
|style="font-size:x-small; background:#f0f0f0;"|{{{STRENGTH 2|Unspecified}}}
}}</pre>
|- style="vertical-align:top; background:{{Color|{{{COLOR|Blue}}}}};"
 
!colspan=2|<font color="white">Casualties and Losses
{{Navbox|title=TemplateData|<templatedata>
|- style="vertical-align:top;"
{
|style="font-size:x-small" width=50%|{{{LOSSES 1|Unspecified}}}
"params": {
|style="font-size:x-small; background:#f0f0f0;"|{{{LOSSES 2|Unspecified}}}
"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