Template:Corporation: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
(Descriptions)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatestyles src="Corporation/styles.css" />
+
<templatestyles src="Corporation/style.css" />
   
 
<includeonly>{{Infobox/begin}}
 
<includeonly>{{Infobox/begin}}
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
+
{{Infobox/Header|title={{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{full_name|}}}|{{{full_name|}}}|}}}}
{{Infobox/Illustration|file={{{logo}}}|caption={{{logodesc}}}}}
+
{{Infobox/Illustration|file={{#if:{{{logo|}}}|[[File:{{{logo}}}]]|}}|caption={{{logodesc|}}}}}
{{Infobox/Item|key=Industry|value={{{industry}}}}}
+
{{Infobox/Item|key=Industry|value={{{industry|}}}}}
{{Infobox/SectionHeader|section=Location}}
+
{{#if:{{{headquarters|}}}{{{area|}}}|{{Infobox/SectionHeader|section=Location}}|}}
{{Infobox/Item|key=Headquaters|value={{{headquarters}}}}}
+
{{Infobox/Item|key=Headquaters|value={{{headquarters|}}}}}
{{Infobox/Item|key=Area Served|value={{{area}}}}}
+
{{Infobox/Item|key=Area Served|value={{{area|}}}}}
  +
{{#if:{{{foundation_year|}}}{{{dissolved_year|}}}{{{ceo|}}}{{{parent|}}}{{{subsidiaries|}}}|{{Infobox/Bar}}|}}
{{Infobox/SectionHeader|section=Operation}}
 
{{Infobox/Item|key=Founded|value={{{year}}}}}
+
{{Infobox/Item|key=Founded|value={{{foundation_year|}}}}}
{{Infobox/Item|key=CEO|value={{{ceo}}}}}
+
{{Infobox/Item|key=Dissolved|value={{{dissolved_year|}}}}}
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries}}}}}
+
{{Infobox/Item|key=CEO|value={{{ceo|}}}}}
 
{{Infobox/Item|key=Parent|value={{{parent|}}}}}
 
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries|}}}}}
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
   
 
<noinclude>
 
<noinclude>
  +
== Usage ==
{{Infobox/begin}}
 
  +
{{Corporation
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
 
  +
|name = [company short name]
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{logodesc}}}}}
 
  +
|full_name = [full company name]
{{Infobox/Item|key=Industry|value={{{industry}}}}}
 
  +
|logo = KP_dark.png|logodesc = [logodesc]
{{Infobox/SectionHeader|section=Location}}
 
  +
|industry = [industry]
{{Infobox/Item|key=Headquaters|value={{{headquarters}}}}}
 
  +
|headquarters = [nation/address]
{{Infobox/Item|key=Area Served|value={{{area}}}}}
 
  +
|area = [operating_locations]
{{Infobox/SectionHeader|section=Operation}}
 
  +
|foundation_year = [foundation_year]
{{Infobox/Item|key=Founded|value={{{year}}}}}
 
  +
|dissolved_year = [dissolved_year]
{{Infobox/Item|key=CEO|value={{{ceo}}}}}
 
  +
|year = [foundation_year]
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries}}}}}
 
  +
|ceo = [ceo]
{{Infobox/end}}
 
  +
|subsidiaries = [subcompanies]
  +
}}
  +
<pre>
  +
{{Corporation
  +
|name = [company short name]
  +
|full_name = [full company name]
  +
|logo = KP_dark.png|logodesc = [logodesc]
  +
|industry = [industry]
  +
|headquarters = [nation/address]
  +
|area = [operating_locations]
  +
|foundation_year = [foundation_year]
  +
|dissolved_year = [dissolved_year]
  +
|year = [foundation_year]
  +
|ceo = [ceo]
  +
|subsidiaries = [subcompanies]
  +
}}
  +
</pre>
  +
  +
== Sub-template components ==
  +
* [[Template:Corporation/Airline|<code><nowiki>{{Corporation/Airline|...}}</nowiki></code>]] : Section for airlines and other air-services companies.
   
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
[[Category:Templates]]
 
[[Category:Templates]]
   
  +
{{clr}}
  +
== TemplateData ==
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 37: Line 61:
 
"label": "Company Name",
 
"label": "Company Name",
 
"type": "string",
 
"type": "string",
"required": true
+
"required": true,
  +
