Template:War: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
  +
<templatestyles src="Corporation/style.css" />
  +
  +
<includeonly>{{Infobox/begin}}
  +
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
  +
{{Infobox/Illustration|file=[[File:{{{logo}}}]]|caption={{{logodesc}}}}}
  +
{{Infobox/Item|key=Industry|value={{{industry}}}}}
  +
{{Infobox/SectionHeader|section=Location}}
  +
{{Infobox/Item|key=Headquaters|value={{{headquarters}}}}}
  +
{{Infobox/Item|key=Area Served|value={{{area}}}}}
  +
{{Infobox/SectionHeader|section=Operation}}
  +
{{Infobox/Column|ForceACaption={{{Declarer Force}}}|ForceBCaption={{{Defender Force}}}|leftBody={{{left text body}}}|rightBody={{{right text body}}}}}
  +
{{Infobox/Item|key=CEO|value={{{ceo}}}}}
  +
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries}}}}}
  +
{{Infobox/end}}</includeonly>
  +
  +
<noinclude>
  +
{{Infobox/begin}}
  +
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
  +
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{logodesc}}}}}
  +
{{Infobox/Item|key=Industry|value={{{industry}}}}}
  +
{{Infobox/SectionHeader|section=Location}}
  +
{{Infobox/Item|key=Headquaters|value={{{headquarters}}}}}
  +
{{Infobox/Item|key=Area Served|value={{{area}}}}}
  +
{{Infobox/SectionHeader|section=Operation}}
  +
{{Infobox/Column|ForceACaption={{{Declarer Force}}}|ForceBCaption={{{Defender Force}}}|leftBody={{{left text body}}}|rightBody={{{right text body}}}}}
  +
{{Infobox/Item|key=CEO|value={{{ceo}}}}}
  +
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries}}}}}
  +
{{Infobox/end}}
  +
  +
[[Category:Infoboxes]]
  +
[[Category:Templates]]
   
 
<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": {
+
"name": {
"label": "Conflict",
+
"label": "Company Name",
  +
"type": "string",
"description": "The name of the conflict being described.",
 
"type": "string/line",
 
 
"required": true
 
"required": true
 
},
 
},
"width": {
+
"localized_name": {
"label": "Width",
+
"label": "Native Name",
"description": "Width of the infobox.",
+
"type": "string"
"type": "string",
 
"default": "315px",
 
"required": false
 
 
},
 
},
"partof": {
+
"logo": {
"label": "Part of",
+
"label": "Logo",
"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",
 
"type": "wiki-file-name",
"required": false
+
"required": true
 
},
 
},
"image_size": {
+
"logodesc": {
"label": "Image size",
+
"label": "Logo description",
"description": "The size of the image",
+
"description": "A short description of the logos features",
 
"type": "string",
 
"type": "string",
"required": false
+
"suggested": true
 
},
 
},
"alt": {
+
"industry": {
"label": "Alt",
+
"label": "Industry",
"description": "Alternative textual description of the image",
+
"description": "Industry the company specialises in",
 
"type": "string",
 
"type": "string",
"required": false
+
"required": true
 
},
 
},
"caption": {
+
"founded": {
"label": "Caption",
+
"label": "Year Founded",
  +
"type": "string"
"description": "The text to be placed below the image.",
 
"type": "string",
 
"required": false
 
 
},
 
},
"date": {
+
"ceo": {
"label": "Date",
+
"label": "Company CEO",
  +
"type": "string"
"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": {
+
"headquarters": {
"label": "Place",
+
"label": "Headquarters Location",
"description": "The location of the conflict.",
 
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 
},
 
},
"coordinates": {
+
"area_served": {
"label": "Coordinates",
+
"label": "Regions of Operation",
"description": "The location of the structure, given as a coordinate pair by using {{coord}} with display=inline,title.",
 
 
"type": "string",
 
"type": "string",
"required": false
+
"suggested": true
 
},
 
},
"map_type": {
+
"subsidiaries": {
"label": "Map Type",
+
"label": "Subsidiary Groups",
  +
"type": "string"
"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
 
 
}
 
}
}
+
},
  +
"description": "Infobox for Corporations",
}</templatedata>
 
  +
"format": "block",
{{Collapse bottom}}
 
  +
"paramOrder": [
  +
"name",
  +
"localized_name",
  +
"logo",
  +
"logodesc",
  +
"industry",
  +
"headquarters",
  +
"area_served",
  +
"founded",
  +
"ceo",
  +
"subsidiaries"
  +
]
  +
}
  +
</templatedata>
  +
</noinclude>

Revision as of 01:13, 23 March 2022



{{{name}}}
{{{localized_name}}}
KP dark.png
{{{logodesc}}}
Industry {{{industry}}}
Location
Headquaters {{{headquarters}}}
Area Served {{{area}}}
Operation
{{{leftValue}}} {{{rightValue}}}
CEO {{{ceo}}}
Subsidiaries {{{subsidiaries}}}

Infobox for Corporations

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Company Namename

no description

Stringrequired
Native Namelocalized_name

no description

Stringoptional
Logologo

no description

Filerequired
Logo descriptionlogodesc

A short description of the logos features

Stringsuggested
Industryindustry

Industry the company specialises in

Stringrequired
Headquarters Locationheadquarters

no description

Stringrequired
Regions of Operationarea_served

no description

Stringsuggested
Year Foundedfounded

no description

Stringoptional
Company CEOceo

no description

Stringoptional
Subsidiary Groupssubsidiaries

no description

Stringoptional