Template:CompanyCargo: Difference between revisions
Added a new entry - CompanyAlias - this will probably remain blank in most cases, but should be used when tehre are companies like X corp which have a common alternate name (e.g. twitter) |
Schang1146 (talk | contribs) Automatically add category if Website is missing |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 42: | Line 42: | ||
"Type": { | "Type": { | ||
"label": "Legal structure", | "label": "Legal structure", | ||
"description": "Refers to if a company is public, private, non-profit, part of the government, or other", | "description": "Refers to if a company is public, private, non-profit, part of the government, a subsidiary, or other", | ||
"example": "Public", | "example": "Public", | ||
"type": "string", | "type": "string", | ||
| Line 49: | Line 49: | ||
"Private", | "Private", | ||
"Government", | "Government", | ||
"Non-Profit" | "Non-Profit", | ||
"Other", | |||
"Subsidiary" | |||
] | ] | ||
}, | }, | ||
| Line 55: | Line 57: | ||
"label": "Official Website", | "label": "Official Website", | ||
"description": "Links to a company website - only include a website if it represents a separate top level domain (TLD) or regional variation", | "description": "Links to a company website - only include a website if it represents a separate top level domain (TLD) or regional variation", | ||
"example": "https://www. | "example": "https://www.deere.com/,https://www.deere.ca/", | ||
"type": "url" | "type": "url" | ||
}, | }, | ||
| Line 85: | Line 87: | ||
| Description = {{{Description|}}} | | Description = {{{Description|}}} | ||
}}<!-- | }}<!-- | ||
// conditional categories if fields are missing | |||
-->{{#if:{{{Website|}}}||[[Category:Articles with Company Cargo missing an entry in the Website field]]}}<!-- | |||
// company infobox element | // company infobox element | ||
--><div class="infobox"> | --><div class="infobox"> | ||
Latest revision as of 00:43, 18 March 2026
This template defines the table "Company". View table.
The CompanyCargo template is responsible for creating a structured database for companies for the Wiki extension and rendering an infobox off the data.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Founded | Founded | Date when the company was founded
| Date | optional |
| Industry | Industry | Industries that this company is part of
| String | optional |
| Logo | Logo | Image file of the company's logo
| File | optional |
| Parent Company | ParentCompany | Parent company to the company
| Page name | optional |
| Legal structure | Type | Refers to if a company is public, private, non-profit, part of the government, a subsidiary, or other
| String | optional |
| Official Website | Website | Links to a company website - only include a website if it represents a separate top level domain (TLD) or regional variation
| URL | optional |
| Description | Description | Description of a company in 150 characters or less | String | optional |
| Company Alias | CompanyAlias | Alternative names or abbreviations for the company
| String | optional |