Template:InfoboxCompany: Difference between revisions
Appearance
mNo edit summary |
Fixed an issue where using this in visualeditor, you get the description showing as the example. I made the description an actual description. |
||
| (24 intermediate revisions by 12 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class="infobox"> | <includeonly><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">{{{ | <div class="infobox-title">{{{Company|{{PAGENAME}}}}}</div> | ||
<div class="infobox-image">[[File:{{{Logo}}}|200px]]</div> | <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div> | ||
<table | <table class="infobox-table"> | ||
<tr> | <tr> | ||
<th colspan=2 | <th colspan=2 class="infobox-table-caption" >Basic information</th> | ||
</tr> | </tr> | ||
| Line 12: | Line 12: | ||
<th>{{nowrap|Founded}}</th> | <th>{{nowrap|Founded}}</th> | ||
<td>{{{Founded}}}</td> | <td>{{{Founded}}}</td> | ||
</tr> | |||
<tr> | |||
<th>{{nowrap|Legal structure}}</th> | |||
<td>{{{Type}}}</td> | |||
</tr> | </tr> | ||
| Line 20: | Line 25: | ||
<tr> | <tr> | ||
<th>{{nowrap|Official | <th>{{nowrap|Official website}}</th> | ||
<td> | <td>{{{Official Website}}}</td> | ||
</tr> | </tr> | ||
| Line 32: | Line 37: | ||
{{InfoboxCompany | {{InfoboxCompany | ||
| Company = Company Name | | Company = Company Name | ||
| Type = Public | |||
| Founded = 2000 | | Founded = 2000 | ||
| Industry = Industrial | | Industry = Industrial | ||
| Official Website = | | Official Website = https://example.com/ | ||
| Logo= QuestionMark.svg | | Logo = QuestionMark.svg | ||
}} | }} | ||
<pre> | <pre> | ||
| Line 41: | Line 47: | ||
{{InfoboxCompany | {{InfoboxCompany | ||
| Company = | | Company = | ||
| Type = | |||
| Founded = | | Founded = | ||
| Industry = | | Industry = | ||
| Official Website = | | Official Website = | ||
| Logo= | | Logo = | ||
}} | }} | ||
</nowiki> | </nowiki> | ||
</pre> | </pre> | ||
[[Category:Styling templates]] | |||
{{Clear}} | |||
== Template Data == | == Template Data == | ||
| Line 56: | Line 65: | ||
"type": "string", | "type": "string", | ||
"description": "Name of Company", | "description": "Name of Company", | ||
"required": true | |||
}, | |||
"Type": { | |||
"description": "Type of company ownership", | |||
"example": "Public, Private, Government, Subsidiary", | |||
"required": true | "required": true | ||
}, | }, | ||
| Line 65: | Line 79: | ||
"Industry": { | "Industry": { | ||
"type": "string", | "type": "string", | ||
"description": " | "description": "The industry (or industries) the company is in", | ||
"example": "Electronics, EV's, Esc", | "example": "Electronics, EV's, Esc", | ||
"required": true | "required": true | ||
| Line 75: | Line 89: | ||
}, | }, | ||
"Logo": { | "Logo": { | ||
"description": "The logo | "description": "The logo associated with the company.", | ||
"example": "filename.[jpg|png|svg]", | "example": "filename.[jpg|png|svg]", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
| Line 84: | Line 98: | ||
}, | }, | ||
"description": "This is a a simple information box to use in product line articles.\nParameters are the information displayed on the infobox.", | "description": "This is a a simple information box to use in product line articles.\nParameters are the information displayed on the infobox.", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"Name", | |||
"Type", | |||
"Founded", | |||
"Industry", | |||
"Official Website", | |||
"Logo" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 06:37, 20 October 2025
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.
Company Name
| Basic information | |
|---|---|
| Founded | 2000 |
| Legal structure | Public |
| Industry | Industrial |
| Official website | https://example.com/ |
{{InfoboxCompany
| Company =
| Type =
| Founded =
| Industry =
| Official Website =
| Logo =
}}
Template Data
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 | |
|---|---|---|---|---|
| Name | Name | Name of Company | String | required |
| Type | Type | Type of company ownership
| Unknown | required |
| Founded | Founded | What year was the company founded | String | required |
| Industry | Industry | The industry (or industries) the company is in
| String | required |
| Official Website | Official Website | Website of the company. | String | required |
| Logo | Logo | The logo associated with the company.
| File | required |