Jump to content

Template:CompanyCargo/doc: Difference between revisions

From Consumer Rights Wiki
Created page with "{{Important|This is a work in progress}} {{#template_params:Description (label=Description) |Founded (label=Founded) |Industry (label=Industry) |Logo (label=Logo) |ParentCompany (label=Parent Company) |Type (label=Type) |Website (label=Website) }} {{#cargo_declare:_table=Company | Description = String | Founded = Date | Industry = List (,) of String..."
 
Remove whitespace
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Important|This is a work in progress}}
{{Important|This is a work in progress}}
{{#template_params:Description (label=Description)
{{#template_params:Description (label=Description)
                   |Founded (label=Founded)
                   |Founded (label=Founded)
Line 9: Line 8:
                   |Website (label=Website)
                   |Website (label=Website)
}}
}}
{{#cargo_declare:_table=Company
| Description  = String
| Founded      = Date
| Industry      = List (,) of String
| Logo          = File
| ParentCompany = Page
| Type          = String (allowed values=Public,Private,Government,Non-Profit,Other)
| Website      = List (,) of URL
}}
<templatedata>
{
"description": "The CompanyCargo template is responsible for creating a structured database for companies for the Wiki extension and rendering an infobox off the data.",
"params": {
"Founded": {
"label": "Founded",
"description": "Date when the company was founded",
"type": "date",
"example": "2013 OR 2013-11 OR 2013-11-23 (YYYY-MM-DD where month and day are optional)",
"required": false
},
"Industry": {
"label": "Industry",
"description": "Industries that this company is part of",
"example": "Electronics,GPUs",
"type": "string"
},
"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>

Latest revision as of 22:03, 18 July 2025

Important: This is a work in progress


This is the "CompanyCargo/doc" template.

It should be called in the following format:

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

Edit the page to see the template text.