Template:War: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
<templatestyles src="War/styles.css" />
  +
  +
<includeonly>{{Infobox/begin}}
  +
{{Infobox/Header|title={{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{greater_conflict|}}}|{{{greater_conflict|}}}|}}}}
  +
{{Infobox/Illustration|file={{#if:{{{image|}}}|[[File:{{{image}}}]]|}}|caption={{{image_desc|}}}}}
  +
{{Infobox/Vertical Item|key=Period|value={{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}} - {{{end_date}}}}}}}}}
  +
{{Infobox/Item|key=Location|value={{{location|}}}}}
  +
{{Infobox/Item|key=Result|value={{{treaty/outcome}}}}}
  +
{{Infobox/Item|key=Territorial Changes|value={{{changes|}}}}}
  +
{{Infobox/SectionHeader|section=Belligerents}}
  +
{{Infobox/Column|leftValue={{#if:{{{force_1_header|}}}|'''{{{force_1_header|}}}'''|}}|rightValue={{#if:{{{force_2_header|}}}|'''{{{force_2_header|}}}'''|}}}}
  +
{{#if:{{{force_1_list|}}}{{{force_2_list|}}}|{{Infobox/Bar}}|}}
  +
{{Infobox/Column|leftValue={{{force_1_list|}}}|rightValue={{{force_2_list|}}}}}
  +
{{Infobox/SectionHeader|section=Strength}}
  +
{{Infobox/Column|leftValue={{{force_1_strength|}}}|rightValue={{{force_2_strength|}}}}}
  +
{{Infobox/SectionHeader|section=Casualties and Losses}}
  +
{{Infobox/Column|leftValue={{{force_1_losses|}}}|rightValue={{{force_2_losses|}}}}}
  +
{{Infobox/end}}</includeonly>
  +
  +
<noinclude>
  +
{{War}}
  +
  +
{{War
  +
|title = {{PAGENAME}}|greater_conflict = [greater_conflict]
  +
|image = KP dark.png|image_desc = [description]
  +
|start_date = [start_date]|end_date = [end_date]
  +
|location = [location]
  +
|treaty/outcome = [treaty/outcome]
  +
|changes = [changes]
  +
|force_1_header = [force_1_header]|force_2_header = [force_2_header]
  +
|force_1_list = [force_1_list]|force_2_list = [force_2_list]
  +
|force_1_strength = [force_1_strength]|force_2_strength = [force_2_strength]
  +
|force_1_losses = [force_1_losses]|force_2_losses = [force_2_losses]
  +
}}
  +
  +
[[Category:Infoboxes]]
  +
[[Category:Templates]]
   
{{TemplateData header}}
 
{{collapse top|title=TemplateData}}
 
 
<templatedata>
 
<templatedata>
 
{
 
{
"description": "Summarize information about a particular military conflict (a battle, campaign, war, or group of related wars).",
 
"format": "{{_\n| _________________ = _\n}}\n",
 
 
"params": {
 
"params": {
"conflict": {
+
"title": {},
"label": "Conflict",
+
"greater_conflict": {},
  +
"illustration": {},
"description": "The name of the conflict being described.",
 
  +
"illustration_desc": {},
"type": "string/line",
 
"required": true
+
"start_date": {},
},
+
"end_date": {},
"width": {
+
"location": {},
"label": "Width",
+
"treaty/outcome": {},
  +
"changes": {},
"description": "Width of the infobox.",
 
  +
"force_1_header": {
"type": "string",
 
"default": "315px",
+
"label": "Force A Name"
"required": false
 
},
 
"partof": {
 
"label": "Part of",
 
"description": "The larger conflict containing the event described in the article.",
 
"type": "wiki-page-name",
 
"required": false
 
},
 
"image": {
 
"label": "Image",
 
"description": "An image for the warbox given in the form Example.jpg.",
 
"type": "wiki-file-name",
 
"required": false
 
},
 
"image_size": {
 
"label": "Image size",
 
"description": "The size of the image",
 
"type": "string",
 
"required": false
 
},
 
"alt": {
 
"label": "Alt",
 
"description": "Alternative textual description of the image",
 
"type": "string",
 
"required": false
 
},
 
"caption": {
 
"label": "Caption",
 
"description": "The text to be placed below the image.",
 
"type": "string",
 
"required": false
 
},
 
"date": {
 
"label": "Date",
 
"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": {
+
"force_2_header": {
"label": "Casualties of Combatant 2",
+
"label": "Force B Name"
"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": {
+
"force_1_list": {
"label": "Casualties of Combatant 3",
+
"label": "Force A List"
"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": {
+
"force_2_list": {
"label": "Notes",
+
"label": "Force B List"
"description": "Optional field for further notes; this should only be used in exceptional circumstances.",
 
"type": "string",
 
"required": false
 
 
},
 
},
"campaignbox": {
+
"force_1_strength": {},
  +
"force_2_strength": {},
"label": "Campaignbox",
 
  +
"force_1_losses": {},
"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}}.",
 
  +
"force_2_losses": {}
"type": "string",
 
"required": false
 
}
 
 
}
 
}
  +
}
}</templatedata>
 
  +
</templatedata>
{{Collapse bottom}}
 
  +
</noinclude>

Latest revision as of 13:14, 28 October 2022



War

Result {{{treaty/outcome}}}
Belligerents
Strength
Casualties and Losses


War
[greater_conflict]
KP dark.png
[description]
Period
[start_date] - [end_date]
Location [location]
Result [treaty/outcome]
Territorial Changes [changes]
Belligerents
[force_1_header] [force_2_header]

[force_1_list] [force_2_list]
Strength
[force_1_strength] [force_2_strength]
Casualties and Losses
[force_1_losses] [force_2_losses]

No description.

Template parameters

ParameterDescriptionTypeStatus
titletitle

no description

Unknownoptional
greater_conflictgreater_conflict

no description

Unknownoptional
illustrationillustration

no description

Unknownoptional
illustration_descillustration_desc

no description

Unknownoptional
start_datestart_date

no description

Unknownoptional
end_dateend_date

no description

Unknownoptional
locationlocation

no description

Unknownoptional
treaty/outcometreaty/outcome

no description

Unknownoptional
changeschanges

no description

Unknownoptional
Force A Nameforce_1_header

no description

Unknownoptional
Force B Nameforce_2_header

no description

Unknownoptional
Force A Listforce_1_list

no description

Unknownoptional
Force B Listforce_2_list

no description

Unknownoptional
force_1_strengthforce_1_strength

no description

Unknownoptional
force_2_strengthforce_2_strength

no description

Unknownoptional
force_1_lossesforce_1_losses

no description

Unknownoptional
force_2_lossesforce_2_losses

no description

Unknownoptional