Jump to content

Template:CompanyCargo: Difference between revisions

From Consumer Rights Wiki
added "short description" for browser extension
Tag: 2017 source edit
Schang1146 (talk | contribs)
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{Important|Testing cargo installation}}
{{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.


'''Short description:''' This appears in the browser extension when someone visits this company's website. Limit to 140 characters. Be concise and clear.
; Fields available:
: '''Founded:''' (Mandatory) Date when the company was founded.
: '''Industry:''' (Mandatory) Industries that this company is part of.
: '''Logo:''' (Optional) Image file of the company's logo.
: '''ParentCompany:''' (Optional) Parent company to the company.
: '''Type:''' (Mandatory) 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.
: '''Description:''' (Mandatory) Description of a company in 150 characters or less.


{{#cargo_declare:_table=Companies
{{#cargo_declare:_table=Company
|Country=String
| Founded      = Date (mandatory)
|ShortDescription=String
| Industry      = List (,) of String (mandatory)
| Logo          = File
| ParentCompany = Page
| Type          = List (,) of String (allowed values=Public,Private,Government,Non-Profit,Other;mandatory)
| Website      = List (,) of URL
| Description  = String
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=Companies
{{#cargo_store:_table=Company}}
|ShortDescription={{{short_description|}}}
}}
{|
! Country of origin
| {{{Country|}}}
|-
! Short description (for browser extension)
| {{{short_description|}}}
|-
! Incidents
| {{#cargo_query:tables=Incidents|where=Companies HOLDS '{{PAGENAME}}'}}
|}
</includeonly>
</includeonly>

Revision as of 22:09, 23 June 2025


Important: This is a work in progress


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

Fields available
Founded: (Mandatory) Date when the company was founded.
Industry: (Mandatory) Industries that this company is part of.
Logo: (Optional) Image file of the company's logo.
ParentCompany: (Optional) Parent company to the company.
Type: (Mandatory) 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.
Description: (Mandatory) Description of a company in 150 characters or less.

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