Template:War: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
m (Spartwo moved page Template:Battle (fixed) to Template:War without leaving a redirect)
mNo edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Corporation/style.css" />
+
<templatestyles src="War/styles.css" />
   
 
<includeonly>{{Infobox/begin}}
 
<includeonly>{{Infobox/begin}}
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
+
{{Infobox/Header|title={{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{greater_conflict|}}}|{{{greater_conflict|}}}|}}}}
{{Infobox/Illustration|file=[[File:{{{logo}}}]]|caption={{{logodesc}}}}}
+
{{Infobox/Illustration|file={{#if:{{{image|}}}|[[File:{{{image}}}]]|}}|caption={{{image_desc|}}}}}
{{Infobox/Item|key=Industry|value={{{industry}}}}}
+
{{Infobox/Vertical Item|key=Period|value={{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}} - {{{end_date}}}}}}}}}
{{Infobox/SectionHeader|section=Location}}
+
{{Infobox/Item|key=Location|value={{{location|}}}}}
{{Infobox/Item|key=Headquaters|value={{{headquarters}}}}}
+
{{Infobox/Item|key=Result|value={{{treaty/outcome}}}}}
{{Infobox/Item|key=Area Served|value={{{area}}}}}
+
{{Infobox/Item|key=Territorial Changes|value={{{changes|}}}}}
{{Infobox/SectionHeader|section=Operation}}
+
{{Infobox/SectionHeader|section=Belligerents}}
{{Infobox/Column|ForceACaption={{{Declarer Force}}}|ForceBCaption={{{Defender Force}}}|leftBody={{{left text body}}}|rightBody={{{right text body}}}}}
+
{{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/Item|key=CEO|value={{{ceo}}}}}
 
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries}}}}}
+
{{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>
 
{{Infobox/end}}</includeonly>
   
 
<noinclude>
 
<noinclude>
{{Infobox/begin}}
+
{{War}}
  +
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
 
  +
{{War
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{logodesc}}}}}
 
  +
|title = {{PAGENAME}}|greater_conflict = [greater_conflict]
{{Infobox/Item|key=Industry|value={{{industry}}}}}
 
  +
|image = KP dark.png|image_desc = [description]
{{Infobox/SectionHeader|section=Location}}
 
  +
|start_date = [start_date]|end_date = [end_date]
{{Infobox/Item|key=Headquaters|value={{{headquarters}}}}}
 
  +
|location = [location]
{{Infobox/Item|key=Area Served|value={{{area}}}}}
 
  +
|treaty/outcome = [treaty/outcome]
{{Infobox/SectionHeader|section=Operation}}
 
  +
|changes = [changes]
{{Infobox/Column|ForceACaption={{{Declarer Force}}}|ForceBCaption={{{Defender Force}}}|leftBody={{{left text body}}}|rightBody={{{right text body}}}}}
 
  +
|force_1_header = [force_1_header]|force_2_header = [force_2_header]
{{Infobox/Item|key=CEO|value={{{ceo}}}}}
 
  +
|force_1_list = [force_1_list]|force_2_list = [force_2_list]
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries}}}}}
 
  +
|force_1_strength = [force_1_strength]|force_2_strength = [force_2_strength]
{{Infobox/end}}
 
  +
|force_1_losses = [force_1_losses]|force_2_losses = [force_2_losses]
  +
}}
   
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
Line 34: Line 40:
 
{
 
{
 
"params": {
 
"params": {
"name": {
+
"title": {},
  +
"greater_conflict": {},
"label": "Company Name",
 
"type": "string",
+
"illustration": {},
"required": true
+
"illustration_desc": {},
},
+
"start_date": {},
"localized_name": {
+
"end_date": {},
"label": "Native Name",
+
"location": {},
"type": "string"
+
"treaty/outcome": {},
},
+
"changes": {},
"logo": {
+
"force_1_header": {
"label": "Logo",
+
"label": "Force A Name"
"type": "wiki-file-name",
 
"required": true
 
},
 
"logodesc": {
 
"label": "Logo description",
 
"description": "A short description of the logos features",
 
"type": "string",
 
"suggested": true
 
},
 
"industry": {
 
"label": "Industry",
 
"description": "Industry the company specialises in",
 
"type": "string",
 
"required": true
 
},
 
"founded": {
 
"label": "Year Founded",
 
"type": "string"
 
 
},
 
},
"ceo": {
+
"force_2_header": {
"label": "Company CEO",
+
"label": "Force B Name"
"type": "string"
 
 
},
 
},
"headquarters": {
+
"force_1_list": {
"label": "Headquarters Location",
+
"label": "Force A List"
"type": "string",
 
"required": true
 
 
},
 
},
"area_served": {
+
"force_2_list": {
"label": "Regions of Operation",
+
"label": "Force B List"
"type": "string",
 
"suggested": true
 
 
},
 
},
"subsidiaries": {
+
"force_1_strength": {},
  +
"force_2_strength": {},
"label": "Subsidiary Groups",
 
  +
"force_1_losses": {},
"type": "string"
 
  +
"force_2_losses": {}
}
 
},
+
}
"description": "Infobox for Corporations",
 
"format": "block",
 
"paramOrder": [
 
"name",
 
"localized_name",
 
"logo",
 
"logodesc",
 
"industry",
 
"headquarters",
 
"area_served",
 
"founded",
 
"ceo",
 
"subsidiaries"
 
]
 
 
}
 
}
 
</templatedata>
 
</templatedata>

Latest revision as of 12: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