Template:Corporation: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
   
 
<includeonly>{{Infobox/begin}}
 
<includeonly>{{Infobox/begin}}
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
+
{{Infobox/Header|title={{{name}}}|subtitle={{{full_name}}}}}
 
{{Infobox/Illustration|file=[[File:{{{logo}}}]]|caption={{{logodesc}}}}}
 
{{Infobox/Illustration|file=[[File:{{{logo}}}]]|caption={{{logodesc}}}}}
 
{{Infobox/Item|key=Industry|value={{{industry}}}}}
 
{{Infobox/Item|key=Industry|value={{{industry}}}}}
Line 14: Line 14:
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
   
<noinclude>
+
<noinclude>{{Corporation
  +
|name = {{PAGENAME}}
{{Infobox/begin}}
 
  +
|full_name = [full company name]
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
 
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{logodesc}}}}}
+
|logo = KP_dark.png|logodesc = [logodesc]
  +
|industry = [industry]
{{Infobox/Item|key=Industry|value={{{industry}}}}}
 
  +
|headquarters = [nation/address]
{{Infobox/SectionHeader|section=Location}}
 
  +
|area = [operating_locations]
{{Infobox/Item|key=Headquaters|value={{{headquarters}}}}}
 
  +
|year = [foundation_year]
{{Infobox/Item|key=Area Served|value={{{area}}}}}
 
  +
|ceo = [ceo]
{{Infobox/SectionHeader|section=Operation}}
 
  +
|subsidiaries = [subcompanies]
{{Infobox/Item|key=Founded|value={{{year}}}}}
 
  +
}}
{{Infobox/Item|key=CEO|value={{{ceo}}}}}
 
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries}}}}}
 
{{Infobox/end}}
 
   
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
Line 37: Line 35:
 
"label": "Company Name",
 
"label": "Company Name",
 
"type": "string",
 
"type": "string",
"required": true
+
"required": true,
  +
"default": "{{PAGENAME}}"
},
 
"localized_name": {
 
"label": "Native Name",
 
"type": "string"
 
 
},
 
},
 
"logo": {
 
"logo": {
 
"label": "Logo",
 
"label": "Logo",
 
"type": "wiki-file-name",
 
"type": "wiki-file-name",
"required": true
+
"required": true,
  +
"default": "KP_dark.png"
 
},
 
},
 
"logodesc": {
 
"logodesc": {
Line 59: Line 55:
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
},
 
"founded": {
 
"label": "Year Founded",
 
"type": "string"
 
 
},
 
},
 
"ceo": {
 
"ceo": {
 
"label": "Company CEO",
 
"label": "Company CEO",
"type": "string"
+
"type": "string",
  +
"suggested": true
 
},
 
},
 
"headquarters": {
 
"headquarters": {
Line 73: Line 66:
 
"required": true
 
"required": true
 
},
 
},
"area_served": {
+
"subsidiaries": {
 
"label": "Subsidiary Groups",
 
"type": "string",
  +
"suggested": true
 
},
  +
"full_name": {
 
"label": "Full Company Name",
 
"type": "string"
 
},
 
"year": {
 
"label": "Year Founded",
 
"type": "date",
  +
"suggested": true
 
},
  +
"area": {
 
"label": "Regions of Operation",
 
"label": "Regions of Operation",
 
"type": "string",
 
"type": "string",
 
"suggested": true
 
"suggested": true
},
 
"subsidiaries": {
 
"label": "Subsidiary Groups",
 
"type": "string"
 
 
}
 
}
 
},
 
},
"description": "Infobox for Corporations",
+
"description": "Infobox for Corporations",
 
"format": "block",
 
"format": "block",
 
"paramOrder": [
 
"paramOrder": [
 
"name",
 
"name",
"localized_name",
+
"full_name",
 
"logo",
 
"logo",
 
"logodesc",
 
"logodesc",
 
"industry",
 
"industry",
 
"headquarters",
 
"headquarters",
"area_served",
+
"area",
"founded",
+
"year",
 
"ceo",
 
"ceo",
 
"subsidiaries"
 
"subsidiaries"

Revision as of 21:52, 22 October 2022


Corporation
[full company name]
KP dark.png
[logodesc]
Industry [industry]
Location
Headquaters [nation/address]
Area Served [operating_locations]
Operation
Founded [foundation_year]
CEO [ceo]
Subsidiaries [subcompanies]

Infobox for Corporations

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Company Namename

no description

Default
{{PAGENAME}}
Stringrequired
Full Company Namefull_name

no description

Stringoptional
Logologo

no description

Default
KP_dark.png
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

no description

Stringsuggested
Year Foundedyear

no description

Datesuggested
Company CEOceo

no description

Stringsuggested
Subsidiary Groupssubsidiaries

no description

Stringsuggested