Template:Corporation: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(9 intermediate revisions by the same user 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}}
 
{{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:{{{year|}}}{{{ceo|}}}{{{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=Subsidiaries|value={{{subsidiaries|}}}}}
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
   
 
<noinclude>
 
<noinclude>
{{Infobox/begin}}
+
{{Corporation}}
  +
{{Infobox/Header|title={{{name}}}|subtitle={{{localized_name}}}}}
 
  +
{{Corporation
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{logodesc}}}}}
 
  +
|name = [company short name]
{{Infobox/Item|key=Industry|value={{{industry}}}}}
 
  +
|full_name = [full company name]
{{Infobox/SectionHeader|section=Location}}
 
  +
|logo = KP_dark.png|logodesc = [logodesc]
{{Infobox/Item|key=Headquaters|value={{{headquarters}}}}}
 
  +
|industry = [industry]
{{Infobox/Item|key=Area Served|value={{{area}}}}}
 
  +
|headquarters = [nation/address]
{{Infobox/SectionHeader|section=Operation}}
 
  +
|area = [operating_locations]
{{Infobox/Item|key=Founded|value={{{year}}}}}
 
  +
|foundation_year = [foundation_year]
{{Infobox/Item|key=CEO|value={{{ceo}}}}}
 
  +
|dissolved_year = [dissolved_year]
{{Infobox/Item|key=Subsidiaries|value={{{subsidiaries}}}}}
 
  +
|year = [foundation_year]
{{Infobox/end}}
 
  +
|ceo = [ceo]
  +
|subsidiaries = [subcompanies]
  +
}}
   
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
Line 37: Line 41:
 
"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",
  +
"example": "KP dark.png"
 
},
 
},
 
"logodesc": {
 
"logodesc": {
Line 59: Line 62:
 
"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 73:
 
"required": true
 
"required": true
 
},
 
},
"area_served": {
+
"subsidiaries": {
  +
"label": "Subsidiary Groups",
 
"type": "string",
  +
"suggested": true
 
},
  +
"full_name": {
 
"label": "Full Company Name",
 
"type": "string"
 
},
 
"area": {
 
"label": "Regions of Operation",
 
"label": "Regions of Operation",
 
"type": "string",
 
"type": "string",
 
"suggested": true
 
"suggested": true
 
},
 
},
"subsidiaries": {
+
"foundation_year": {
"label": "Subsidiary Groups",
+
"label": "Year of Foundation",
"type": "string"
+
"type": "date",
  +
"suggested": true
  +
},
  +
"dissolved_year": {
 
"label": "Year of Dissolution",
  +
"type": "date",
  +
"suggested": true
 
}
 
}
 
},
 
},
"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",
 
"ceo",
 
"ceo",
"subsidiaries"
+
"subsidiaries",
  +
"dissolved_year"
 
]
 
]
 
}
 
}

Latest revision as of 15:28, 28 October 2022



Corporation

Location
Headquaters {{{headquarters}}}


[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]

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
Example
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 of Foundationfoundation_year

no description

Datesuggested
Company CEOceo

no description

Stringsuggested
Subsidiary Groupssubsidiaries

no description

Stringsuggested
Year of Dissolutiondissolved_year

no description

Datesuggested