Template:Corporation: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
(Descriptions)
 
(8 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
<includeonly>{{Infobox/begin}}
 
<includeonly>{{Infobox/begin}}
 
{{Infobox/Header|title={{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{full_name|}}}|{{{full_name|}}}|}}}}
 
{{Infobox/Header|title={{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{full_name|}}}|{{{full_name|}}}|}}}}
{{Infobox/Illustration|file={{#if:{{{logo|}}}|[[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/Bar}}
 
{{Infobox/Item|key=Founded|value={{{year|}}}}}
+
{{Infobox/Item|key=Founded|value={{{foundation_year|}}}}}
  +
{{Infobox/Item|key=Dissolved|value={{{dissolved_year|}}}}}
 
{{Infobox/Item|key=CEO|value={{{ceo|}}}}}
 
{{Infobox/Item|key=CEO|value={{{ceo|}}}}}
  +
{{Infobox/Item|key=Parent|value={{{parent|}}}}}
 
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries|}}}}}
 
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries|}}}}}
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
   
 
<noinclude>
 
<noinclude>
  +
== Usage ==
{{Corporation}}
 
 
 
{{Corporation
 
{{Corporation
|name = {{PAGENAME}}
+
|name = [company short name]
 
|full_name = [full company name]
 
|full_name = [full company name]
 
|logo = KP_dark.png|logodesc = [logodesc]
 
|logo = KP_dark.png|logodesc = [logodesc]
Line 24: Line 25:
 
|headquarters = [nation/address]
 
|headquarters = [nation/address]
 
|area = [operating_locations]
 
|area = [operating_locations]
  +
|foundation_year = [foundation_year]
  +
|dissolved_year = [dissolved_year]
 
|year = [foundation_year]
 
|year = [foundation_year]
 
|ceo = [ceo]
 
|ceo = [ceo]
 
|subsidiaries = [subcompanies]
 
|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 39: Line 62:
 
"type": "string",
 
"type": "string",
 
"required": true,
 
"required": true,
"default": "{{PAGENAME}}"
+
"default": "{{PAGENAME}}",
  +
"description": "Usage name of the company",
  +
"example": "Automated Deterrence"
 
},
 
},
 
"logo": {
 
"logo": {
Line 45: Line 70:
 
"type": "wiki-file-name",
 
"type": "wiki-file-name",
 
"required": true,
 
"required": true,
"default": "KP_dark.png"
+
"default": "KP_dark.png",
  +
"example": "KP dark.png",
  +
"description": "Logo of the company"
 
},
 
},
 
"logodesc": {
 
"logodesc": {
Line 62: Line 89:
 
"label": "Company CEO",
 
"label": "Company CEO",
 
"type": "string",
 
"type": "string",
"suggested": true
+
"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": {
 
"subsidiaries": {
 
"label": "Subsidiary Groups",
 
"label": "Subsidiary Groups",
 
"type": "string",
 
"type": "string",
  +
"description": "Subsidiary companies"
"suggested": true
 
 
},
 
},
 
"full_name": {
 
"full_name": {
 
"label": "Full Company Name",
 
"label": "Full Company Name",
"type": "string"
+
"type": "string",
  +
"description": "Full name",
},
 
  +
"example": "Automated Deterrence Defense Solutions Inc."
"year": {
 
"label": "Year Founded",
 
"type": "date",
 
"suggested": true
 
 
},
 
},
 
"area": {
 
"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"
 
},
  +
"foundation_year": {
 
"label": "Year of Foundation",
 
"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"
 
}
 
}
 
},
 
},
Line 99: Line 143:
 
"headquarters",
 
"headquarters",
 
"area",
 
"area",
"year",
+
"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