Template:CompanyCargo: Difference between revisions

added "short description" for browser extension
Tag: 2017 source edit
Schang1146 (talk | contribs)
Undo revision 16151 by Schang1146 (talk)
Tag: Undo
 
(10 intermediate revisions by the same user not shown)
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:
: '''Description:''' (Mandatory) Description of a company in 150 characters or less
: '''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


{{#cargo_declare:_table=Companies
{{#template_params:Description (label=Description)
|Country=String
                  |Founded (label=Founded)
|ShortDescription=String
                  |Industry (label=Industry)
                  |Logo (label=Logo)
                  |ParentCompany (label=Parent Company)
                  |Type (label=Type)
                  |Website (label=Website)
}}
{{#cargo_declare:_table=Company
| Description  = String (mandatory)
| Founded      = Date (mandatory)
| 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
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=Companies
{{#cargo_store:_table=Company
|ShortDescription={{{short_description|}}}
| Founded      = {{{Founded}}}
| Industry      = {{{Industry}}}
| Logo          = {{{Logo}}}
| ParentCompany = {{{ParentCompany}}}
| Type          = {{{Type}}}
| Website      = {{{Website|}}}
| Description  = {{{Description}}}
}}
}}
{|
! Country of origin
| {{{Country|}}}
|-
! Short description (for browser extension)
| {{{short_description|}}}
|-
! Incidents
| {{#cargo_query:tables=Incidents|where=Companies HOLDS '{{PAGENAME}}'}}
|}
</includeonly>
</includeonly>