Template:CompanyCargo: Difference between revisions

No edit summary
Remove more whitespace
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Important|This is a work in progress}}
{{Documentation}}
This is the "Company" template used with Cargo and the Wiki extension.
 
{{#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
{{#cargo_declare:_table=Company
| Description  = String
| Description  = String
Line 17: Line 7:
| Logo          = File
| Logo          = File
| ParentCompany = Page
| ParentCompany = Page
| Type          = String (allowed values=Public,Private,Government,Non-Profit,Other)
| Type          = String
| Website      = List (,) of URL
| Website      = List (,) of URL
}}
}}
<templatedata>
<templatedata>
{
{
"description": "The CompanyCargo template is responsible for creating a structured database for companies and rendering an infobox off the data.",
"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": {
"params": {
"Founded": {
"Founded": {
Line 56: Line 46:
"suggestedvalues": [
"suggestedvalues": [
"Public",
"Public",
"Private"
"Private",
                "Government",
                "Non-Profit"
]
]
},
},
Line 62: Line 54:
"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.apple.com",
"example": "https://www.apple.com/",
"type": "url"
"type": "url"
},
},
Line 75: Line 67:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
<includeonly>
 
{{#cargo_store:_table=Company
<includeonly>{{#cargo_store:_table=Company
| Founded      = {{{Founded|}}}
| Founded      = {{{Founded|}}}
| Industry      = {{{Industry|}}}
| Industry      = {{{Industry|}}}
Line 84: Line 76:
| Website      = {{{Website|}}}
| Website      = {{{Website|}}}
| Description  = {{{Description|}}}
| Description  = {{{Description|}}}
}}
}}<div class="infobox">
 
<div class="infobox">
   <div style="display: flex; gap: 8px; flex-direction: column">
   <div style="display: flex; gap: 8px; flex-direction: column">
     <div class="infobox-title">{{PAGENAME}}</div>
     <div class="infobox-title">{{PAGENAME}}</div>
Line 94: Line 84:
         <th colspan="2" class="infobox-table-caption">Basic information</th>
         <th colspan="2" class="infobox-table-caption">Basic information</th>
       </tr>
       </tr>
       <tr>
       <tr>
         <th>{{nowrap|Founded}}</th>
         <th>{{nowrap|Founded}}</th>
         <td>{{{Founded|}}}</td>
         <td>{{{Founded|}}}</td>
       </tr>
       </tr>
       <tr>
       <tr>
         <th>{{nowrap|Legal Structure}}</th>
         <th>{{nowrap|Legal Structure}}</th>
         <td>{{{Type|}}}</td>
         <td>{{{Type|}}}</td>
       </tr>
       </tr>
       <tr>
       <tr>
         <th>{{nowrap|Industry}}</th>
         <th>{{nowrap|Industry}}</th>
         <td>{{{Industry|}}}</td>
         <td>{{{Industry|}}}</td>
       </tr>
       </tr>
       <tr>
       <tr>
         <th>{{nowrap|Official website}}</th>
         <th>{{nowrap|Official website}}</th>