"default": "{{PAGENAME}}",
},
 
  +
"description": "Usage name of the company",
"localized_name": {
 
"label": "Native Name",
+
"example": "Automated Deterrence"
"type": "string"
 
 
},
 
},
 
"logo": {
 
"logo": {
 
"label": "Logo",
 
"label": "Logo",
 
"type": "wiki-file-name",
 
"type": "wiki-file-name",
"required": true
+
"required": true,
  +
"default": "KP_dark.png",
  +
"example": "KP dark.png",
  +
"description": "Logo of the company"
 
},
 
},
 
"logodesc": {
 
"logodesc": {
Line 59: Line 85:
 
"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,
  +
"description": "Current CEO or leader of the company, may consist of several individuals."
 
},
 
},
 
"headquarters": {
 
"headquarters": {
 
"label": "Headquarters Location",
 
"label": "Headquarters Location",
 
"type": "string",
 
"type": "string",
"required": true
+
"required": true,
  +
"description": "Location of the company's headquarters"
 
},
  +
"subsidiaries": {
  +
"label": "Subsidiary Groups",
 
"type": "string",
  +
"description": "Subsidiary companies"
 
},
  +
"full_name": {
  +
"label": "Full Company Name",
 
"type": "string",
  +
"description": "Full name",
  +
"example": "Automated Deterrence Defense Solutions Inc."
 
},
 
},
"area_served": {
+
"area": {
 
"label": "Regions of Operation",
 
"label": "Regions of Operation",
 
"type": "string",
 
"type": "string",
"suggested": true
+
"suggested": true,
  +
"description": "Area typically served by the company",
  +
"example": "Kolus, Feguanesia, Worldwide"
 
},
 
},
"subsidiaries": {
+
"foundation_year": {
"label": "Subsidiary Groups",
+
"label": "Year of Foundation",
"type": "string"
+
"type": "date",
  +
"suggested": true,
  +
"description": "Year the company was founded"
  +
},
  +
"dissolved_year": {
 
"label": "Year of Dissolution",
  +
"type": "date",
  +
"description": "Year the company was dissolved, if any"
  +
},
 
"parent": {
  +
"label": "Parent company",
  +
"description": "Parent or holding company",
  +
"type": "wiki-page-name"
 
}
 
}
 
},
 
},
"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",
+
"foundation_year",
  +
"dissolved_year",
 
"ceo",
 
"ceo",
  +
"parent",
 
"subsidiaries"
 
"subsidiaries"
 
]
 
]

Latest revision as of 23:00, 9 February 2025



Usage

[company short name]
[full company name]
KP dark.png
[logodesc]
Industry [industry]
Location
Headquaters [nation/address]
Area Served [operating_locations]

Founded [foundation_year]
Dissolved [dissolved_year]
CEO [ceo]
Subsidiaries [subcompanies]


{{Corporation
|name = [company short name]
|full_name =  [full company name]
|logo = KP_dark.png|logodesc =  [logodesc]
|industry = [industry]
|headquarters = [nation/address]
|area =  [operating_locations]
|foundation_year = [foundation_year]
|dissolved_year = [dissolved_year]
|year = [foundation_year]
|ceo =  [ceo]
|subsidiaries = [subcompanies]
}}

Sub-template components

TemplateData

Infobox for Corporations

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Company Namename

Usage name of the company

Default
{{PAGENAME}}
Example
Automated Deterrence
Stringrequired
Full Company Namefull_name

Full name

Example
Automated Deterrence Defense Solutions Inc.
Stringoptional
Logologo

Logo of the company

Default
KP_dark.png
Example
KP dark.png
Filerequired
Logo descriptionlogodesc

A short description of the logos features

Stringsuggested
Industryindustry

Industry the company specialises in

Stringrequired
Headquarters Locationheadquarters

Location of the company's headquarters

Stringrequired
Regions of Operationarea

Area typically served by the company

Example
Kolus, Feguanesia, Worldwide
Stringsuggested
Year of Foundationfoundation_year

Year the company was founded

Datesuggested
Year of Dissolutiondissolved_year

Year the company was dissolved, if any

Dateoptional
Company CEOceo

Current CEO or leader of the company, may consist of several individuals.

Stringsuggested
Parent companyparent

Parent or holding company

Page nameoptional
Subsidiary Groupssubsidiaries

Subsidiary companies

Stringoptional