Template:CompanyInfobox: Difference between revisions
Schang1146 (talk | contribs) No edit summary |
Merge request |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="infobox"> | <div class="infobox"> | ||
<div style="display: flex; gap: 8px; flex-direction: column"> | |||
<div class="infobox-title">{{PAGENAME}}</div> | |||
{{#if:{{{Logo|}}}|<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> | </div> | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{ | {{MergeRequest|Having two different infobox templates is confusing. One should just redirect to the other.|[[Template:InfoboxCompany]]}} | ||
== Usage == | == Usage == | ||
To have this infobox appear to the right of the page, add this to the page with the text you wish to appear on the box when using the source editor. | To have this infobox appear to the right of the page, add this to the page with the text you wish to appear on the box when using the source editor. | ||
{{CompanyInfobox | {{CompanyInfobox | ||
| Founded = 2000 | | Founded = 2000 | ||
| Industry = Industrial | | Industry = Industrial | ||
| Logo = | |||
| Type = Public | |||
| Website = https://example.com/ | | Website = https://example.com/ | ||
}} | }} | ||
{{#template_params: | {{#template_params: | ||
| Founded (label=Founded) | | Founded (label=Founded) | ||
| Industry (label=Industry) | | Industry (label=Industry) | ||
| Logo (label=Logo) | |||
| Type (label=Type) | |||
| Website (label=Website) | | Website (label=Website) | ||
}} | }} | ||
Line 55: | Line 56: | ||
{ | { | ||
"params": { | "params": { | ||
"Founded": { | "Founded": { | ||
"type": "date", | "type": "date", | ||
"description": "What year-month-day was the company founded (month and day are NOT required)", | "description": "What year-month-day was the company founded (month and day are NOT required)", | ||
"required": | "required": false, | ||
"example": "2000-01-01" | "example": "2000-01-01" | ||
}, | }, | ||
Line 70: | Line 65: | ||
"type": "string", | "type": "string", | ||
"description": "What economic sector a company belongs to based on its main activity", | "description": "What economic sector a company belongs to based on its main activity", | ||
"required": | "required": false, | ||
"example": "Electronics,Servers,Streaming Services" | "example": "Electronics,Servers,Streaming Services" | ||
}, | }, | ||
"Logo": { | "Logo": { | ||
Line 85: | Line 74: | ||
"example": "filename.[jpg|png|svg]", | "example": "filename.[jpg|png|svg]", | ||
"default": "QuestionMark.svg" | "default": "QuestionMark.svg" | ||
}, | |||
"Type" : { | |||
"type": "string", | |||
"description": "Type of company ownership", | |||
"required": false, | |||
"example": "Public" | |||
}, | |||
"Website": { | |||
"type": "url", | |||
"description": "Website of the company", | |||
"required": false, | |||
"example": "https://www.apple.com/" | |||
} | } | ||
}, | }, | ||
Line 90: | Line 91: | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"Founded", | "Founded", | ||
"Industry", | "Industry", | ||
" | "Logo", | ||
" | "Type", | ||
"Website" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 12:24, 14 August 2025
🔄 A merge request has been made for this article
There has been a merge request for this page for the following reason:
Having two different infobox templates is confusing. One should just redirect to the other.
Merge with:Template:InfoboxCompany
Once the merge has been completed, please contact a mod, who can delete the extra pages. Alternatively, edit the unneeded pages such that they contain only a redirect to the merged page.
If you believe the merge has been completed but the page is still not deleted please contact a moderator either on discord or via their talk pages.
Usage[edit source]
To have this infobox appear to the right of the page, add this to the page with the text you wish to appear on the box when using the source editor.
Basic information | |
---|---|
Founded | 2000 |
Legal Structure | Public |
Industry | Industrial |
Official website | https://example.com/ |
This is the "CompanyInfobox" template.
It should be called in the following format:
{{CompanyInfobox |Founded= |Industry= |Logo= |Type= |Website= }}
Edit the page to see the template text.
Template Data[edit source]
This is a a simple information box to use in product line articles. Parameters are the information displayed on the infobox.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Founded | Founded | What year-month-day was the company founded (month and day are NOT required)
| Date | optional |
Industry | Industry | What economic sector a company belongs to based on its main activity
| String | optional |
Logo | Logo | The logo associated with the company
| File | optional |
Type | Type | Type of company ownership
| String | optional |
Website | Website | Website of the company
| URL | optional |