Template:War: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="date">...")
 
mNo edit summary
Line 1: Line 1:
  +
<infobox>
 
  +
{{TemplateData header}}
<title source="title1">
 
  +
{{collapse top|title=TemplateData}}
<default>{{PAGENAME}}</default>
 
  +
<templatedata>
</title>
 
  +
{
<image source="image1">
 
  +
"description": "Summarize information about a particular military conflict (a battle, campaign, war, or group of related wars).",
<caption source="caption1"/>
 
  +
"format": "{{_\n| _________________ = _\n}}\n",
</image>
 
  +
"params": {
<data source="date">
 
  +
"conflict": {
<label>Date</label>
 
  +
"label": "Conflict",
</data>
 
  +
"description": "The name of the conflict being described.",
<data source="location">
 
  +
"type": "string/line",
<label>Location</label>
 
  +
"required": true
</data>
 
  +
},
<data source="outcome">
 
  +
"width": {
<label>Outcome</label>
 
  +
"label": "Width",
</data>
 
  +
"description": "Width of the infobox.",
<group layout="horizontal">
 
  +
"type": "string",
<header>Belligerents</header>
 
  +
"default": "315px",
<data source="side a"/>
 
  +
"required": false
<data source="sideb" />
 
  +
},
</group>
 
  +
"partof": {
<group layout="horizontal">
 
  +
"label": "Part of",
<header>Units involved</header>
 
  +
"description": "The larger conflict containing the event described in the article.",
<data source="units from side a"/>
 
  +
"type": "wiki-page-name",
<data source="units from side b"/>
 
  +
"required": false
</group>
 
  +
},
<group layout="horizontal">
 
  +
"image": {
<header>Strength</header>
 
  +
"label": "Image",
<data source="sidea strength"/>
 
  +
"description": "An image for the warbox given in the form Example.jpg.",
<data source="sideb strength"/>
 
  +
"type": "wiki-file-name",
</group>
 
  +
"required": false
<group layout="horizontal">
 
  +
},
<header>Casualties and losses</header>
 
  +
"image_size": {
<data source="sidea loss"/>
 
  +
"label": "Image size",
<data source="sideb loss"/>
 
  +
"description": "The size of the image",
</group>
 
  +
"type": "string",
</infobox>
 
  +
"required": false
<noinclude>
 
  +
},
Example usage:<pre>
 
  +
"alt": {
{{Battle (fixed)
 
  +
"label": "Alt",
|title1=Example
 
  +
"description": "Alternative textual description of the image",
|image1=Example
 
  +
"type": "string",
|caption1=Example
 
  +
"required": false
|date=Example
 
  +
},
|location=Example
 
  +
"caption": {
|outcome=Example
 
  +
"label": "Caption",
|row4=Example
 
  +
"description": "The text to be placed below the image.",
|row5=Example
 
  +
"type": "string",
|row6=Example
 
  +
"required": false
|row7=Example
 
}}
+
},
  +
"date": {
</pre>
 
  +
"label": "Date",
</noinclude>
 
  +
"description": "The date of the conflict described. Convention is to give the actual date for battles and the years for wars, but this does not always apply.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"place": {
  +
"label": "Place",
  +
"description": "The location of the conflict.",
  +
"type": "string",
  +
"required": true
  +
},
  +
"coordinates": {
  +
"label": "Coordinates",
  +
"description": "The location of the structure, given as a coordinate pair by using {{coord}} with display=inline,title.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"map_type": {
  +
"label": "Map Type",
  +
"description": "The base map to be used for the location map, e.g. \"Scotland\"; see {{location map}} for more details.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"map_relief": {
  +
"label": "Map Relief",
  +
"description": "\"yes\" if the location map is a relief map.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"map_size": {
  +
"label": "Map Size",
  +
"description": "Width of the location map in pixels (px).",
  +
"type": "number",
  +
"default": "220",
  +
"required": false
  +
},
  +
"map_mark": {
  +
"label": "Map Marker",
  +
"description": "File to use as the location map marker.",
  +
"type": "string",
  +
"default": "red_pog.svg",
  +
"required": false
  +
},
  +
"map_marksize": {
  +
"label": "Map Marker Size",
  +
"description": "Width of the location map marker in pixels (px).",
  +
"type": "number",
  +
"default": "8",
  +
"required": false
  +
},
  +
"map_caption": {
  +
"label": "Map Caption",
  +
"description": "Caption displayed below the location map.",
  +
"type": "string",
  +
"default": "Location within {{{map_type}}}",
  +
"required": false
  +
},
  +
"map_label": {
  +
"label": "Map Label",
  +
"description": "The label placed next to the marker on the location map.",
  +
"type": "string/line",
  +
"required": false
  +
},
  +
"territory": {
  +
"label": "Territory",
  +
"description": "Any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"result": {
  +
"label": "Result",
  +
"description": "This parameter may use one of two standard terms: \"X victory\" or \"Inconclusive\". The term used is for the \"immediate\" outcome of the \"subject\" conflict and should reflect what the sources say. In cases where the standard terms do not accurately describe the outcome, a link or note should be made to the section of the article where the result is discussed in detail (such as \"See the Aftermath section\"). Such a note can also be used in conjunction with the standard terms but should not be used to conceal an ambiguity in the \"immediate\" result. Do not introduce non-standard terms like \"decisive\", \"marginal\" or \"tactical\", or contradictory statements like \"decisive tactical victory but strategic defeat\". Omit this parameter altogether rather than engage in speculation about which side won or by how much.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"status": {
  +
"label": "Status",
  +
"description": "For ongoing conflicts, the current status of the conflict.",
  +
"type": "string/line",
  +
"required": false
  +
},
  +
"combatants_header": {
  +
"label": "\"Combatants\" Header Text",
  +
"description": "Sets the header text for the combatants section.",
  +
"type": "string/line",
  +
"default": "Belligerents",
  +
"required": false
  +
},
  +
"combatant1": {
  +
"label": "Combatant 1",
  +
"description": "A party participating in the conflict.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant2": {
  +
"label": "Combatant 2",
  +
"description": "A party participating in the conflict.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant3": {
  +
"label": "Combatant 3",
  +
"description": "A party participating in the conflict. (only if the conflict has three distinct \"sides\")",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant1a": {
  +
"label": "Combatant 1a",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 1 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant2a": {
  +
"label": "Combatant 2a",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 2 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant3a": {
  +
"label": "Combatant 3a",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 3 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant1b": {
  +
"label": "Combatant 1b",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 1 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant2b": {
  +
"label": "Combatant 2b",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 2 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant3b": {
  +
"label": "Combatant 3b",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 3 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant1c": {
  +
"label": "Combatant 1c",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 1 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant2c": {
  +
"label": "Combatant 2c",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 2 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant3c": {
  +
"label": "Combatant 3c",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 3 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant1d": {
  +
"label": "Combatant 1d",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 1 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant2d": {
  +
"label": "Combatant 2d",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 2 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"combatant3d": {
  +
"label": "Combatant 3d",
  +
"description": "In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 3 field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"commander1": {
  +
"label": "Commander of Combatant 1",
  +
"description": "The commanders of the military forces of Combatant (1) involved.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"commander2": {
  +
"label": "Commander of Combatant 2",
  +
"description": "The commanders of the military forces of Combatant 2 involved.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"commander3": {
  +
"label": "Commander of Combatant 3",
  +
"description": "The commanders of the military forces of Combatant 3 involved.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"units1": {
  +
"label": "Units of Combatant 1",
  +
"description": "The units or formations of Combatant 1 involved. If a large number of distinct formations is present, it may be better to reference an order of battle in the body of the article than to include the entire list in this field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"units2": {
  +
"label": "Units of Combatant 2",
  +
"description": "The units or formations of Combatant 2 involved. If a large number of distinct formations is present, it may be better to reference an order of battle in the body of the article than to include the entire list in this field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"units3": {
  +
"label": "Units of Combatant 3",
  +
"description": "The units or formations of Combatant 3 involved. If a large number of distinct formations is present, it may be better to reference an order of battle in the body of the article than to include the entire list in this field.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"strength1": {
  +
"label": "Strength of Combatant 1",
  +
"description": "The numerical strength of Combatant 1.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"strength2": {
  +
"label": "Strength of Combatant 2",
  +
"description": "The numerical strength of Combatant 2.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"strength3": {
  +
"label": "Strength of Combatant 3",
  +
"description": "If Combatant 3 is set, this field is for the numerical strength of Combatant 3. If Combatant 3 is not set, this is an alternate combined field for use where only the total participation in a conflict is known.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"casualties1": {
  +
"label": "Casualties of Combatant 1",
  +
"description": "Casualties suffered by Combatant 1 (including: dead, wounded, missing, captured and civilian deaths) and equipment losses. Terms such as \"dead\" (or \"killed\"), \"wounded\", or \"captured\" should be used in place of abbreviations such as \"KIA\" or \"POW\". Where equipment losses are reported, this should be confined to major or significant types of equipment broadly categorized such as: tanks, guns (artillery pieces), aircraft, destroyers etc.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"casualties2": {
  +
"label": "Casualties of Combatant 2",
  +
"description": "Casualties suffered by Combatant 2 (including: dead, wounded, missing, captured and civilian deaths) and equipment losses. Terms such as \"dead\" (or \"killed\"), \"wounded\", or \"captured\" should be used in place of abbreviations such as \"KIA\" or \"POW\". Where equipment losses are reported, this should be confined to major or significant types of equipment broadly categorized such as: tanks, guns (artillery pieces), aircraft, destroyers etc.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"casualties3": {
  +
"label": "Casualties of Combatant 3",
  +
"description": "If Combatant 3 is set, this field is for the casualties suffered by Combatant 3, (including: dead, wounded, missing, captured and civilian deaths) and equipment losses. Terms such as \"dead\" (or \"killed\"), \"wounded\", or \"captured\" should be used in place of abbreviations such as \"KIA\" or \"POW\". Where equipment losses are reported, this should be confined to major or significant types of equipment broadly categorized such as: tanks, guns (artillery pieces), aircraft, destroyers etc. If combatant3 is not set, this is an alternate combined field for use where only the total casualties of a conflict are known, or where civilian casualties cannot be directly attributed to either side.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"notes": {
  +
"label": "Notes",
  +
"description": "Optional field for further notes; this should only be used in exceptional circumstances.",
  +
"type": "string",
  +
"required": false
  +
},
  +
"campaignbox": {
  +
"label": "Campaignbox",
  +
"description": "Optional field for appending a campaignbox template to the bottom of the infobox, which allows both boxes to float as a single element (useful if there are subsequent left floating images, which would otherwise not be able to float above the campaign box); the template must be specified in the format {{Campaignbox XYZ}}.",
  +
"type": "string",
  +
"required": false
  +
}
  +
}
  +
}</templatedata>
  +
{{Collapse bottom}}

Revision as of 23:50, 22 March 2022

Template:TemplateData header Template:Collapse top

Summarize information about a particular military conflict (a battle, campaign, war, or group of related wars).

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Conflictconflict

The name of the conflict being described.

Linerequired
Widthwidth

Width of the infobox.

Default
315px
Stringoptional
Part ofpartof

The larger conflict containing the event described in the article.

Page nameoptional
Imageimage

An image for the warbox given in the form Example.jpg.

Fileoptional
Image sizeimage_size

The size of the image

Stringoptional
Altalt

Alternative textual description of the image

Stringoptional
Captioncaption

The text to be placed below the image.

Stringoptional
Datedate

The date of the conflict described. Convention is to give the actual date for battles and the years for wars, but this does not always apply.

Stringoptional
Placeplace

The location of the conflict.

Stringrequired
Coordinatescoordinates

The location of the structure, given as a coordinate pair by using {{coord}} with display=inline,title.

Stringoptional
Map Typemap_type

The base map to be used for the location map, e.g. "Scotland"; see {{location map}} for more details.

Stringoptional
Map Reliefmap_relief

"yes" if the location map is a relief map.

Stringoptional
Map Sizemap_size

Width of the location map in pixels (px).

Default
220
Numberoptional
Map Markermap_mark

File to use as the location map marker.

Default
red_pog.svg
Stringoptional
Map Marker Sizemap_marksize

Width of the location map marker in pixels (px).

Default
8
Numberoptional
Map Captionmap_caption

Caption displayed below the location map.

Default
Location within {{{map_type}}}
Stringoptional
Map Labelmap_label

The label placed next to the marker on the location map.

Lineoptional
Territoryterritory

Any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.

Stringoptional
Resultresult

This parameter may use one of two standard terms: "X victory" or "Inconclusive". The term used is for the "immediate" outcome of the "subject" conflict and should reflect what the sources say. In cases where the standard terms do not accurately describe the outcome, a link or note should be made to the section of the article where the result is discussed in detail (such as "See the Aftermath section"). Such a note can also be used in conjunction with the standard terms but should not be used to conceal an ambiguity in the "immediate" result. Do not introduce non-standard terms like "decisive", "marginal" or "tactical", or contradictory statements like "decisive tactical victory but strategic defeat". Omit this parameter altogether rather than engage in speculation about which side won or by how much.

Stringoptional
Statusstatus

For ongoing conflicts, the current status of the conflict.

Lineoptional
"Combatants" Header Textcombatants_header

Sets the header text for the combatants section.

Default
Belligerents
Lineoptional
Combatant 1combatant1

A party participating in the conflict.

Stringoptional
Combatant 2combatant2

A party participating in the conflict.

Stringoptional
Combatant 3combatant3

A party participating in the conflict. (only if the conflict has three distinct "sides")

Stringoptional
Combatant 1acombatant1a

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 1 field.

Stringoptional
Combatant 2acombatant2a

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 2 field.

Stringoptional
Combatant 3acombatant3a

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 3 field.

Stringoptional
Combatant 1bcombatant1b

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 1 field.

Stringoptional
Combatant 2bcombatant2b

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 2 field.

Stringoptional
Combatant 3bcombatant3b

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 3 field.

Stringoptional
Combatant 1ccombatant1c

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 1 field.

Stringoptional
Combatant 2ccombatant2c

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 2 field.

Stringoptional
Combatant 3ccombatant3c

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 3 field.

Stringoptional
Combatant 1dcombatant1d

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 1 field.

Stringoptional
Combatant 2dcombatant2d

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 2 field.

Stringoptional
Combatant 3dcombatant3d

In cases where the parties significantly changed over the course of the conflict, this field may be used to provide additional rows for the Combatant 3 field.

Stringoptional
Commander of Combatant 1commander1

The commanders of the military forces of Combatant (1) involved.

Stringoptional
Commander of Combatant 2commander2

The commanders of the military forces of Combatant 2 involved.

Stringoptional
Commander of Combatant 3commander3

The commanders of the military forces of Combatant 3 involved.

Stringoptional
Units of Combatant 1units1

The units or formations of Combatant 1 involved. If a large number of distinct formations is present, it may be better to reference an order of battle in the body of the article than to include the entire list in this field.

Stringoptional
Units of Combatant 2units2

The units or formations of Combatant 2 involved. If a large number of distinct formations is present, it may be better to reference an order of battle in the body of the article than to include the entire list in this field.

Stringoptional
Units of Combatant 3units3

The units or formations of Combatant 3 involved. If a large number of distinct formations is present, it may be better to reference an order of battle in the body of the article than to include the entire list in this field.

Stringoptional
Strength of Combatant 1strength1

The numerical strength of Combatant 1.

Stringoptional
Strength of Combatant 2strength2

The numerical strength of Combatant 2.

Stringoptional
Strength of Combatant 3strength3

If Combatant 3 is set, this field is for the numerical strength of Combatant 3. If Combatant 3 is not set, this is an alternate combined field for use where only the total participation in a conflict is known.

Stringoptional
Casualties of Combatant 1casualties1

Casualties suffered by Combatant 1 (including: dead, wounded, missing, captured and civilian deaths) and equipment losses. Terms such as "dead" (or "killed"), "wounded", or "captured" should be used in place of abbreviations such as "KIA" or "POW". Where equipment losses are reported, this should be confined to major or significant types of equipment broadly categorized such as: tanks, guns (artillery pieces), aircraft, destroyers etc.

Stringoptional
Casualties of Combatant 2casualties2

Casualties suffered by Combatant 2 (including: dead, wounded, missing, captured and civilian deaths) and equipment losses. Terms such as "dead" (or "killed"), "wounded", or "captured" should be used in place of abbreviations such as "KIA" or "POW". Where equipment losses are reported, this should be confined to major or significant types of equipment broadly categorized such as: tanks, guns (artillery pieces), aircraft, destroyers etc.

Stringoptional
Casualties of Combatant 3casualties3

If Combatant 3 is set, this field is for the casualties suffered by Combatant 3, (including: dead, wounded, missing, captured and civilian deaths) and equipment losses. Terms such as "dead" (or "killed"), "wounded", or "captured" should be used in place of abbreviations such as "KIA" or "POW". Where equipment losses are reported, this should be confined to major or significant types of equipment broadly categorized such as: tanks, guns (artillery pieces), aircraft, destroyers etc. If combatant3 is not set, this is an alternate combined field for use where only the total casualties of a conflict are known, or where civilian casualties cannot be directly attributed to either side.

Stringoptional
Notesnotes

Optional field for further notes; this should only be used in exceptional circumstances.

Stringoptional
Campaignboxcampaignbox

Optional field for appending a campaignbox template to the bottom of the infobox, which allows both boxes to float as a single element (useful if there are subsequent left floating images, which would otherwise not be able to float above the campaign box); the template must be specified in the format {{Campaignbox XYZ}}.

Stringoptional

Template:Collapse bottom