Jump to content

Template:CompanyCargo: Difference between revisions

From Consumer Rights Wiki
No edit summary
No edit summary
Line 2: Line 2:
{{Important|This is a work in progress}}
{{Important|This is a work in progress}}
This is the "Company" template used with Cargo and the Wiki extension.
This is the "Company" template used with Cargo and the Wiki extension.
; Fields available:
: '''Description:''' (Optional) Description of a company in 150 characters or less
: '''Founded:''' (Optional) Date when the company was founded
: '''Industry:''' (Optional) Industries that this company is part of
: '''Logo:''' (Optional) Image file of the company's logo
: '''ParentCompany:''' (Optional) Parent company to the company
: '''Type:''' (Optional) Refers to if a company is public, private, non-profit, part of the government, or other
: '''Website:''' (Optional) Links to a company website - only include a website if it represents a separate top level domain (TLD) or regional variation


{{#template_params:Description (label=Description)
{{#template_params:Description (label=Description)
Line 31: Line 22:
<templatedata>
<templatedata>
{
{
    "description": "",
"description": "The CompanyCargo template is responsible for creating a structured database for companies and rendering an infobox off the data.",
"params": {
"params": {
"Founded": {
"Founded": {
Line 39: Line 30:
"example": "2013 OR 2013-11 OR 2013-11-23 (YYYY-MM-DD where month and day are optional)",
"example": "2013 OR 2013-11 OR 2013-11-23 (YYYY-MM-DD where month and day are optional)",
"required": false
"required": false
        },
},
"Industry": {},
"Industry": {
"Logo": {},
"label": "Industry",
"ParentCompany": {},
"description": "Industries that this company is part of",
"Type": {},
"example": "Electronics,GPUs",
"Website": {},
"type": "string"
"Description": {}
},
}
"Logo": {
"label": "Logo",
"description": "Image file of the company's logo",
"example": "Apple.png",
"type": "wiki-file-name"
},
"ParentCompany": {
"label": "Parent Company",
"description": "Parent company to the company",
"example": "John Deere",
"type": "wiki-page-name"
},
"Type": {
"label": "Legal structure",
"description": "Refers to if a company is public, private, non-profit, part of the government, or other",
"example": "Public",
"type": "string",
"suggestedvalues": [
"Public",
"Private"
]
},
"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",
"example": "https://www.apple.com",
"type": "url"
},
"Description": {
"label": "Description",
"description": "Description of a company in 150 characters or less",
"type": "string"
}
},
"format": "block"
}
}
</templatedata>
</templatedata>

Revision as of 23:56, 11 July 2025


Important: This is a work in progress


This is the "Company" template used with Cargo and the Wiki extension.

This is the "CompanyCargo" template.

It should be called in the following format:

{{CompanyCargo
|Description=
|Founded=
|Industry=
|Logo=
|ParentCompany=
|Type=
|Website=
}}

Edit the page to see the template text.

This template defines the table "Company". View table.

The CompanyCargo template is responsible for creating a structured database for companies and rendering an infobox off the data.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
FoundedFounded

Date when the company was founded

Example
2013 OR 2013-11 OR 2013-11-23 (YYYY-MM-DD where month and day are optional)
Dateoptional
IndustryIndustry

Industries that this company is part of

Example
Electronics,GPUs
Stringoptional
LogoLogo

Image file of the company's logo

Example
Apple.png
Fileoptional
Parent CompanyParentCompany

Parent company to the company

Example
John Deere
Page nameoptional
Legal structureType

Refers to if a company is public, private, non-profit, part of the government, or other

Suggested values
Public Private
Example
Public
Stringoptional
Official WebsiteWebsite

Links to a company website - only include a website if it represents a separate top level domain (TLD) or regional variation

Example
https://www.apple.com
URLoptional
DescriptionDescription

Description of a company in 150 characters or less

Stringoptional