Template:Corporation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Descriptions) |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <templatestyles src="Corporation/style.css" /> |
||
+ | |||
<includeonly>{{Infobox/begin}} |
<includeonly>{{Infobox/begin}} |
||
− | {{Infobox/Header|title={{{name}}}|subtitle={{{ |
+ | {{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={{{ |
+ | {{Infobox/Item|key=Founded|value={{{foundation_year|}}}}} |
− | {{Infobox/Item|key= |
+ | {{Infobox/Item|key=Dissolved|value={{{dissolved_year|}}}}} |
− | {{Infobox/Item|key= |
+ | {{Infobox/Item|key=CEO|value={{{ceo|}}}}} |
⚫ | |||
⚫ | |||
{{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={{{flagdesc}}}}} |
||
+ | |full_name = [full company name] |
||
− | {{Infobox/Item|key=Industry|value={{{denonym}}}}} |
||
+ | |logo = KP_dark.png|logodesc = [logodesc] |
||
− | {{Infobox/SectionHeader|section=Location}} |
||
+ | |industry = [industry] |
||
− | {{Infobox/Item|key=Headquaters|value={{{denonym}}}}} |
||
+ | |headquarters = [nation/address] |
||
− | {{Infobox/Item|key=Area Served|value={{{denonym}}}}} |
||
+ | |area = [operating_locations] |
||
− | {{Infobox/SectionHeader|section=Operation}} |
||
+ | |foundation_year = [foundation_year] |
||
− | {{Infobox/Item|key=Founded|value={{{denonym}}}}} |
||
+ | |dissolved_year = [dissolved_year] |
||
⚫ | |||
+ | |year = [foundation_year] |
||
⚫ | |||
+ | |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 35: | 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": { |
||
− | " |
+ | "example": "Automated Deterrence" |
⚫ | |||
}, |
}, |
||
"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": { |
||
− | "label": " |
+ | "label": "Logo description", |
"description": "A short description of the logos features", |
"description": "A short description of the logos features", |
||
"type": "string", |
"type": "string", |
||
Line 57: | Line 85: | ||
"type": "string", |
"type": "string", |
||
"required": true |
"required": true |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}, |
}, |
||
"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", |
||
⚫ | |||
+ | "description": "Subsidiary companies" |
||
⚫ | |||
+ | "full_name": { |
||
+ | "label": "Full Company Name", |
||
⚫ | |||
+ | "description": "Full name", |
||
+ | "example": "Automated Deterrence Defense Solutions Inc." |
||
⚫ | |||
⚫ | |||
"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": " |
+ | "label": "Year of Foundation", |
− | "type": " |
+ | "type": "date", |
+ | "suggested": true, |
||
+ | "description": "Year the company was founded" |
||
+ | }, |
||
+ | "dissolved_year": { |
||
⚫ | |||
+ | "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", |
||
− | " |
+ | "full_name", |
"logo", |
"logo", |
||
"logodesc", |
"logodesc", |
||
"industry", |
"industry", |
||
"headquarters", |
"headquarters", |
||
− | " |
+ | "area", |
− | " |
+ | "foundation_year", |
+ | "dissolved_year", |
||
"ceo", |
"ceo", |
||
+ | "parent", |
||
"subsidiaries" |
"subsidiaries" |
||
] |
] |
Latest revision as of 23:00, 9 February 2025
Usage
{{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
{{Corporation/Airline|...}}
: Section for airlines and other air-services companies.
TemplateData
Infobox for Corporations
Parameter | Description | Type | Status | |
---|---|---|---|---|
Company Name | name | Usage name of the company
| String | required |
Full Company Name | full_name | Full name
| String | optional |
Logo | logo | Logo of the company
| File | required |
Logo description | logodesc | A short description of the logos features | String | suggested |
Industry | industry | Industry the company specialises in | String | required |
Headquarters Location | headquarters | Location of the company's headquarters | String | required |
Regions of Operation | area | Area typically served by the company
| String | suggested |
Year of Foundation | foundation_year | Year the company was founded | Date | suggested |
Year of Dissolution | dissolved_year | Year the company was dissolved, if any | Date | optional |
Company CEO | ceo | Current CEO or leader of the company, may consist of several individuals. | String | suggested |
Parent company | parent | Parent or holding company | Page name | optional |
Subsidiary Groups | subsidiaries | Subsidiary companies | String | optional |