Template:CompanyCargo: Difference between revisions
Schang1146 (talk | contribs) Remove infobox Tag: Reverted |
Schang1146 (talk | contribs) Remove more whitespace |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{ | {{Documentation}} | ||
}} | |||
{{#cargo_declare:_table=Company | {{#cargo_declare:_table=Company | ||
| Description = String | | Description = String | ||
Line 26: | Line 7: | ||
| Logo = File | | Logo = File | ||
| ParentCompany = Page | | ParentCompany = Page | ||
| Type = String | | 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 for the Wiki extension and rendering an infobox off the data.", | |||
"params": { | "params": { | ||
"Founded": {}, | "Founded": { | ||
"Industry": {}, | "label": "Founded", | ||
"Logo": {}, | "description": "Date when the company was founded", | ||
"ParentCompany": {}, | "type": "date", | ||
"Type": {}, | "example": "2013 OR 2013-11 OR 2013-11-23 (YYYY-MM-DD where month and day are optional)", | ||
"Website": {}, | "required": false | ||
"Description": {} | }, | ||
} | "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", | |||
"Government", | |||
"Non-Profit" | |||
] | |||
}, | |||
"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> | ||
</noinclude> | </noinclude> | ||
<includeonly> | |||
{{#cargo_store:_table=Company | <includeonly>{{#cargo_store:_table=Company | ||
| Founded = {{{Founded|}}} | | Founded = {{{Founded|}}} | ||
| Industry = {{{Industry|}}} | | Industry = {{{Industry|}}} | ||
Line 53: | Line 76: | ||
| Website = {{{Website|}}} | | Website = {{{Website|}}} | ||
| Description = {{{Description|}}} | | Description = {{{Description|}}} | ||
}} | }}<div class="infobox"> | ||
<div style="display: flex; gap: 8px; flex-direction: column"> | |||
<div class="infobox-title">{{PAGENAME}}</div> | |||
<div class="infobox-image">[[File:{{{Logo|QuestionMark.svg}}}|200px]]</div> | |||
<table class="infobox-table"> | |||
<tr> | |||
<th colspan="2" class="infobox-table-caption">Basic information</th> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Founded}}</th> | |||
<td>{{{Founded|}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Legal Structure}}</th> | |||
<td>{{{Type|}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Industry}}</th> | |||
<td>{{{Industry|}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Official website}}</th> | |||
<td>{{{Website|}}}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
</div> | |||
</includeonly> | </includeonly> |